问题
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 ?
回答1:
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.
回答2:
If you're deploying an Axis2 AAR, you can put the jar into a lib
directory inside the AAR.
来源:https://stackoverflow.com/questions/10533735/where-to-deploy-a-jar-dependency-of-my-webservice