读书人

tomcat 6 下 能加 shared/lib 文件夹么

发布时间: 2012-01-06 22:55:18 作者: rapoo

tomcat 6 下 能加 shared/lib 文件夹么?
项目很多,都放在 tomcat 6 下,jar 都重复了,所以想仿照 tomcat5.5 的方式,可以跑不起来了,我想问问,tomcat6 下能不能建 shared/lib 文件夹 ?

谢谢!!!

[解决办法]
能不能装试一下
[解决办法]
直接放在tomcat6下的lib里就可以了
[解决办法]
应当可以建,不过建了以后你要将它自己加入到tomcat的classpath中
[解决办法]

你打开tomcat6\conf\catalina.properties文件
再打开tomcat5的,看完后,还是搞不定再来发贴.搞定了就结贴

#
# List of comma-separated paths defining the contents of the "shared"
# classloader. Prefixes should be used to define what is the repository type.
# Path may be relative to the CATALINA_BASE path or absolute. If left as blank,
# the "common" loader will be used as Catalina's "shared" loader.
# Examples:
# "foo": Add this folder as a class repository
# "foo/*.jar": Add all the JARs of the specified folder as class
# repositories
# "foo/bar.jar": Add bar.jar as a class repository
# Please note that for single jars, e.g. bar.jar, you need the URL form
# starting with file:.
shared.loader=
[解决办法]
好象不行哎.
[解决办法]

探讨

你打开tomcat6\conf\catalina.properties文件
再打开tomcat5的,看完后,还是搞不定再来发贴.搞定了就结贴

#
# List of comma-separated paths defining the contents of the "shared"
# classloader. Prefixes should be used to define what is the repository type.
# Path may be relative to the CATALINA_BASE path or absolute. If left as blank,
# the "common" loader will be used as Catalina's "shared" lo…

读书人网 >Java Web开发

热点推荐