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?
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.