升级tomcat 7到tomcat 8.5

时间:2017-07-27 07:53:05

标签: java apache maven tomcat

当我将tomcat从7升级到8.5并尝试运行我的应用程序时,我从stdferr.log获得了以下错误集。

我有任何错误吗?我已经从tomcat7复制了所有剩余的罐子(不匹配)。请指导我解决这个问题

以下是错误日志:

WARNING: Failed to scan [file:/C:/Program%20Files/Apache%20Software%20Foundation/Tomcat8.5/lib/jaxb-Jul 27, 2017 12:27:20 PM org.apache.tomcat.util.scan.StandardJarScanner scan
        WARNING: Failed to scan [file:/C:/Program%20Files/Apache%20Software%20Foundation/Tomcat8.5/lib/saaj-api.jar] from classloader hierarchy
        java.io.FileNotFoundException: C:\Program Files\Apache Software Foundation\Tomcat8.5\lib\saaj-api.jar (The system cannot find the file specified)

        Jul 27, 2017 12:27:20 PM org.apache.tomcat.util.scan.StandardJarScanner scan
        WARNING: Failed to scan [file:/C:/Program%20Files/Apache%20Software%20Foundation/Tomcat8.5/lib/saaj-impl.jar] from classloader hierarchy
        java.io.FileNotFoundException: C:\Program Files\Apache Software Foundation\Tomcat8.5\lib\saaj-impl.jar (The system cannot find the file specified)


    Jul 27, 2017 12:27:20 PM org.apache.tomcat.util.scan.StandardJarScanner scan
    WARNING: Failed to scan [file:/C:/Program%20Files/Apache%20Software%20Foundation/Tomcat8.5/lib/jsr173_api.jar] from classloader hierarchy
    java.io.FileNotFoundException: C:\Program Files\Apache Software Foundation\Tomcat8.5\lib\jsr173_api.jar (The system cannot find the file specified)


    Jul 27, 2017 12:27:20 PM org.apache.tomcat.util.scan.StandardJarScanner scan
    WARNING: Failed to scan [file:/C:/Program%20Files/Apache%20Software%20Foundation/Tomcat8.5/lib/sjsxp.jar] from classloader hierarchy
    java.io.FileNotFoundException: C:\Program Files\Apache Software Foundation\Tomcat8.5\lib\sjsxp.jar (The system cannot find the file specified)

    Jul 27, 2017 12:27:20 PM org.apache.tomcat.util.scan.StandardJarScanner scan
    WARNING: Failed to scan [file:/C:/Program%20Files/Apache%20Software%20Foundation/Tomcat8.5/lib/woodstox.jar] from classloader hierarchy
    java.io.FileNotFoundException: C:\Program Files\Apache Software Foundation\Tomcat8.5\lib\woodstox.jar (The system cannot find the file specified)


    Jul 27, 2017 12:27:20 PM org.apache.tomcat.util.scan.StandardJarScanner scan
    WARNING: Failed to scan [file:/C:/Program%20Files/Apache%20Software%20Foundation/Tomcat8.5/lib/resolver.jar] from classloader hierarchy
    java.io.FileNotFoundException: C:\Program Files\Apache Software Foundation\Tomcat8.5\lib\resolver.jar (The system cannot find the file specified)


    Jul 27, 2017 12:27:20 PM org.apache.tomcat.util.scan.StandardJarScanner scan
    WARNING: Failed to scan [file:/C:/Program%20Files/Apache%20Software%20Foundation/Tomcat8.5/lib/jaxb-impl.jar] from classloader hierarchy
    java.io.FileNotFoundException: C:\Program Files\Apache Software Foundation\Tomcat8.5\lib\jaxb-impl.jar (The system cannot find the file specified)

    Jul 27, 2017 12:27:20 PM org.apache.tomcat.util.scan.StandardJarScanner scan
    WARNING: Failed to scan [file:/C:/Program%20Files/Apache%20Software%20Foundation/Tomcat8.5/lib/stax-ex.jar] from classloader hierarchy
    java.io.FileNotFoundException: C:\Program Files\Apache Software Foundation\Tomcat8.5\lib\stax-ex.jar (The system cannot find the file specified)


    Jul 27, 2017 12:27:20 PM org.apache.tomcat.util.scan.StandardJarScanner scan
    WARNING: Failed to scan [file:/C:/Program%20Files/Apache%20Software%20Foundation/Tomcat8.5/lib/streambuffer.jar] from classloader hierarchy
    java.io.FileNotFoundException: C:\Program Files\Apache Software Foundation\Tomcat8.5\lib\streambuffer.jar (The system cannot find the file specified)


    Jul 27, 2017 12:27:20 PM org.apache.tomcat.util.scan.StandardJarScanner scan
    WARNING: Failed to scan [file:/C:/Program%20Files/Apache%20Software%20Foundation/Tomcat8.5/lib/stax-utils.jar] from classloader hierarchy
    java.io.FileNotFoundException: C:\Program Files\Apache Software Foundation\Tomcat8.5\lib\stax-utils.jar (The system cannot find the file specified)


    Jul 27, 2017 12:27:20 PM org.apache.tomcat.util.scan.StandardJarScanner scan
    WARNING: Failed to scan [file:/C:/Program%20Files/Apache%20Software%20Foundation/Tomcat8.5/lib/schema/weblogic-container-binding.jar] from classloader hierarchy
    java.io.FileNotFoundException: C:\Program Files\Apache Software Foundation\Tomcat8.5\lib\schema\weblogic-container-binding.jar (The system cannot find the path specified)
        at java.util.zip.ZipFile.open(Native Method)
        at java.util.zip.ZipFile.<init>(ZipFile.java:219)
        at java.util.zip.ZipFile.<init>(ZipFile.java:149)
        at java.util.jar.JarFile.<init>(JarFile.java:166)
        at java.util.jar.JarFile.<init>(JarFile.java:130)
        at org.apache.tomcat.util.scan.JarFileUrlJar.<init>(JarFileUrlJar.java:60)
        at org.apache.tomcat.util.scan.JarFactory.newInstance(JarFactory.java:49)
        at org.apache.tomcat.util.scan.StandardJarScanner.process(StandardJarScanner.java:338)
        at org.apache.tomcat.util.scan.StandardJarScanner.scan(StandardJarScanner.java:288)
        at org.apache.catalina.startup.ContextConfig.processJarsForWebFragments(ContextConfig.java:1898)
        at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1126)
        at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:775)
        at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:299)
        at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:94)
        at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5105)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:752)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:728)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:734)
        at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:630)
        at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1842)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        at java.lang.Thread.run(Thread.java:748)

关于如何解决这个问题的任何想法?

1 个答案:

答案 0 :(得分:1)

尝试将此添加到Tomcat context.xml文件

<Context>
    <JarScanner scanClassPath="false" scanAllDirectories="false" />
</Context>