Problem to Run the MockStrutsTestCase

hai

I am using MockStrutsTestCase to test my Struts application but I am getting run time error like this: testSuccessfulLogin(TestLoginAction)java.lang.NoClassDefFoundError: org/xml/sax/ext/Attribute2

Why I am getting this error?

can anyone tell me please..........

I have place necessary jar file in my CLASSPATH.

here is my code:

import servletunit.struts.MockStrutsTestCase;

public class TestLoginAction extends MockStrutsTestCase

{

public TestLoginAction(String testName)

{

super(testName)

}

public void testSuccessfulLogin()

{

setRequestPathInfo("/Login");

actionPerform();

verifyForward("success");

verifyForwardPath("/Login.jsp");

verifyInputForward();

assertEquals("jerry",getSession.getAttribute("username"));

verifyNoActionErrors();

}

public void testFailedLogin()

{

setRequestPathInfo("/Login");

actionPerform();

verifyForward("failure");

verifyForwardPath("/Login.jsp");

verifyInputForward();

verifyActionErrors(new String[] {"username.password.mismatch"});

assertNull(getSession.getAttribute("username"));

}

public static void main(String args[])

{

junit.textui.TextRunner.run(TestLoginAction.class);

}

}

--

is there anything to add something in my struts-config.xml (or) in my classpath?

is any version problem?

does anyone tell me what are all the changes I have to do to run my application,Please............

Thanks in advance..........

[1612 byte] By [Thilagavathia] at [2007-11-27 8:43:29]
# 1

> testSuccessfulLogin(TestLoginAction)java.lang.NoClassD

> efFoundError: org/xml/sax/ext/Attribute2

> Why I am getting this error?

> can anyone tell me please..........

> I have place necessary jar file in my CLASSPATH.

If you know what you need to do then what's the question? Remember that the environment variable CLASSPATH has no effect in a web container.

aniseeda at 2007-7-12 20:43:13 > top of Java-index,Java Essentials,Java Programming...
# 2
I am new to StrutsTestCase. I don't know how to the MockStrutsTestCase.if you know colud you tell me how to run and what are all the changes I have to do.Thanks in advance........
Thilagavathia at 2007-7-12 20:43:13 > top of Java-index,Java Essentials,Java Programming...