Where to deploy jar dependency on my web service?

My web service is bank dependent (which contains, among other things, a custom exception class).

When I simply deploy my web service without this jar, axis2 complains that the exception class is unknown.

So, I assume that I should also deploy my can ... But I do not want to invest it in this: tomcat\webapps\axis2\WEB-INF\lib , since it is already filled with many cans with axis 2 and third side. ..

I would prefer something like tomcat\webapps\axis2\WEB-INF\usr\lib

Where would you put it?

+4
source share
2 answers

Consider deploying your web service and its dependencies as a single WAR web application. Then you can put your dependency in the WEB-INF / lib of your web client.

+4
source

If you are deploying Axis2 AAR, you can put the jar in the lib directory inside the AAR.

+2
source

Source: https://habr.com/ru/post/1411762/


All Articles