aspose file tools*
The moose likes JBoss/WildFly and the fly likes Issue with jboss\lib\endorsed jar loading Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Issue with jboss\lib\endorsed jar loading" Watch "Issue with jboss\lib\endorsed jar loading" New topic
Author

Issue with jboss\lib\endorsed jar loading

Anurag Blore
Ranch Hand

Joined: Jan 15, 2003
Posts: 74
All,

I am using jboss4.2 with jdk 1.6.

I am trying to deploy a webservices with JAX-WS, I created a war file and tried to deploy in
jboss\server\default\deploy folder and have placed all the jar files related to the webservices in the
endorsed directory
jboss\lib\endorsed

When I start the jboss it fails because one of the class which is inside a jar in jboss\lib\endorsed directory is not able to get the reference of servlet-api.jar (which is here jboss\server\default\deploy) and gives NoClassDefenitonFound error.

If I copy the servlet-api.jar inside the directory jboss\lib\endorsed the error disappears (NoClassDefenitonFound error) but doesn't find my .war file refernce.

My question is, is there a path settings which I need to do so the classes in the jboss\lib\endorsed directory can get refernce of classes in the deploy folder?
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17249
    
    6

http://thesmallpotato.blogspot.com/2007/06/jdk-16-jboss-420-ejb3-web-service-axis2.html

But iirc, it is 4.3 that is now "supported" with JDK 6, whereas 4.2 is not.

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
Anurag Blore
Ranch Hand

Joined: Jan 15, 2003
Posts: 74
Thanks Mark.

My question is not getting the reference of jars in deploy directory by the jars in the
jboss\lib\endorsed directory could be different issue.

May be some classloader issue , I am not sure.
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 9318
    
109

I created a war file and tried to deploy in jboss\server\default\deploy folder and have placed all the jar files related to the webservices in the endorsed directory jboss\lib\endorsed


Any specific reason for doing that? The endorsed/lib folder is not meant for application specific libraries. You should either package those jars in your application (recommended) along with classloader scoping or drop them in the %JBOSS_HOME%/server/< serverName>/lib folder.


[My Blog] [JavaRanch Journal]
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17249
    
    6

Anurag Blore wrote:Thanks Mark.

My question is not getting the reference of jars in deploy directory by the jars in the
jboss\lib\endorsed directory could be different issue.

May be some classloader issue , I am not sure.


My reply is that if you want to use Java 6. Then go to 4.3 or don't use Java 6.

Mark
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Issue with jboss\lib\endorsed jar loading
 
Similar Threads
Changing Locale link behave one step behind
another Eclipse & JBoss question
ant not deploying on Tomcat 7
Library Files Referencing
re: Start up of JBoss