无法将我的webapp部署到Tomcat 9.0

时间:2016-10-28 04:00:53

标签: java eclipse maven tomcat

当我将Web应用程序部署到Tomcat 9.0时,我收到此错误。我改变了faph的扩展。战到faph.zip,它可以解压缩。该文件由Eclipse打包。建筑信息如下所示。

enter image description here enter image description here

28-Oct-2016 11:36:55.567 信息 [ContainerBackgroundProcessor[StandardEngine[Catalina]]] org.apache.catalina.startup.HostConfig.undeploy Undeploying context [/faph]
28-Oct-2016 11:37:45.704 信息 [localhost-startStop-2] org.apache.catalina.startup.HostConfig.deployWAR Deploying web application archive C:\Program Files\Apache Software Foundation\Tomcat 9.0\webapps\faph.war
28-Oct-2016 11:37:46.013 严重 [localhost-startStop-2] org.apache.catalina.core.StandardContext.startInternal Error while attempting to validate required application extensions
 java.io.IOException: invalid header field
    at java.util.jar.Attributes.read(Unknown Source)
    at java.util.jar.Manifest.read(Unknown Source)
    at java.util.jar.Manifest.<init>(Unknown Source)
    at org.apache.catalina.util.ExtensionValidator.validateApplication(ExtensionValidator.java:155)
    at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:4988)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
    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.deployWAR(HostConfig.java:952)
    at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1823)
    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)

28-Oct-2016 11:37:46.014 严重 [localhost-startStop-2] org.apache.catalina.core.StandardContext.startInternal One or more components marked the context as not correctly configured
28-Oct-2016 11:37:46.014 严重 [localhost-startStop-2] org.apache.catalina.core.StandardContext.startInternal Context [/faph] startup failed due to previous errors
28-Oct-2016 11:37:46.016 信息 [localhost-startStop-2] org.apache.catalina.startup.HostConfig.deployWAR Deployment of web application archive C:\Program Files\Apache Software Foundation\Tomcat 9.0\webapps\faph.war has finished in 312 ms

0 个答案:

没有答案