1. 程式人生 > >專案紅點報錯

專案紅點報錯

十月 19, 2018 10:18:44 上午 org.apache.catalina.core.ContainerBase addChildInternal
嚴重: ContainerBase.addChild: start: 
org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/property-management]]
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:158)
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:724)
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:700)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:734)
    at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:596)
    at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1805)
    at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
    at java.util.concurrent.FutureTask.run(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
Caused by: org.apache.catalina.LifecycleException: Failed to start component [

[email protected]]
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:158)
    at org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java:4830)
    at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:4962)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:152)
    ... 10 more
Caused by: org.apache.catalina.LifecycleException: Failed to initialize component [org.apache.catalina
[email protected]
]
    at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:112)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:141)
    at org.apache.catalina.webresources.StandardRoot.startInternal(StandardRoot.java:701)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:152)
    ... 13 more
Caused by: java.lang.IllegalArgumentException: java.util.zip.ZipException: invalid CEN header (bad signature)
    at org.apache.catalina.webresources.JarResourceSet.initInternal(JarResourceSet.java:139)
    at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:107)
    ... 16 more
Caused by: java.util.zip.ZipException: invalid CEN header (bad signature)
    at java.util.zip.ZipFile.open(Native Method)
    at java.util.zip.ZipFile.<init>(Unknown Source)
    at java.util.zip.ZipFile.<init>(Unknown Source)
    at java.util.jar.JarFile.<init>(Unknown Source)
    at java.util.jar.JarFile.<init>(Unknown Source)
    at org.apache.catalina.webresources.JarResourceSet.initInternal(JarResourceSet.java:136)
    ... 17 more

十月 19, 2018 10:18:44 上午 org.apache.catalina.startup.HostConfig deployDescriptor
嚴重: Error deploying configuration descriptor D:\software\Tomcat\tomcat20181018\apache-tomcat-9.0.0.M9\apache-tomcat-9.0.0.M9\conf\Catalina\localhost\property-management.xml
java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/property-management]]
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:728)
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:700)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:734)
    at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:596)
    at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1805)
    at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
    at java.util.concurrent.FutureTask.run(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)

