This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

lib conflict on JForum and JBoss5

 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic