This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes JBoss and the fly likes JBoss class path issue Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Products » JBoss
Reply 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: 8142
    
  52

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]
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: JBoss class path issue
 
Similar Threads
Issue with jboss\lib\endorsed jar loading
NameNotFoundExcption
JBoss Error parsinf Struts-config.xml file...
Problems with running JSF in Eclipse 3.1
JBoss 4.2 and MyFaces