You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Dmitri Lysenko <ld...@nuix.com.au> on 2002/05/02 02:28:05 UTC

java.lang.VerifyError while using struts with Tomcat 4.0.x

Hi,

I'm using tomcat 4.0.3 integrated with JBoss 2.4.4 (they run in the same 
JVM).  Struts framework is used to handle the presentation logic. 
This combination works fine with Tomcat 3.x. 
However after I upgrated to the Tomcat 4.0.3 I'm experiencing the 
java.lang.VerifyError (Incompartible argument for a function) while the 
ActionServlet instanciates some action classes.  I'm sure that the problem 
caused by the changes in the tomcat's classloader. I had the situation when 
the class with the same name is accessible by two different classloaders. I 
found out that the problem appears if the class is loaded by the classloader 
that's different with the one that the current thread uses. In this situation 
I had this VerifyError. I was able to resolve the problem by eliminating the 
class duplication, now I have no two same classes that are placed in the
different jars. However the question is why this error appears? The situation 
that I had when the same class is accessible by multiple class loaders is not 
prohibited by the Java language. I'm wondering what classloader contraint was 
violated. 

To fix the problem I have to use the jar's packaging that's not very 
convenient for me. So I appreciate any help that allows me to resolve this 
problem in better way.

Dmitri Lyssenko,
lds@nuix.com.au

--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>