This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets 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: 9910
    
158

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
 
Similar Threads
NameNotFoundExcption
JBoss Error parsinf Struts-config.xml file...
Issue with jboss\lib\endorsed jar loading
Problems with running JSF in Eclipse 3.1
JBoss 4.2 and MyFaces