Mathieu, I assume you're using Maven b10. Can you try using a recent version of the Cactus plugin for Maven, like the one in HEAD?
In order to set it up: - remove the existing cactus plugin in MAVEN_HOME/plugins - remove the expanded cactus plugin in USERHOME/.maven/plugins - CVS-checkout maven/src/plugins-build/cactus - type "maven plugin:install" I have just added back support for WL7.x (which has been disabled in version 3.0 of the Cactus plugin for Maven). This means to me that you are running an old version of Maven (b9?). If so, I'd suggest upgrading to b10. WRT your problem, I have no idea but if we use the same config (i.e. maven b10 and the latest Cactus plugin for Maven), I may be able to help you by reproducing the problem. ATM, I don't have WL7 on my machine but I can easily install it. Thanks -Vincent > -----Original Message----- > From: GANDIN Mathieu [mailto:[EMAIL PROTECTED] > Sent: 05 August 2003 12:34 > To: 'Cactus Users List' > Subject: RE : Problem with maven cactus plugin 2.0 > > Hi Vincent, > > My application is a simple servlet with a class and a JSP, and I tried to > test a method of my Servlet with Cactus. > > The cactus test work into the cactus plugin for Eclipse. > > So I try to run my Cactus test with the maven plugin for Cactus (version > 2.0). > First it works with tomcat 4X. But I have to run it on Weblogic 7. And it > doesn't, when I run the following command by the maven CLI: "maven cactus" > I get the error: > java.lang.ClassNotFoundException on the class > org.apache.cactus.server.FilterTestRedirector > > No cactus Jar is in my system classpath, and my weblogic domain is > generated > by the maven cactus plugin into target/cactus/weblogic7x/testdomain, so I > didn't change any generated configurations and I suppose there is no > cactus > Jar into weblogic classpath. > > The following jar has been had by the maven plugin (and it seems to be > normal because they are cactus dependencies) into the WEB-INF/lib folder > of > my "cactified" application: > Aspectjrt-1.0.6.jar > cactus-framework-13-1.5dev-20030407.jar > commons-logging-1.0.2.jar > httpunit-1.5.1.jar > junit-3.8.1.jar > log4j-1.2.7.jar > > > Any Idea ? Hopes I give you Enough details. > > Gandin Mathieu > OCTO Technology > > > -----Message d'origine----- > De�: Vincent Massol [mailto:[EMAIL PROTECTED] > Envoy�: mardi 5 ao�t 2003 10:36 > ��: 'Cactus Users List' > Objet�: RE: Problem with maven cactus plugin 2.0 > > Hi Mathieu, > > Can you make sure you have no cactus jar in your system classpath, nor > in the script you use to start weblogic. The only place the cactus jar > (and all related jars) should be found is in your webapp's WEB-INF/lib > directory. > > Note: it may work with other configurations but let's get it to work > with the config that I know works for all containers. > > It seems you have sent this email to the Maven user list. Is that > because you are starting Cactus using the Maven plugin for Cactus? > (note: cross-posting should be avoided whenever possible). > > Thanks > -Vincent > > > -----Original Message----- > > From: GANDIN Mathieu [mailto:[EMAIL PROTECTED] > > Sent: 01 August 2003 12:30 > > To: 'Maven Users List'; 'Cactus Users List' > > Subject: Problem with maven cactus plugin 2.0 > > > > Hi, > > > > I am currently using the cactus plugin 2.0 to test webapp in weblogic > 7. > > and I get a java.lang.ClassNotFoundException on the class > > org.apache.cactus.server.FilterTestRedirector when I try to run a > > ServletTestCase > > > > But the jar which has the cactus framework > > (cactus-framework-13-1.5dev-20030407.jar in my repository) has the > class > > org.apache.cactus.server.FilterTestRedirector. > > > > Plus my tests are packaged in a cactustest.war in the weblogic domain, > and > > this package contains cactus-framework-13-1.5dev-20030407.jar and the > > class > > org.apache.cactus.server.FilterTestRedirector. > > > > So I don't understand why this class is not found by the classloader. > > > > Somebody has an idea ? > > > > This the log of my weblogic server: > > > > ####<1 ao�t 03 12:02:40 CEST> <Error> <HTTP> <FRB001028> <testserver> > > <Thread-9> <kernel identity> <> <101165> <Could not load user defined > > filter: org.apache.cactus.server.FilterTestRedirector> > > java.lang.ClassNotFoundException: > > org.apache.cactus.server.FilterTestRedirector > > at > > > weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoa > de > > r. > > java:169) > > at > > > weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeAware > Cl > > as > > sLoader.java:65) > > at java.lang.ClassLoader.loadClass(ClassLoader.java:299) > > at java.lang.ClassLoader.loadClass(ClassLoader.java:255) > > at > > > weblogic.utils.classloaders.ChangeAwareClassLoader.loadClass(ChangeAware > Cl > > as > > sLoader.java:43) > > at > > > weblogic.servlet.internal.WebAppServletContext.loadClass(WebAppServletCo > nt > > ex > > t.java:4617) > > at > > > weblogic.servlet.internal.WebAppServletContext.registerFilter(WebAppServ > le > > tC > > ontext.java:2402) > > at > > > weblogic.servlet.internal.WebAppServletContext.initFilters(WebAppServlet > Co > > nt > > ext.java:2389) > > at > > > weblogic.servlet.internal.WebAppServletContext.preloadServlets(WebAppSer > vl > > et > > Context.java:2660) > > at > > > weblogic.servlet.internal.HttpServer.preloadServlets(HttpServer.java:524 > ) > > at > > > weblogic.servlet.internal.WebService.preloadServlets(WebService.java:476 > ) > > at > > weblogic.t3.srvr.ServletInitRunner$1.run(ServletInitRunner.java:50) > > at > > > weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceMa > na > > ge > > r.java:721) > > at > weblogic.t3.srvr.ServletInitRunner.run(ServletInitRunner.java:46) > > at java.lang.Thread.run(Thread.java:484) > > > > Gandin Mathieu > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
