Hi Ryan, Cactus has 2 sides: the client side and the server side. They each need to have the correct classpath.
This is of course a classloader issue... First and foremost: There is an easy way to not have any problem. It is to package the cactus jars in your webapp (as explained on http://jakarta.apache.org/cactus/howto_classpath.html). Make sure to have no cactus jar in any other classpath of your app server. If you wish to "share" the cactus jars across several webapp, then you can put them in the container system classpath. However, here's what can happen: - the container executes your webapp, which has registered the cactus redirector (located in the catus jar). Then that redirector will try to instantiate your test case class. But, if the cactus jar is in the system classpath then the container will look for your test case in the system classloader ... where it is not, as it is in your webapp classloader ... - to circumvent this issue, most container sets the context classloader to be the webapp so that the container can still find the class in your webapp classloader from the other classloaders. Maybe the Sun one app server does not support context classloading? Hope it helps, -Vincent > -----Original Message----- > From: Ryan Steckel [mailto:rsteckel2@;yahoo.com] > Sent: 18 October 2002 04:15 > To: [EMAIL PROTECTED] > Subject: Cactus and Sun One Appserver > > I having trouble getting cactus setup in Sun One App > Server. I have the required jar files (junit.jar, > cactus.jar, aspectjrt.jar, commons-httpclient.jar ) in > a project/lib folder (commons-logging is in Sun One's > "global" lib folder), and I add each one explicitly to > the server's class path. > > When I access my my test servlet (through > ServletTestRunner), I get a NoClassDefFoundError for > org.apache.commons.httpclient.methods.GetMethod. > > I can print the java.class.path System property and > see that commons-httpclient.jar is in the class path. > > Any idea why this is so? Is this a Sun One specific > thing? > > Thanks. > > > __________________________________________________ > Do you Yahoo!? > Faith Hill - Exclusive Performances, Videos & More > http://faith.yahoo.com > > -- > To unsubscribe, e-mail: <mailto:cactus-user- > [EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:cactus-user- > [EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:cactus-user-unsubscribe@;jakarta.apache.org> For additional commands, e-mail: <mailto:cactus-user-help@;jakarta.apache.org>
