You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cactus-user@jakarta.apache.org by Vincent Massol <vm...@pivolis.com> on 2005/02/18 20:39:10 UTC

RE: Problem running test

Hi Samuel,

> -----Original Message-----
> From: Samuel Crescencio [mailto:samuel.crescencio@nexxera.com]
> Sent: vendredi 18 février 2005 21:33
> To: cactus-user@jakarta.apache.org
> Subject: Problem running test
> 
> Hi Folks,
> 
> I was trying to run some cactus tests, from maven,  and I got the
> following error:
> 
>   [cactus]
>      [cactus] Testcase: testHelloWorld took 0,733 sec
>      [cactus]    Caused an ERROR
>      [cactus] Error finding class
> [com.nexxera.project.web.action.TestCactusHelloWorldAction] using both
> the Context classloader and the webapp classloader. Possible causes
> include:
>      [cactus]    - Your webapp does not include your test classes,
>      [cactus]    - The cactus.jar is not located in your WEB-INF/lib
> directory and your Container has not set the Context classloader to
> point to the webapp one
>      [cactus] javax.servlet.ServletException: Error finding class
> [com.nexxera.project.web.action.TestCactusHelloWorldAction] using both
> the Context classloader and the webapp classloader. Possible causes
> include:
>      [cactus]    - Your webapp does not include your test classes,
>      [cactus]    - The cactus.jar is not located in your WEB-INF/lib
> directory and your Container has not set the Context classloader to
> point to the webapp one
>      [cactus]    at
> org.apache.cactus.internal.server.AbstractWebTestCaller.getTestClassClass(
> AbstractWebTestCaller.java:501)
> 
> 
> My maven.xml is like this
> 
> <goal name="all">
> 	   <attainGoal name="clean" />
> 	   <attainGoal name="cactus" />
> 	</goal>
> My Jboss version is 3.2.3, maven is 1.0.2 and cactus is 13-1.7
> 
> 
> Can somebody point me a solution to this?

Have you checked the 2 solutions provided by the stack trace (especially the
first one)?

The other possibility is that you have the cactus jar or some cactus-related
jar in the system class (check that you CLASSPATH environment variable is
empty).

-Vincent

_________________________________________________________________
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com