Unable to process Jar [jar:file:/E:/jxdwork/tomcat7/apache-tomcat-7.0.67/apache-tomcat-7.0.67/webapp

启动maven项目的时候报错:

十月 30, 2017 4:37:17 下午 org.apache.catalina.startup.ContextConfig processAnnotationsJar
SEVERE: Unable to process Jar [jar:file:/E:/jxdwork/tomcat7/apache-tomcat-7.0.67/apache-tomcat-7.0.67/webapps/OAServer/WEB-INF/lib/jaxrpc-1.1.jar!/] for annotations
java.util.zip.ZipException: error in opening zip file
    at java.util.zip.ZipFile.open(Native Method)
    at java.util.zip.ZipFile.(ZipFile.java:214)
    at java.util.zip.ZipFile.(ZipFile.java:144)
    at java.util.jar.JarFile.(JarFile.java:153)
    at java.util.jar.JarFile.(JarFile.java:90)
    at sun.net.www.protocol.jar.URLJarFile.(URLJarFile.java:93)
    at sun.net.www.protocol.jar.URLJarFile.getJarFile(URLJarFile.java:69)
    at sun.net.www.protocol.jar.JarFileFactory.get(JarFileFactory.java:98)
    at sun.net.www.protocol.jar.JarURLConnection.connect(JarURLConnection.java:122)
    at sun.net.www.protocol.jar.JarURLConnection.getJarFile(JarURLConnection.java:89)
    at org.apache.tomcat.util.scan.FileUrlJar.(FileUrlJar.java:41)
    at org.apache.tomcat.util.scan.JarFactory.newInstance(JarFactory.java:34)
    at org.apache.catalina.startup.ContextConfig.processAnnotationsJar(ContextConfig.java:1971)
    at org.apache.catalina.startup.ContextConfig.processAnnotationsUrl(ContextConfig.java:1946)
    at org.apache.catalina.startup.ContextConfig.processAnnotations(ContextConfig.java:1931)
    at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1330)
    at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:889)
    at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:386)
    at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
    at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
    at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5479)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)
    at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1263)
    at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1975)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
    at java.util.concurrent.FutureTask.run(FutureTask.java:166)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    at java.lang.Thread.run(Thread.java:722)
十月 30, 2017 4:37:22 下午 org.apache.catalina.startup.ContextConfig processResourceJARs
SEVERE: Failed to process JAR found at URL [jar:file:/E:/jxdwork/tomcat7/apache-tomcat-7.0.67/apache-tomcat-7.0.67/webapps/OAServer/WEB-INF/lib/jaxrpc-1.1.jar!/] for static resources to be included in context with name [/OAServer]

原因:maven仓库jaxrpc-1.1.jar包错误,删除重新下即可。

之前还遇到一个错误
java.lang.IllegalStateException: ContainerBase.addChild: start:org.apache.catalina.LifecycleException: Failed to start component[StandardEngine[Catalina]…

重新下个tomcat用。之前tomcat玩坏了,忘了改哪个配置文件了

你可能感兴趣的:(Unable to process Jar [jar:file:/E:/jxdwork/tomcat7/apache-tomcat-7.0.67/apache-tomcat-7.0.67/webapp)