Where to deploy a jar dependency of my webservice?

一笑奈何 提交于 2020-01-14 10:23:13

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!