File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JForum and the fly likes lib conflict on JForum and JBoss5 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JForum
Bookmark "lib conflict on JForum and JBoss5" Watch "lib conflict on JForum and JBoss5" New topic
Author

lib conflict on JForum and JBoss5

Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
Hi!
when I try to copy the JForum.war to deploy folder and start JBoss I have found this exception.


So i tried to rename the xerces file of JForum but the error continues with the new exception:



thanks for the help

[originally posted on jforum.net by rafael.espiritosanto]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
I don't use JBoss so I can only guess... but it seems like your JBoss install have duplicate/different level jars of those in the WEB-INF/lib directory. Class loader rules may cause problems if classes are loaded from two different locations.

Ideally, you need to look at the names in the jforum war WEB-INF/lib directory and remove those that are found in the app server class path. But sometimes it's easier just to locate the problem classes listed in the root cause and rename the containing jar.
[originally posted on jforum.net by monroe]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
monroe wrote:I don't use JBoss so I can only guess... but it seems like your JBoss install have duplicate/different level jars of those in the WEB-INF/lib directory. Class loader rules may cause problems if classes are loaded from two different locations.

Ideally, you need to look at the names in the jforum war WEB-INF/lib directory and remove those that are found in the app server class path. But sometimes it's easier just to locate the problem classes listed in the root cause and rename the containing jar.


also know as ... shared libraries.


[originally posted on jforum.net by peerless]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
monroe wrote:
Ideally, you need to look at the names in the jforum war WEB-INF/lib directory and remove those that are found in the app server class path.


But that won't work because it isn't the jar files in the app/WEB-INF/lib directory that are being used during deploy. It's the ones in $JBOSS_HOME/lib/endorsed that are loaded during deploy and those are the ones that are in conflict. And you can't get rid of those.

Has anyone fixed this?
[originally posted on jforum.net by edgoquist]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
Poor wording in my post... remove from the WEB-INF/lib directory those that are found in the app server class path...

This is generally not a problem unless the "shared" lib is older.. in that case try upgrading the shared lib to the newer version.
[originally posted on jforum.net by monroe]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
Thanks for the reply Monroe. It looks like JBoss is using v2.9 and JForum is using v2.6 of the xerces parser. I need to do some more testing and I'm tired right now and, well, thanks. c.ya.l8r.
[originally posted on jforum.net by edgoquist]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
Hello,

Did you finally manage to install JForum on JBoss 5?
I am facing the same problem with version conflict on Xerces library.
I would appreciate if you can post a final solution to this problem.

Thx
[originally posted on jforum.net by mpiasecki]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: lib conflict on JForum and JBoss5