Where to deploy a jar dependency of my webservice?

apache-axis, dependencies, jar, java

Solution

Consider deploying your webservice and it's dependencies as a single WAR web application. Then you could put your dependency in WEB-INF/lib of your webapp.

Problem

My webservice depends upon a jar (which contains a custom Exception class among others). When I deploy simply my webservice without this jar, axis2 complains that the Exception class is not known. So I guess that I must deploy my jar too... But I feel reluctant to put it in: `tomcat\webapps\axis2\WEB-INF\lib`, since it's already filled with lots of axis2 and 3rd party jars... i'd prefer something like `tomcat\webapps\axis2\WEB-INF\usr\lib` Where would you put it ?

Original source

Related problems