tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dmitri Lysenko <...@nuix.com.au>
Subject java.lang.VerifyError while using struts with Tomcat 4.0.x
Date Thu, 02 May 2002 00:28:05 GMT
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:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


Mime
View raw message