NutzCN Logo
问答 NutzWk克隆成功后编译通过,无法运行
发布于 2683天前 作者 犀利小眼神 2087 次浏览 复制 上一个帖子 下一个帖子
标签: nutzwk

开发环境如下

1、JDK 1.8
2、MAVEN 3.2.5 (我看文档上写的要求 Maven 3.3.x 以上)
3、JETTY 9.4.2.v20170220
4、MYSQL 5.5.47
5、项目在IDEA中全部使用UTF-8编码及开发环境

问题描述

mvn install 运行成功

mvn jetty:run 运行后报以下提示 (初次使用,请多指教)
2017-08-18 14:44:52.388:INFO:oejs.Server:main: jetty-9.4.2.v20170220
2017-08-18 14:44:52.511:WARN:oejw.WebAppContext:main: Failed startup of context o.e.j.m.p.JettyWebAppContext@3491e86e{/,file:///F:/WEB_PROJECT/GRADLE/NutzWk/wk-app/wk-web/src/main/webapp/,null}{file:///F:/WEB_PROJECT/GRADLE/NutzWk/wk-app/wk-web/src/main/webapp/}
java.util.zip.ZipException: error in opening zip file
        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:103)
        at sun.net.www.protocol.jar.URLJarFile.<init>(URLJarFile.java:93)
        at sun.net.www.protocol.jar.URLJarFile.getJarFile(URLJarFile.java:69)
        at sun.net.www.protocol.jar.JarFileFactory.get(JarFileFactory.java:109)
        at sun.net.www.protocol.jar.JarURLConnection.connect(JarURLConnection.java:122)
        at sun.net.www.protocol.jar.JarURLConnection.getJarFile(JarURLConnection.java:89)
        at org.eclipse.jetty.webapp.MetaInfConfiguration.getTlds(MetaInfConfiguration.java:409)
        at org.eclipse.jetty.webapp.MetaInfConfiguration.scanForTlds(MetaInfConfiguration.java:326)
        at org.eclipse.jetty.webapp.MetaInfConfiguration.scanJars(MetaInfConfiguration.java:143)
        at org.eclipse.jetty.webapp.MetaInfConfiguration.preConfigure(MetaInfConfiguration.java:94)
        at org.eclipse.jetty.webapp.WebAppContext.preConfigure(WebAppContext.java:501)
        at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:539)
        at org.eclipse.jetty.maven.plugin.JettyWebAppContext.doStart(JettyWebAppContext.java:432)
        at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
        at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:131)
        at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:113)
        at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:113)
        at org.eclipse.jetty.server.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:161)
        at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
        at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:131)
        at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:113)
        at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:113)
        at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
        at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:131)
        at org.eclipse.jetty.server.Server.start(Server.java:452)
        at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:105)
        at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:113)
        at org.eclipse.jetty.server.Server.doStart(Server.java:419)
        at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
        at org.eclipse.jetty.maven.plugin.AbstractJettyMojo.startJetty(AbstractJettyMojo.java:460)
        at org.eclipse.jetty.maven.plugin.AbstractJettyMojo.execute(AbstractJettyMojo.java:328)
        at org.eclipse.jetty.maven.plugin.JettyRunMojo.execute(JettyRunMojo.java:170)
        at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:132)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
        at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
        at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:120)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:355)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:155)
        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:584)
        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:216)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:160)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
        at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
        at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
