please ignore.  it looks like i forgot to include javaee.jar


From: "Vadim Tesis" <[EMAIL PROTECTED]>
Reply-To: wicket-user@lists.sourceforge.net
To: wicket-user@lists.sourceforge.net
Subject: [Wicket-user] WicketTester problem
Date: Sun, 22 Apr 2007 20:06:41 +0000

Hi all,

i'm trying to write a simple test to see if a page gets rendered.  when i
run the test i'm getting error: NoClassDefFoundError for GenericServlet (see
below).  it complains about the line where WicketTester gets instantiated.
i tried to specify absolute path to the .war file in the WicketTester's
constructor but getting the same error.
do you know what might cause the problem?

Thanks,
Vadim

C:>java -cp build\classes;..\lib\junit-4.1.jar;..\lib\wicket-1.2.5.jar junit
.textui.TestRunner com.ds.deal.gui.GuiAllTests
.E
Time: 0.046
There was 1 error:
1)
testHomePageRender(com.ds.deal.gui.HomeTest)java.lang.NoClassDefFoundError:
javax/servl
et/GenericServlet
        at com.ds.deal.gui.HomeTest.setUp(HomeTest.java:12)

FAILURES!!!
Tests run: 1,  Failures: 0,  Errors: 1


this is the code:
public class HomeTest extends TestCase
{
        private WicketTester m_tester;

        public void setUp()
        {
                m_tester = new WicketTester();
        } // end of setUp()

        public void testHomePageRender()
        {
                m_tester.startPage(Home.class);

                // ensure that request has not been intercepted or redirected
                m_tester.assertRenderedPage(Home.class);

                // a page might render with an error message
                m_tester.assertNoErrorMessage();
        } // end of testHomePageRender()
} // end of class HomeTest

_________________________________________________________________
The average US Credit Score is 675. The cost to see yours: $0 by Experian.
http://www.freecreditreport.com/pm/default.aspx?sc=660600&bcd=EMAILFOOTERAVERAGE


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

_________________________________________________________________
MSN is giving away a trip to Vegas to see Elton John.  Enter to win today. http://msnconcertcontest.com?icid-nceltontagline


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to