aspose file tools*
The moose likes JBoss/WildFly and the fly likes JBoss class path issue Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "JBoss class path issue" Watch "JBoss class path issue" New topic
Author

JBoss class path issue

Dilip kumar
Ranch Hand

Joined: Oct 16, 2000
Posts: 360
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

Joined: Jul 20, 2005
Posts: 10210
    
166

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 ]

[My Blog] [JavaRanch Journal]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: JBoss class path issue