2017-08-18 14:44:52.525:INFO:oejs.AbstractNCSARequestLog:main: Opened F:\WEB_PROJECT\GRADLE\NutzWk\wk-app\wk-web\target\access-2017_08_18.log
2017-08-18 14:44:52.554:INFO:oejs.AbstractConnector:main: Started ServerConnector@c6b2dd9{HTTP/1.1,[http/1.1]}{0.0.0.0:8080}
2017-08-18 14:44:52.556:INFO:oejs.Server:main: Started @8150ms
[INFO] Started Jetty Server
[INFO] org.eclipse.jetty.server.Server@6a282fdd - STARTED
 += qtp1410008136{STARTED,8<=8<=200,i=3,q=0} - STARTED
 |   +- 16 qtp1410008136-16 RUNNABLE @ sun.nio.ch.WindowsSelectorImpl$SubSelector.poll0(Native Method)
 |   +- 13 qtp1410008136-13 RUNNABLE @ org.eclipse.jetty.server.AbstractConnector.getProtocols(AbstractConnector.java:508)
 |   +- 17 qtp1410008136-17 RUNNABLE @ sun.nio.ch.WindowsSelectorImpl$SubSelector.poll0(Native Method)
 |   +- 20 qtp1410008136-20 TIMED_WAITING @ sun.misc.Unsafe.park(Native Method) IDLE
 |   +- 15 qtp1410008136-15-lowPrioritySelector BLOCKED @ java.lang.ClassLoader.loadClass(ClassLoader.java:404) prio=1
 |   +- 18 qtp1410008136-18 TIMED_WAITING @ sun.misc.Unsafe.park(Native Method) IDLE
 |   +- 14 qtp1410008136-14-lowPrioritySelector RUNNABLE @ org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:42) prio=1
 |   +- 19 qtp1410008136-19 TIMED_WAITING @ sun.misc.Unsafe.park(Native Method) IDLE
 |   +- jobs
 += org.eclipse.jetty.maven.plugin.MavenServerConnector@57a2ed35 - STARTED
 += org.eclipse.jetty.server.handler.HandlerCollection@12ffd1de[org.eclipse.jetty.server.handler.ContextHandlerCollection@3d278b4d[o.e.j.m.p.JettyWebAppContext@3491e86e{/,file:///F:/WEB_PROJECT/GRADLE/NutzWk/wk-app/wk-web/src/main/webapp/,UNAVAILABLE}{file:///F:/WEB_PROJECT/GRADLE/NutzWk/wk-app/wk-web/src/main/webapp/}], org.eclipse.jetty.server.handler.DefaultHandler@4096aa05, org.eclipse.jetty.server.handler.RequestLogHandler@9d3c67] - STARTED
 |   += org.eclipse.jetty.server.handler.ContextHandlerCollection@3d278b4d[o.e.j.m.p.JettyWebAppContext@3491e86e{/,file:///F:/WEB_PROJECT/GRADLE/NutzWk/wk-app/wk-web/src/main/webapp/,UNAVAILABLE}{file:///F:/WEB_PROJECT/GRADLE/NutzWk/wk-app/wk-web/src/main/webapp/}] - STARTED
 |   |   += o.e.j.m.p.JettyWebAppContext@3491e86e{/,file:///F:/WEB_PROJECT/GRADLE/NutzWk/wk-app/wk-web/src/main/webapp/,UNAVAILABLE}{file:///F:/WEB_PROJECT/GRADLE/NutzWk/wk-app/wk-web/src/main/webapp/} - STARTED
 |   |       += org.eclipse.jetty.server.session.SessionHandler1820355723==dftMaxIdleSec=-1 - STOPPED
 |   |       |   += org.eclipse.jetty.security.ConstraintSecurityHandler@6dfcffb5 - STOPPED
 |   |       |       +- org.eclipse.jetty.security.DefaultAuthenticatorFactory@184fb68d
 |   |       |       += org.eclipse.jetty.servlet.ServletHandler@71d8cfe7 - STOPPED
 |   |       |       |
 |   |       |       +> null
 |   |       |       +> null
 |   |       |       +> null
 |   |       |       +> []
 |   |       += org.eclipse.jetty.servlet.ErrorPageErrorHandler@1e530163 - STOPPED
 |   |       |
 |   |       +> WebAppClassLoader=1694239102@64fc097e
 |   |       |   +- ClassRealm[plugin>org.eclipse.jetty:jetty-maven-plugin:9.4.2.v20170220, parent: sun.misc.Launcher$AppClassLoader@55f96302]
 |   |       +> Systemclasses o.e.j.m.p.JettyWebAppContext@3491e86e{/,file:///F:/WEB_PROJECT/GRADLE/NutzWk/wk-app/wk-web/src/main/webapp/,UNAVAILABLE}{file:///F:/WEB_PROJECT/GRADLE/NutzWk/wk-app/wk-web/src/main/webapp/}
 |   |       |   +- java.
 |   |       |   +- javax.
 |   |       |   +- org.eclipse.jetty.continuation.
 |   |       |   +- org.eclipse.jetty.jaas.
 |   |       |   +- org.eclipse.jetty.jmx.
 |   |       |   +- org.eclipse.jetty.jndi.
 |   |       |   +- org.eclipse.jetty.jsp.JettyJspServlet
 |   |       |   +- org.eclipse.jetty.servlet.DefaultServlet
 |   |       |   +- org.eclipse.jetty.servlets.PushCacheFilter
 |   |       |   +- org.eclipse.jetty.servlets.PushSessionCacheFilter
 |   |       |   +- org.eclipse.jetty.util.annotation.
 |   |       |   +- org.eclipse.jetty.util.log.
 |   |       |   +- org.eclipse.jetty.websocket.
 |   |       |   +- org.w3c.
 |   |       |   +- org.xml.
 |   |       +> Serverclasses o.e.j.m.p.JettyWebAppContext@3491e86e{/,file:///F:/WEB_PROJECT/GRADLE/NutzWk/wk-app/wk-web/src/main/webapp/,UNAVAILABLE}{file:///F:/WEB_PROJECT/GRADLE/NutzWk/wk-app/wk-web/src/main/webapp/}
 |   |       |   +- -org.eclipse.jetty.alpn.
 |   |       |   +- -org.eclipse.jetty.apache.
 |   |       |   +- -org.eclipse.jetty.continuation.
 |   |       |   +- -org.eclipse.jetty.jaas.
 |   |       |   +- -org.eclipse.jetty.jmx.
 |   |       |   +- -org.eclipse.jetty.jndi.
 |   |       |   +- -org.eclipse.jetty.jsp.
 |   |       |   +- -org.eclipse.jetty.server.session.SessionData
 |   |       |   +- -org.eclipse.jetty.servlet.DefaultServlet
 |   |       |   +- -org.eclipse.jetty.servlet.NoJspServlet
 |   |       |   +- -org.eclipse.jetty.servlet.listener.
 |   |       |   +- -org.eclipse.jetty.servlets.
 |   |       |   +- -org.eclipse.jetty.util.annotation.
 |   |       |   +- -org.eclipse.jetty.util.log.
 |   |       |   +- -org.eclipse.jetty.websocket.
 |   |       |   +- org.eclipse.jdt.
 |   |       |   +- org.eclipse.jetty.
 |   |       |   +- org.objectweb.asm.
 |   |       +> Configurations o.e.j.m.p.JettyWebAppContext@3491e86e{/,file:///F:/WEB_PROJECT/GRADLE/NutzWk/wk-app/wk-web/src/main/webapp/,UNAVAILABLE}{file:///F:/WEB_PROJECT/GRADLE/NutzWk/wk-app/wk-web/src/main/webapp/}
 |   |       |   +- org.eclipse.jetty.maven.plugin.MavenWebInfConfiguration@14d8444b
 |   |       |   +- org.eclipse.jetty.webapp.WebXmlConfiguration@71466383
 |   |       |   +- org.eclipse.jetty.webapp.MetaInfConfiguration@46d63dbb
 |   |       |   +- org.eclipse.jetty.webapp.FragmentConfiguration@4088741b
 |   |       |   +- org.eclipse.jetty.plus.webapp.EnvConfiguration@16a49a5d
 |   |       |   +- org.eclipse.jetty.plus.webapp.PlusConfiguration@54bca971
 |   |       |   +- org.eclipse.jetty.annotations.AnnotationConfiguration@23706db8
 |   |       |   +- org.eclipse.jetty.webapp.JettyWebXmlConfiguration@205bed61
 |   |       +> Handler attributes o.e.j.m.p.JettyWebAppContext@3491e86e{/,file:///F:/WEB_PROJECT/GRADLE/NutzWk/wk-app/wk-web/src/main/webapp/,UNAVAILABLE}{file:///F:/WEB_PROJECT/GRADLE/NutzWk/wk-app/wk-web/src/main/webapp/}
 |   |       |   +- javax.servlet.context.tempdir=F:\WEB_PROJECT\GRADLE\NutzWk\wk-app\wk-web\target\tmp
 |   |       |   +- org.eclipse.jetty.server.webapp.ContainerIncludeJarPattern=.*/javax.servlet-[^/]*\.jar$|.*/servlet-api-[^/]*\.jar$|.*javax.servlet.jsp.jstl-[^/]*\.jar|.*taglibs-standard-impl-.*\.jar
 |   |       |   +- org.eclipse.jetty.tlds=[jar:file:///D:/java/repository/org/apache/taglibs/taglibs-standard-impl/1.2.5/taglibs-standard-impl-1.2.5.jar!/META-INF/fn.tld, jar:file:///D:/java/repository/org/apache/taglibs/taglibs-standard-impl/1.2.5/taglibs-standard-impl-1.2.5.jar!/META-INF/c-1_0-rt.tld, jar:file:///D:/java/repository/org/apache/taglibs/taglibs-standard-impl/1.2.5/taglibs-standard-impl-1.2.5.jar!/META-INF/x.tld, jar:file:///D:/java/repository/org/apache/taglibs/taglibs-standard-impl/1.2.5/taglibs-standard-impl-1.2.5.jar!/META-INF/c.tld, jar:file:///D:/java/repository/org/apache/taglibs/taglibs-standard-impl/1.2.5/taglibs-standard-impl-1.2.5.jar!/META-INF/sql.tld, jar:file:///D:/java/repository/org/apache/taglibs/taglibs-standard-impl/1.2.5/taglibs-standard-impl-1.2.5.jar!/META-INF/sql-1_0-rt.tld, jar:file:///D:/java/repository/org/apache/taglibs/taglibs-standard-impl/1.2.5/taglibs-standard-impl-1.2.5.jar!/META-INF/x-1_0-rt.tld, jar:file:///D:/java/repository/org/apache/taglibs/taglibs-standard-impl/1.2.5/taglibs-standard-impl-1.2.5.jar!/META-INF/c-1_1.tld, jar:file:///D:/java/repository/org/apache/taglibs/taglibs-standard-impl/1.2.5/taglibs-standard-impl-1.2.5.jar!/META-INF/permittedTaglibs.tld, jar:file:///D:/java/repository/org/apache/taglibs/taglibs-standard-impl/1.2.5/taglibs-standard-impl-1.2.5.jar!/META-INF/fmt-1_0-rt.tld, jar:file:///D:/java/repository/org/apache/taglibs/taglibs-standard-impl/1.2.5/taglibs-standard-impl-1.2.5.jar!/META-INF/scriptfree.tld, jar:file:///D:/java/repository/org/apache/shiro/shiro-web/1.2.5/shiro-web-1.2.5.jar!/META-INF/shiro.tld, jar:file:///D:/java/repository/org/apache/taglibs/taglibs-standard-impl/1.2.5/taglibs-standard-impl-1.2.5.jar!/META-INF/fmt.tld]
 |   |       |   +- org.eclipse.jetty.resource.postOverlay=file:///F:/WEB_PROJECT/GRADLE/NutzWk/wk-app/wk-web/src/main/webapp/
 |   |       |   +- org.eclipse.jetty.tmpdirConfigured=true
 |   |       |   +- org.eclipse.jetty.resources=[]
 |   |       |   +- org.eclipse.jetty.webFragments={}
 |   |       +> Context attributes o.e.j.m.p.JettyWebAppContext@3491e86e{/,file:///F:/WEB_PROJECT/GRADLE/NutzWk/wk-app/wk-web/src/main/webapp/,UNAVAILABLE}{file:///F:/WEB_PROJECT/GRADLE/NutzWk/wk-app/wk-web/src/main/webapp/}
 |   |       +> Initparams o.e.j.m.p.JettyWebAppContext@3491e86e{/,file:///F:/WEB_PROJECT/GRADLE/NutzWk/wk-app/wk-web/src/main/webapp/,UNAVAILABLE}{file:///F:/WEB_PROJECT/GRADLE/NutzWk/wk-app/wk-web/src/main/webapp/}
 |   += org.eclipse.jetty.server.handler.DefaultHandler@4096aa05 - STARTED
 |   += org.eclipse.jetty.server.handler.RequestLogHandler@9d3c67 - STARTED
 |       += org.eclipse.jetty.server.NCSARequestLog@129fed45 - STARTED
 +- [Ljava.lang.String;@23592946
 += org.eclipse.jetty.server.handler.ErrorHandler@3e48d38 - STARTED
 +- {file:///D:/java/repository/javax/servlet/javax.servlet-api/3.1.0/javax.servlet-api-3.1.0.jar=org.eclipse.jetty.util.resource.EmptyResource@7c2b58c0, file:///D:/java/repository/org/apache/taglibs/taglibs-standard-impl/1.2.5/taglibs-standard-impl-1.2.5.jar=org.eclipse.jetty.util.resource.EmptyResource@7c2b58c0}
 +- {file:///D:/java/repository/javax/servlet/javax.servlet-api/3.1.0/javax.servlet-api-3.1.0.jar=org.eclipse.jetty.util.resource.EmptyResource@7c2b58c0, file:///D:/java/repository/org/apache/taglibs/taglibs-standard-impl/1.2.5/taglibs-standard-impl-1.2.5.jar=org.eclipse.jetty.util.resource.EmptyResource@7c2b58c0}
 +- {file:///D:/java/repository/javax/servlet/javax.servlet-api/3.1.0/javax.servlet-api-3.1.0.jar=[], file:///D:/java/repository/org/apache/taglibs/taglibs-standard-impl/1.2.5/taglibs-standard-impl-1.2.5.jar=[jar:file:///D:/java/repository/org/apache/taglibs/taglibs-standard-impl/1.2.5/taglibs-standard-impl-1.2.5.jar!/META-INF/fn.tld, jar:file:///D:/java/repository/org/apache/taglibs/taglibs-standard-impl/1.2.5/taglibs-standard-impl-1.2.5.jar!/META-INF/sql.tld, jar:file:///D:/java/repository/org/apache/taglibs/taglibs-standard-impl/1.2.5/taglibs-standard-impl-1.2.5.jar!/META-INF/sql-1_0-rt.tld, jar:file:///D:/java/repository/org/apache/taglibs/taglibs-standard-impl/1.2.5/taglibs-standard-impl-1.2.5.jar!/META-INF/x-1_0-rt.tld, jar:file:///D:/java/repository/org/apache/taglibs/taglibs-standard-impl/1.2.5/taglibs-standard-impl-1.2.5.jar!/META-INF/c-1_1.tld, jar:file:///D:/java/repository/org/apache/taglibs/taglibs-standard-impl/1.2.5/taglibs-standard-impl-1.2.5.jar!/META-INF/c-1_0-rt.tld, jar:file:///D:/java/repository/org/apache/taglibs/taglibs-standard-impl/1.2.5/taglibs-standard-impl-1.2.5.jar!/META-INF/permittedTaglibs.tld, jar:file:///D:/java/repository/org/apache/taglibs/taglibs-standard-impl/1.2.5/taglibs-standard-impl-1.2.5.jar!/META-INF/fmt-1_0-rt.tld, jar:file:///D:/java/repository/org/apache/taglibs/taglibs-standard-impl/1.2.5/taglibs-standard-impl-1.2.5.jar!/META-INF/scriptfree.tld, jar:file:///D:/java/repository/org/apache/taglibs/taglibs-standard-impl/1.2.5/taglibs-standard-impl-1.2.5.jar!/META-INF/x.tld, jar:file:///D:/java/repository/org/apache/taglibs/taglibs-standard-impl/1.2.5/taglibs-standard-impl-1.2.5.jar!/META-INF/c.tld, jar:file:///D:/java/repository/org/apache/taglibs/taglibs-standard-impl/1.2.5/taglibs-standard-impl-1.2.5.jar!/META-INF/fmt.tld]}
 |
 +> ClassRealm[plugin>org.eclipse.jetty:jetty-maven-plugin:9.4.2.v20170220, parent: sun.misc.Launcher$AppClassLoader@55f96302]

8 回复

某个jar文件损坏了,删除了重新下载

多谢耐心解答,我把MAVEN对应的JAR下载和依赖全部删除,重新下载的,Nutzwk 4.x在module分支上还是报这个异常。请问有没有其它需要注意的

本地有多个JDK??

  1. 本地安装有【JDK7 / JDK8】

  2. 系统环境变量【JAVA_HOME】配置的是JDK8

  3. wk-app项目配置全部使用【JDK8】

把jdk7删掉试试, 或者把其移动到其他目录,确保idea找不到.

已经检测过项目全部使用【JDK8编译】,依然没有启动成功,我试了下面这个方法。

在【wk-app】目录下使用命令【mvn install】编译成功后,可以从当前目录出发找到【~\wk-web\target\nutzwk.war】,我把这个war单独使用Tomcat8.5布署,运行时war包会自动解压,Tomcat运行窗口报以下提示

19-Aug-2017 09:57:29.250 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Server version:        Apache Tomcat/8.5.15
19-Aug-2017 09:57:29.253 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Server built:          May 5 2017 11:03:04 UTC
19-Aug-2017 09:57:29.254 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Server number:         8.5.15.0
19-Aug-2017 09:57:29.254 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log OS Name:               Windows 10
19-Aug-2017 09:57:29.254 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log OS Version:            10.0
19-Aug-2017 09:57:29.254 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Architecture:          amd64
19-Aug-2017 09:57:29.254 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Java Home:             E:\JAVA_USE\jdk_8\jre
19-Aug-2017 09:57:29.254 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Version:           1.8.0_112-b15
19-Aug-2017 09:57:29.254 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Vendor:            Oracle Corporation
19-Aug-2017 09:57:29.255 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE:         E:\JAVA_USE\tomcat_8_5
19-Aug-2017 09:57:29.255 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_HOME:         E:\JAVA_USE\tomcat_8_5
19-Aug-2017 09:57:29.255 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.config.file=E:\JAVA_USE\tomcat_8_5\conf\logging.properties
19-Aug-2017 09:57:29.255 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
19-Aug-2017 09:57:29.255 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djdk.tls.ephemeralDHKeySize=2048
19-Aug-2017 09:57:29.255 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.protocol.handler.pkgs=org.apache.catalina.webresources
19-Aug-2017 09:57:29.255 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.base=E:\JAVA_USE\tomcat_8_5
19-Aug-2017 09:57:29.255 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.home=E:\JAVA_USE\tomcat_8_5
19-Aug-2017 09:57:29.256 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.io.tmpdir=E:\JAVA_USE\tomcat_8_5\temp
19-Aug-2017 09:57:29.257 信息 [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent Loaded APR based Apache Tomcat Native library [1.2.12] using APR version [1.5.2].
19-Aug-2017 09:57:29.258 信息 [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true].
19-Aug-2017 09:57:29.259 信息 [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent APR/OpenSSL configuration: useAprConnector [false], useOpenSSL [true]
19-Aug-2017 09:57:29.793 信息 [main] org.apache.catalina.core.AprLifecycleListener.initializeSSL OpenSSL successfully initialized [OpenSSL 1.0.2k  26 Jan 2017]
19-Aug-2017 09:57:29.883 信息 [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-8080"]
19-Aug-2017 09:57:29.978 信息 [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read
19-Aug-2017 09:57:29.980 信息 [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["ajp-nio-8009"]
19-Aug-2017 09:57:29.982 信息 [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read
19-Aug-2017 09:57:29.983 信息 [main] org.apache.catalina.startup.Catalina.load Initialization processed in 989 ms
19-Aug-2017 09:57:30.001 信息 [main] org.apache.catalina.core.StandardService.startInternal Starting service [Catalina]
19-Aug-2017 09:57:30.002 信息 [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet Engine: Apache Tomcat/8.5.15
19-Aug-2017 09:57:30.020 信息 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployWAR Deploying web application archive [E:\JAVA_USE\tomcat_8_5\webapps\nutzwk.war]
19-Aug-2017 09:57:31.021 严重 [localhost-startStop-1] org.apache.catalina.core.ContainerBase.addChildInternal ContainerBase.addChild: start:
 org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/nutzwk]]
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:167)
        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.deployWAR(HostConfig.java:952)
        at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1823)
        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:1142)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:745)
Caused by: org.apache.catalina.LifecycleException: Failed to start component [org.apache.catalina.webresources.StandardRoot@5027a37a]
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:167)
        at org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java:4860)
        at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:4992)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
        ... 10 more
Caused by: org.apache.catalina.LifecycleException: Failed to initialize component [org.apache.catalina.webresources.JarResourceSet@13df96ac]
        at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:112)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:140)
        at org.apache.catalina.webresources.StandardRoot.startInternal(StandardRoot.java:709)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
        ... 13 more
Caused by: java.lang.IllegalArgumentException: java.util.zip.ZipException: error in opening zip file
        at org.apache.catalina.webresources.AbstractSingleArchiveResourceSet.initInternal(AbstractSingleArchiveResourceSet.java:113)
        at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:107)
        ... 16 more
Caused by: java.util.zip.ZipException: error in opening zip file
        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:103)
        at org.apache.catalina.webresources.AbstractSingleArchiveResourceSet.initInternal(AbstractSingleArchiveResourceSet.java:110)
        ... 17 more

19-Aug-2017 09:57:31.022 严重 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployWAR Error deploying web application archive [E:\JAVA_USE\tomcat_8_5\webapps\nutzwk.war]
 java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/nutzwk]]
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:756)
        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.deployWAR(HostConfig.java:952)
        at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1823)
        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:1142)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:745)

19-Aug-2017 09:57:31.024 信息 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployWAR Deployment of web application archive [E:\JAVA_USE\tomcat_8_5\webapps\nutzwk.war] has finished in [1,003] ms
19-Aug-2017 09:57:31.025 信息 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [E:\JAVA_USE\tomcat_8_5\webapps\docs]
19-Aug-2017 09:57:31.199 信息 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [E:\JAVA_USE\tomcat_8_5\webapps\docs] has finished in [174] ms
19-Aug-2017 09:57:31.199 信息 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [E:\JAVA_USE\tomcat_8_5\webapps\examples]
19-Aug-2017 09:57:31.376 信息 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [E:\JAVA_USE\tomcat_8_5\webapps\examples] has finished in [177] ms
19-Aug-2017 09:57:31.377 信息 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [E:\JAVA_USE\tomcat_8_5\webapps\host-manager]
19-Aug-2017 09:57:31.395 信息 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [E:\JAVA_USE\tomcat_8_5\webapps\host-manager] has finished in [19] ms
19-Aug-2017 09:57:31.395 信息 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [E:\JAVA_USE\tomcat_8_5\webapps\manager]
19-Aug-2017 09:57:31.412 信息 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [E:\JAVA_USE\tomcat_8_5\webapps\manager] has finished in [17] ms
19-Aug-2017 09:57:31.414 信息 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [E:\JAVA_USE\tomcat_8_5\webapps\ROOT]
19-Aug-2017 09:57:31.426 信息 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [E:\JAVA_USE\tomcat_8_5\webapps\ROOT] has finished in [13] ms
19-Aug-2017 09:57:31.428 信息 [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-8080"]
19-Aug-2017 09:57:31.434 信息 [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["ajp-nio-8009"]
19-Aug-2017 09:57:31.436 信息 [main] org.apache.catalina.startup.Catalina.start Server startup in 1452 ms

以上代码中提到的这个

org.apache.catalina.core.ContainerBase.addChildInternal ContainerBase.addChild: start:
 org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/nutzwk]]

解压war文件,进入WEB-INF/lib目录,逐个文件解压测试一下,看看到底是哪个文件有问题

多谢相助,问题已经解决。

是【jtds-1.3.1.jar】这个有问题,删除后重新刷新maven下载,编译运行通过

添加回复
请先登陆
回到顶部