更新Tomcat LIb文件夹 [英] Updating Tomcat LIb Folder
问题描述
我有一个使用Jersey插件开发并部署在Tomact 7上的应用程序。
我必须将项目中使用的所有jar导出到Tomact的lib /文件夹..但我不想..
是否可以部署我的应用程序而不将jar导出到Tomcat lib文件夹。如果是,那么如何?
i have an application developed by using Jersey Plugin and deployed on Tomact 7 . i have to export all the jars used in the project to the lib/ folder of Tomact .. but i dont want to.. is it possible to deploy my app without exporting jars to Tomcat lib folder . If Yes , then How ?
https://t1.ap01.aws.af.cm/rest/person
这是我的应用程序链接,如果lib /是,它会出现以下错误未导出:
this is my app link and it gives following error if lib/ are not exported:
HTTP Status 404 - Servlet Jersey REST Service is not available
type Status report
message Servlet Jersey REST Service is not available
description The requested resource (Servlet Jersey REST Service is not available) is not available.
Apache Tomcat/6.0.35
推荐答案
您始终需要lib文件夹中所需的jar,无论您是使用ant还是Maven打包它们 - 您始终需要lib文件夹中的jar。您看到的错误是应用程序无法找到泽西岛罐子。
You always need the required jars in the lib folder, whether you package them up using ant or Maven - you always need the jars in the lib folder. The error you are seeing there is the application cannot find the Jersey jars.
罐子在构建时应该是战争的一部分。
The jars should be part of the war when it gets built.
这篇关于更新Tomcat LIb文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!