当前位置: 代码迷 >> Java Web开发 >> tomcat 6 下 能加 shared/lib 文件夹么?解决思路
  详细解决方案

tomcat 6 下 能加 shared/lib 文件夹么?解决思路

热度:925   发布时间:2016-04-17 01:27:11.0
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…
  相关解决方案