十月 19, 2018 10:18:44 上午 org.apache.catalina.startup.HostConfig deployDescriptor
資訊: Deployment of configuration descriptor D:\software\Tomcat\tomcat20181018\apache-tomcat-9.0.0.M9\apache-tomcat-9.0.0.M9\conf\Catalina\localhost\property-management.xml has finished in 143 ms
十月 19, 2018 10:18:44 上午 org.apache.catalina.startup.HostConfig deployDescriptor
資訊: Deploying configuration descriptor D:\software\Tomcat\tomcat20181018\apache-tomcat-9.0.0.M9\apache-tomcat-9.0.0.M9\conf\Catalina\localhost\property-wechat-service.xml
十月 19, 2018 10:18:44 上午 org.apache.catalina.startup.SetContextPropertiesRule begin
警告: [SetContextPropertiesRule]{Context} Setting property 'source' to 'org.eclipse.jst.jee.server:property-wechat-service' did not find a matching property.
十月 19, 2018 10:18:44 上午 org.apache.catalina.webresources.Cache getResource
警告: Unable to add the resource at [/WEB-INF/lib/spring-jdbc-4.1.7.RELEASE.jar] to the cache because there was insufficient free space available after evicting expired cache entries - consider increasing the maximum size of the cache
十月 19, 2018 10:18:44 上午 org.apache.catalina.webresources.Cache getResource
警告: Unable to add the resource at [/WEB-INF/lib/spring-security-config-4.0.2.RELEASE.jar] to the cache because there was insufficient free space available after evicting expired cache entries - consider increasing the maximum size of the cache
十月 19, 2018 10:18:44 上午 org.apache.catalina.webresources.Cache getResource
警告: Unable to add the resource at [/WEB-INF/lib/spring-security-core-4.0.2.RELEASE.jar] to the cache because there was insufficient free space available after evicting expired cache entries - consider increasing the maximum size of the cache
十月 19, 2018 10:18:44 上午 org.apache.catalina.webresources.Cache getResource
警告: Unable to add the resource at [/WEB-INF/lib/spring-security-oauth2-2.0.7.RELEASE.jar] to the cache because there was insufficient free space available after evicting expired cache entries - consider increasing the maximum size of the cache
十月 19, 2018 10:18:44 上午 org.apache.catalina.webresources.Cache getResource
警告: Unable to add the resource at [/WEB-INF/lib/spring-security-web-4.0.2.RELEASE.jar] to the cache because there was insufficient free space available after evicting expired cache entries - consider increasing the maximum size of the cache
十月 19, 2018 10:18:44 上午 org.apache.catalina.webresources.Cache getResource
警告: Unable to add the resource at [/WEB-INF/lib/standard-1.1.2.jar] to the cache because there was insufficient free space available after evicting expired cache entries - consider increasing the maximum size of the cache
十月 19, 2018 10:18:44 上午 org.apache.catalina.webresources.Cache getResource
警告: Unable to add the resource at [/WEB-INF/lib/stax-api-1.0-2.jar] to the cache because there was insufficient free space available after evicting expired cache entries - consider increasing the maximum size of the cache
十月 19, 2018 10:18:44 上午 org.apache.catalina.webresources.Cache getResource
警告: Unable to add the resource at [/WEB-INF/lib/stax2-api-3.1.1.jar] to the cache because there was insufficient free space available after evicting expired cache entries - consider increasing the maximum size of the cache
十月 19, 2018 10:18:44 上午 org.apache.catalina.webresources.Cache getResource
警告: Unable to add the resource at [/WEB-INF/lib/validate-code-1.0.0.jar] to the cache because there was insufficient free space available after evicting expired cache entries - consider increasing the maximum size of the cache
十月 19, 2018 10:18:44 上午 org.apache.catalina.webresources.Cache getResource
警告: Unable to add the resource at [/WEB-INF/lib/validation-api-1.1.0.Final.jar] to the cache because there was insufficient free space available after evicting expired cache entries - consider increasing the maximum size of the cache
十月 19, 2018 10:18:44 上午 org.apache.catalina.webresources.Cache getResource
警告: Unable to add the resource at [/WEB-INF/lib/woden-api-1.0M9.jar] to the cache because there was insufficient free space available after evicting expired cache entries - consider increasing the maximum size of the cache
十月 19, 2018 10:18:44 上午 org.apache.catalina.webresources.Cache getResource
警告: Unable to add the resource at [/WEB-INF/lib/woden-impl-commons-1.0M9.jar] to the cache because there was insufficient free space available after evicting expired cache entries - consider increasing the maximum size of the cache
十月 19, 2018 10:18:44 上午 org.apache.catalina.webresources.Cache getResource
警告: Unable to add the resource at [/WEB-INF/lib/woden-impl-dom-1.0M9.jar] to the cache because there was insufficient free space available after evicting expired cache entries - consider increasing the maximum size of the cache
十月 19, 2018 10:18:44 上午 org.apache.catalina.webresources.Cache getResource
警告: Unable to add the resource at [/WEB-INF/lib/woodstox-core-asl-4.1.4.jar] to the cache because there was insufficient free space available after evicting expired cache entries - consider increasing the maximum size of the cache
十月 19, 2018 10:18:44 上午 org.apache.catalina.webresources.Cache getResource
警告: Unable to add the resource at [/WEB-INF/lib/wsdl4j-1.6.2.jar] to the cache because there was insufficient free space available after evicting expired cache entries - consider increasing the maximum size of the cache
十月 19, 2018 10:18:44 上午 org.apache.catalina.webresources.Cache getResource
警告: Unable to add the resource at [/WEB-INF/lib/xml-apis-1.0.b2.jar] to the cache because there was insufficient free space available after evicting expired cache entries - consider increasing the maximum size of the cache
十月 19, 2018 10:18:44 上午 org.apache.catalina.webresources.Cache getResource
警告: Unable to add the resource at [/WEB-INF/lib/XmlSchema-1.4.7.jar] to the cache because there was insufficient free space available after evicting expired cache entries - consider increasing the maximum size of the cache
十月 19, 2018 10:18:44 上午 org.apache.catalina.core.ContainerBase addChildInternal
嚴重: ContainerBase.addChild: start: 
org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/property-wechat-service]]
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:158)
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:724)
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:700)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:734)
    at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:596)
    at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1805)
    at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
    at java.util.concurrent.FutureTask.run(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
Caused by: org.apache.catalina.LifecycleException: Failed to start component [[email protected]]
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:158)
    at org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java:4830)
    at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:4962)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:152)
    ... 10 more
Caused by: org.apache.catalina.LifecycleException: Failed to initialize component [[email protected]]
    at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:112)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:141)
    at org.apache.catalina.webresources.StandardRoot.startInternal(StandardRoot.java:701)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:152)
    ... 13 more
Caused by: java.lang.IllegalArgumentException: java.util.zip.ZipException: invalid CEN header (bad signature)
    at org.apache.catalina.webresources.JarResourceSet.initInternal(JarResourceSet.java:139)
    at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:107)
    ... 16 more
Caused by: java.util.zip.ZipException: invalid CEN header (bad signature)
    at java.util.zip.ZipFile.open(Native Method)
    at java.util.zip.ZipFile.<init>(Unknown Source)
    at java.util.zip.ZipFile.<init>(Unknown Source)
    at java.util.jar.JarFile.<init>(Unknown Source)
    at java.util.jar.JarFile.<init>(Unknown Source)
    at org.apache.catalina.webresources.JarResourceSet.initInternal(JarResourceSet.java:136)
    ... 17 more

十月 19, 2018 10:18:44 上午 org.apache.catalina.startup.HostConfig deployDescriptor
嚴重: Error deploying configuration descriptor D:\software\Tomcat\tomcat20181018\apache-tomcat-9.0.0.M9\apache-tomcat-9.0.0.M9\conf\Catalina\localhost\property-wechat-service.xml
java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/property-wechat-service]]
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:728)
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:700)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:734)
    at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:596)
    at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1805)
    at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
    at java.util.concurrent.FutureTask.run(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)

十月 19, 2018 10:18:44 上午 org.apache.catalina.startup.HostConfig deployDescriptor
資訊: Deployment of configuration descriptor D:\software\Tomcat\tomcat20181018\apache-tomcat-9.0.0.M9\apache-tomcat-9.0.0.M9\conf\Catalina\localhost\property-wechat-service.xml has finished in 183 ms
十月 19, 2018 10:18:44 上午 org.apache.catalina.startup.HostConfig deployDirectory
資訊: Deploying web application directory D:\software\Tomcat\tomcat20181018\apache-tomcat-9.0.0.M9\apache-tomcat-9.0.0.M9\webapps\docs
十月 19, 2018 10:18:44 上午 org.apache.catalina.startup.HostConfig deployDirectory
資訊: Deployment of web application directory D:\software\Tomcat\tomcat20181018\apache-tomcat-9.0.0.M9\apache-tomcat-9.0.0.M9\webapps\docs has finished in 211 ms
十月 19, 2018 10:18:44 上午 org.apache.catalina.startup.HostConfig deployDirectory
資訊: Deploying web application directory D:\software\Tomcat\tomca

 

一、匯入工程後,工程名出現紅色感嘆號,導致這種原因是工程本身的JRE System Library、Server Runtime與當前Eclipse中的執行環境不匹配。

1、右鍵點選【工程名】 → 【Properties】→ 【Java Build Path】→ 【Libraries】進行更新。

二、紅叉

【windows】 → 【Show View】 →【 Other】 → 搜尋框輸入Problems → 選中Problems檢視,刪掉報錯的東西

三。如果出現:Target runtime Apache Tomcat v7.0 is not defined錯誤

解決:【工程名】 → 【Properties】→ 【Targeted Runtimes】→ tomcat7.0的去掉對勾,tomcat8.0的打對勾。→ 【Apply】→ 【OK】