[jboss-user] Problem with multiple jar version and classloading

Olivier Fabre - EBM WebSourcing olivier.fabre at ebmwebsourcing.com
Fri Mar 23 09:15:23 EDT 2007


Hi,

I wanna deploy a Wep App that makes use of commons-httpclient jar 
version 3.0.1. The problem is that an other version of 
commons-httpclient jar (version 2.0.2) is already present in 
JBossRoot/lib and in JBossRoot/server/default/lib. These two versions of 
the jar contains the same class 
(org.apache.commons.httpclient.HttpConnectionManager) but with different 
methods. So my web app throw the following exception :  
java.lang.NoSuchMethodError: 
org.apache.commons.httpclient.HttpConnectionManager.getParams()

Is it possible to configure web app classloading to avoid this type of 
error ?

Thanks

Regards,
Olivier




More information about the jboss-user mailing list