Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JBoss class path issue

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

I have noticed that even though I include libraries (jar,zip etc) inside the EAR file (under WIB-INF\lib folder) JBoss application server is unable to find the classes inside those libraries. It will work if the copy the libraries into server\default\lib folder which is not a good practice. Any ideas why it happens ?

Thanks
 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Dilip kumar:


I have noticed that even though I include libraries (jar,zip etc) inside the EAR file (under WIB-INF\lib folder) JBoss application server is unable to find the classes inside those libraries.


Which version of JBoss do you use? Any jar file under WEB-INF/lib of an WAR (inside an EAR) will be available only to the WAR and not to the other components in the EAR. If you want that jar to be available to the entire EAR then you will have to place it in the lib folder of the EAR.
[ May 13, 2008: Message edited by: Jaikiran Pai ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic