簡體   English   中英

將tomcat 7升級到tomcat 8.5

[英]Upgraded tomcat 7 to tomcat 8.5

當我將tomcat從7升級到8.5並嘗試運行我的應用程序時,我從stdferr.log中得到以下錯誤集。

我有什么錯誤嗎? 我已經從tomcat7(不匹配)中復制了所有剩余的jar。 請指導我解決此問題

這是錯誤日志:

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)

關於如何解決此問題的任何想法?

嘗試將其添加到您的Tomcat context.xml文件中

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

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM