项目红点报错

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/qq_23145857/article/details/83177361

十月 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 [org.apache.catalina.webresources.StandardRoot@9a6c3cf]
    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.webresources.JarResourceSet@863bda8]
    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 [org.apache.catalina.webresources.StandardRoot@1393c82]
    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.webresources.JarResourceSet@2be643dd]
    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】


 

猜你喜欢

转载自blog.csdn.net/qq_23145857/article/details/83177361