我目前正在从事云迁移活动。我们在云端服务器上安装了一个新的“Apache Tomcat/8.0.43”,并将war文件从本地传输到云端。启动tomcat服务器时,我得到以下错误:
警告localhost-startStop-1 org.apache.tomcat.util.scan.StandardJarScanner.scan无法从类加载器层次结构java.io.FileNotFoundException: /usr/share/java/tomcat8/gdk_custom.jar扫描文件:/usr/share/java/tomcat8/gdk_custom.jar(没有此类文件或目录)
类似的,我正在为下面的jars获取FileNotFoundException:
java.io.FileNotFoundException: /usr/share/java/tomcat8/orai18n-utility.jar (No such file or directory)
java.io.FileNotFoundException: /usr/share/java/tomcat8/orai18n-collation.jar (No such file or directory)
java.io.FileNotFoundException: /usr/share/java/tomcat8/orai18n-translation.jar (No such file or directory)
java.io.FileNotFoundException: /usr/share/java/tomcat8/orai18n-net.jar (No such file or directory)
java.io.FileNotFoundException: /usr/share/java/tomcat8/orai18n-servlet.jar (No such file or directory)
java.io.FileNotFoundException: /usr/share/java/tomcat8/orai18n-lcsd.jar (No such file or directory)
java.io.FileNotFoundException: /usr/share/java/tomcat8/orai18n-tools.jar (No such file or directory)请帮我解决这个问题。
发布于 2017-05-05 13:09:31
一般情况下,JAR应该保存在tomcat的lib目录中,而您可以使用scanAllDirectories。看一下JARScanner (它关于conf/context.xml ),并尝试使用值为true的JarScanner的所有属性。
发布于 2018-10-04 21:47:19
请参阅问题Tomcat cannot find gdk_custom.jar的答案
要防止Tomcat查找不需要的Jars,请在/conf/context.xml中添加以下行:
<Context>
...
<JarScanner scanManifest="false"/>
</Context>https://stackoverflow.com/questions/43796724
复制相似问题