Re: NoClassDefFoundError - can't find the servlet class under test

Kazuhito SUGURI <[email protected]>
Newsgroups gmane.comp.jakarta.cactus.user
Message-ID <[email protected]>
Hi,

You may already solved the problem.

In article <[email protected]>,
Thu, 4 May 2006 17:24:51 -0400,
"Varma, Nitesh" <[email protected]> wrote: 
nitesh_varma>  My cactified ear file contains the following:
nitesh_varma> 
nitesh_varma> -          application jar file
nitesh_varma> 
nitesh_varma> -          application war file
nitesh_varma> 
nitesh_varma> -          cactus.war file
nitesh_varma> 
[snip]
nitesh_varma> It seems like the cactus.war is not seeing classes under
nitesh_varma> [application.war] because of class loader issue.

I think it's the class-loader issue as you mentioned.


nitesh_varma> But my understanding is that application classes shouldn't
nitesh_varma> be included in cactus.war.

I think you should cactify application.war in your ear file
instead of cactus.war.

Separation of the production archive and the test archive may be important,
however, that does not mean that application classes and test classes
shouldn't be archived into the same war-archive.
In fact, cactifywar creates such test archive from an existing production
archive.

Regards,
----
Kazuhito SUGURI
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.