Tomcat 8启动中缺少Jar文件 [英] Jar files missing in tomcat8 startup
问题描述
我目前正在从事云迁移活动. 我们在云服务器中安装了一个新的"Apache Tomcat/8.0.43",并将war文件从本地转移到了云中. 启动tomcat服务器时,出现以下错误:
I am currently working on cloud migration activities. We have installed a new "Apache Tomcat/8.0.43" in cloud server and transferred the war files from local to cloud. while starting the tomcat server I’m getting below error :
警告[localhost-startStop-1] org.apache.tomcat.util.scan.StandardJarScanner.scan无法从类加载器层次结构扫描[文件:/usr/share/java/tomcat8/gdk_custom.jar] java.io.FileNotFoundException:/usr/share/java/tomcat8/gdk_custom.jar(没有这样的文件或目录)
WARNING [localhost-startStop-1] org.apache.tomcat.util.scan.StandardJarScanner.scan Failed to scan [file:/usr/share/java/tomcat8/gdk_custom.jar] from classloader hierarchy java.io.FileNotFoundException: /usr/share/java/tomcat8/gdk_custom.jar (No such file or directory)
Similary,我在下面的jars中得到FileNotFoundException:
Similary, I am getting FileNotFoundException for below jars :
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)
请帮助我解决此问题.
推荐答案
通常,JAR应该保存在tomcat的lib目录中,而您可以scanAllDirectories
.看看 JARScanner (有关conf/context.xml),并尝试使用值true
的所有JarScanner
属性.
Generally JARs should be kept in tomcat's lib directory, rather you can scanAllDirectories
. Have a look at JARScanner ( its about conf/context.xml ) and try all attributes of JarScanner
with value true
.
这篇关于Tomcat 8启动中缺少Jar文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!