如何管理Tomcat的6成库%下TOMCAT_HOME%/ lib下的子文件夹? [英] How to manage Tomcat 6 libraries into subfolders under %TOMCAT_HOME%/lib?
问题描述
我使用Tomcat 6.0.20和JDK 1.6.0.13。
I use Tomcat 6.0.20 and JDK 1.6.0.13.
我如何可以加载从%TOMCAT_HOME%/ lib中/不采取.jar文件出子文件夹,并把它们直接进入%TOMCAT_HOME%/ lib中/?
How can I load libraries from sub-folders of "%TOMCAT_HOME%/lib/" without taking the .jars out of sub-folders and putting them straight into "%TOMCAT_HOME%/lib/"?
我想这样做的原因,是因为许多应用程序将要共享的库手。
The reason I want to do this, is because many apps are going to be sharing lots of libraries.
因此,对于组织的缘故,我想将它们保存到文件夹这样:结果
%TOMCAT_HOME%/ lib目录/ Novell公司/ *。JAR结果
%TOMCAT_HOME%/ lib中/邮件/ *。JAR结果
%TOMCAT_HOME%/ lib目录/上传/ *。JAR结果
等等。
So, for the sakes of organization I want to store them into folders as such:
%TOMCAT_HOME%/lib/novell/*.jar
%TOMCAT_HOME%/lib/mail/*.jar
%TOMCAT_HOME%/lib/upload/*.jar
etc.
我会如何呢?并请提供一个例子。
难道我用的setclasspath.bat,catalina.properties或完全不同的东西?
先谢谢了。
How would I go about this? And please provide an example. Do I use setclasspath.bat, catalina.properties or something completely different? Thanks in advance.
推荐答案
在定义 shared.loader
/ conf目录/卡塔利娜财产的路径。性能
文件。
例如
shared.loader = ${catalina.home}/lib/novell/*.jar, ${catalina.home}/lib/mail/*.jar, ${catalina.home}/lib/upload/*.jar
可选您也可以使用 common.loader
属性用于此。看看有你的preference。
optionally you can also use the common.loader
property for this. See what has your preference.
这篇关于如何管理Tomcat的6成库%下TOMCAT_HOME%/ lib下的子文件夹?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!