Hi Timothy, > -----Original Message----- > From: Taylor,Timothy L. [mailto:[EMAIL PROTECTED]] > Sent: 01 March 2002 19:48 > To: [EMAIL PROTECTED] > Subject: NoClassDefFoundError Trying to Test Filter > > All, > > I'm trying to use cactus 1.2 to test a filter in the Oracle OC4J app > server, which is actually Orion (1.5.x, I believe). I've followed the > getting started guide correctly, in terms of setting up the server side > classpath, but I've been unable to get this test to work. > > Here's my setup: > - I'm deploying a web application archive (WAR) in an EAR file. > - The WAR file has the following layout: > WEB-INF > |- web.xml [contains entries for the cactus redirectors] > |- classes [My classes under test and test classes > |- lib > |- cactus.jar > |- junit.jar > |- log4j-core.jar >
so far so good. > When I run the junit test from my ANT build file, the test report that > is generated contains the following error: > > <testcase name="testDoFilter" time="1.202"> > <error message="org/apache/cactus/FilterTestCase" > type="org.apache.cactus.client.ServletExceptionWrapper">java.lang.NoClas sD > efFoundError: > org/apache/cactus/FilterTestCase > at java.lang.ClassLoader.defineClass0(Native Method) [snip] hum ... The only reason I can see at this point has to do with the Cactus jar you're using. Are you sure you're using the Cactus for Servlet API 2.3 and not the one for Servlet 2.2 (which does not contain the FilterTestCase) ? > > The cactus server log file contains the following entries: [Formatting > altered slightly to improve readability] > [snip] > I would be most grateful if anyone could shed any light on this > problem. It appears to be a problem with my classpath, but I can't > figure out how to fix it. > > Thanks in advance, > - Tim > Thanks -Vincent > -- > To unsubscribe, e-mail: <mailto:cactus-user- > [EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:cactus-user- > [EMAIL PROTECTED]> > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
