This week's book giveaway is in the Raspberry Pi forum.
We're giving away four copies of Getting started with Java on the Raspberry Pi and have Frank DelPorte on-line!
See this thread for details.
Win a copy of Getting started with Java on the Raspberry Pi this week in the Raspberry Pi forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Jeanne Boyarsky
Sheriffs:
  • Rob Spoor
  • Devaka Cooray
  • Liutauras Vilda
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Piet Souris

lib conflict on JForum and JBoss5

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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]
 
Of course, I found a very beautiful couch. Definitely. And this tiny ad:
Low Tech Laboratory
https://www.kickstarter.com/projects/paulwheaton/low-tech-0
reply
    Bookmark Topic Watch Topic
  • New Topic