开发环境如下
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]