File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JBoss/WildFly and the fly likes Conflict with jar in the Jboss 5.1 ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Conflict with jar in the Jboss 5.1 ?" Watch "Conflict with jar in the Jboss 5.1 ?" New topic
Author

Conflict with jar in the Jboss 5.1 ?

Edson Cezar
Ranch Hand

Joined: Mar 05, 2011
Posts: 86
    
    1
I have one application that makes two .war, inside this application I have many .jars that are in conflict with Jboss, but I can't remove.

I tried do isolation in the Jboss:

jboss-classloading.xml:

Demystifying the JBoss5 jboss-classloading.xml file

And I tried too:

jboss-web.xml:

Setting class loader in jboss-web.xml

However the mistakes persist, anyone have some idea about this ?

Thanks a lot

Ifteqar Ald
Ranch Hand

Joined: Dec 26, 2011
Posts: 73
Can you post the Exception here?
Edson Cezar
Ranch Hand

Joined: Mar 05, 2011
Posts: 86
    
    1
Edson Cezar
Ranch Hand

Joined: Mar 05, 2011
Posts: 86
    
    1
Well, I solved as follows:

Within my project in WEB-INF/libs I created a directory "endorsed".

The secret was to find the jars in conflict and just put the jars in conflict in the directory.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Conflict with jar in the Jboss 5.1 ?
 
It's not a secret anymore!