tomcat8 startup

时间:2017-05-05 04:48:41

标签: java tomcat jdbc tomcat8 ojdbc

我目前正在开展云迁移活动。 我们在云服务器中安装了一个新的“Apache Tomcat / 8.0.43”,并将战争文件从本地传输到云端。 在启动tomcat服务器时,我遇到了以下错误:

警告[localhost-startStop-1] org.apache.tomcat.util.scan.StandardJarScanner.scan无法从类加载器层次结构扫描[file:/usr/share/java/tomcat8/gdk_custom.jar]  java.io.FileNotFoundException:/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)

请帮我解决这个问题。

2 个答案:

答案 0 :(得分:1)

通常JAR应该保存在tomcat的lib目录中,而不是scanAllDirectories。查看JARScanner(关于conf / context.xml)并尝试JarScanner的所有属性值true

答案 1 :(得分:0)

请参阅问题Tomcat cannot find gdk_custom.jar的答案

要防止Tomcat查找不需要的Jar,请在/conf/context.xml中添加以下行:

<Context>
  ...
  <JarScanner scanManifest="false"/>
</Context>