在哪里部署我的webservice的jar依赖? [英] Where to deploy a jar dependency of my webservice?

查看:328
本文介绍了在哪里部署我的webservice的jar依赖?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的web服务依赖于一个jar(其中包含一个自定义的Exception类)。

My webservice depends upon a jar (which contains a custom Exception class among others).

当我只部署没有这个jar的webservice时,axis2会抱怨异常class不知道。

When I deploy simply my webservice without this jar, axis2 complains that the Exception class is not known.

所以我想我必须部署我的jar ...但我觉得不愿意把它放进去: tomcat \\ \\ webapps\axis2 \WEB-INF \ lib ,因为它已经装满了很多的axis2和第三方罐......

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

我更喜欢 tomcat \webapps \axis2 \ WEB-INF \ usr \ lib

你会把它放在哪里?

推荐答案

考虑将你的webservice及其依赖项部署为单个WAR Web应用程序。然后你可以将你的依赖项放在webapp的WEB-INF / lib中。

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.

这篇关于在哪里部署我的webservice的jar依赖?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