tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Craig R. McClanahan" <craig...@apache.org>
Subject Re: java.lang.VerifyError while using struts with Tomcat 4.0.x
Date Thu, 02 May 2002 16:19:06 GMT
Don't know if this is exactly the same issue, but some class loader bugs
in 4.0.3 have been fixed in 4.0.4-b2 -- you should give that a try
instead.

Craig


On Thu, 2 May 2002, Dmitri Lysenko wrote:

> Date: Thu, 2 May 2002 10:43:54 +1000
> From: Dmitri Lysenko <lds@nuix.com.au>
> Reply-To: Tomcat Users List <tomcat-user@jakarta.apache.org>, lds@nuix.com.au
> To: tomcat-user@jakarta.apache.org
> Subject: 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:   <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>
>
>


--
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