Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Multiple class loaders error

 
Dilip kumar
Ranch Hand
Posts: 360
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello All,

I'm getting below mentioned errors while running my J2EE application. Not sure what's the issue. Really appreciate any suggestions. Thanks.

 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24211
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I guess you've got multiple copies of log4j.jar installed in your server or app. I'm going to move this to our JBoss forum.
 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dilip,

As already mentioned by Ernest, you probably are packaging a log4j jar with your application. JBoss already comes shipped with a log4j jar version of its own. If you want to package the log4j jar with your application then you will have to enable classloader scoping of your application. The other option you have, is to remove the log4j jar from your application and use the one that comes with JBoss.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic