问答详情
源自:3-3 Maven的配置

关于使用mvn jetty:run命令时,出现的异常

[WARNING] Failed startup of context o.e.j.m.p.JettyWebAppContext@3a91d146{/,file

:///D:/nwdi/mars/eclipse/workspace/mavenproject/spring-mvc-study/src/main/webapp

/,UNAVAILABLE}{file:///D:/nwdi/mars/eclipse/workspace/mavenproject/spring-mvc-st

udy/src/main/webapp/}

org.eclipse.jetty.util.MultiException: Multiple exceptions

    at org.eclipse.jetty.annotations.AnnotationConfiguration.scanForAnnotations

(AnnotationConfiguration.java:534)

    at org.eclipse.jetty.annotations.AnnotationConfiguration.configure (Annotati

onConfiguration.java:447)

    at org.eclipse.jetty.webapp.WebAppContext.configure (WebAppContext.java:494)


    at org.eclipse.jetty.webapp.WebAppContext.startContext (WebAppContext.java:1

361)

    at org.eclipse.jetty.server.handler.ContextHandler.doStart (ContextHandler.j

ava:772)

    at org.eclipse.jetty.servlet.ServletContextHandler.doStart (ServletContextHa

ndler.java:262)

    at org.eclipse.jetty.webapp.WebAppContext.doStart (WebAppContext.java:520)

    at org.eclipse.jetty.maven.plugin.JettyWebAppContext.doStart (JettyWebAppCon

text.java:398)

    at org.eclipse.jetty.util.component.AbstractLifeCycle.start (AbstractLifeCyc

le.java:68)

    at org.eclipse.jetty.util.component.ContainerLifeCycle.start (ContainerLifeC

ycle.java:132)

    at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart (ContainerLif

eCycle.java:114)

    at org.eclipse.jetty.server.handler.AbstractHandler.doStart (AbstractHandler

.java:61)

    at org.eclipse.jetty.server.handler.ContextHandlerCollection.doStart (Contex

tHandlerCollection.java:161)

    at org.eclipse.jetty.util.component.AbstractLifeCycle.start (AbstractLifeCyc

le.java:68)

    at org.eclipse.jetty.util.component.ContainerLifeCycle.start (ContainerLifeC

ycle.java:132)

    at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart (ContainerLif

eCycle.java:114)

    at org.eclipse.jetty.server.handler.AbstractHandler.doStart (AbstractHandler

.java:61)

    at org.eclipse.jetty.util.component.AbstractLifeCycle.start (AbstractLifeCyc

le.java:68)

    at org.eclipse.jetty.util.component.ContainerLifeCycle.start (ContainerLifeC

ycle.java:132)

    at org.eclipse.jetty.server.Server.start (Server.java:411)

    at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart (ContainerLif

eCycle.java:106)

    at org.eclipse.jetty.server.handler.AbstractHandler.doStart (AbstractHandler

.java:61)

    at org.eclipse.jetty.server.Server.doStart (Server.java:378)

    at org.eclipse.jetty.util.component.AbstractLifeCycle.start (AbstractLifeCyc

le.java:68)

    at org.eclipse.jetty.maven.plugin.AbstractJettyMojo.startJetty (AbstractJett

yMojo.java:460)

    at org.eclipse.jetty.maven.plugin.AbstractJettyMojo.execute (AbstractJettyMo

jo.java:328)

    at org.eclipse.jetty.maven.plugin.JettyRunMojo.execute (JettyRunMojo.java:17

0)

    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBui

ldPluginManager.java:137)

    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.ja

va:208)

    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.ja

va:154)

    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.ja

va:146)

    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (

LifecycleModuleBuilder.java:117)

    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (

LifecycleModuleBuilder.java:81)

    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreaded

Builder.build (SingleThreadedBuilder.java:56)

    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleSt

arter.java:128)

    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)

    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)

    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)

    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:956)

    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:290)

    at org.apache.maven.cli.MavenCli.main (MavenCli.java:194)

    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)

    at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.jav

a:62)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessor

Impl.java:43)

    at java.lang.reflect.Method.invoke (Method.java:498)

    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launche

r.java:289)

    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:2

29)

    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launc

her.java:415)

    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:356

)

Caused by: org.eclipse.jetty.util.MultiException: Multiple exceptions

    at org.eclipse.jetty.annotations.AnnotationParser.parseJar (AnnotationParser

.java:923)

    at org.eclipse.jetty.annotations.AnnotationParser.parse (AnnotationParser.ja

va:851)

    at org.eclipse.jetty.annotations.AnnotationConfiguration$ParserTask.call (An

notationConfiguration.java:163)

    at org.eclipse.jetty.annotations.AnnotationConfiguration$1.run (AnnotationCo

nfiguration.java:546)

    at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob (QueuedThreadPool.j

ava:671)

    at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run (QueuedThreadPool.ja

va:589)

    at java.lang.Thread.run (Thread.java:745)

Caused by: java.lang.RuntimeException: Error scanning entry org/apache/commons/l

ang/ArrayUtils.class from jar file:///C:/Users/Felix/.m2/repository/commons-lang

/commons-lang/2.6/commons-lang-2.6.jar

    at org.eclipse.jetty.annotations.AnnotationParser.parseJar (AnnotationParser

.java:937)

    at org.eclipse.jetty.annotations.AnnotationParser.parse (AnnotationParser.ja

va:851)

    at org.eclipse.jetty.annotations.AnnotationConfiguration$ParserTask.call (An

notationConfiguration.java:163)

    at org.eclipse.jetty.annotations.AnnotationConfiguration$1.run (AnnotationCo

nfiguration.java:546)

    at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob (QueuedThreadPool.j

ava:671)

    at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run (QueuedThreadPool.ja

va:589)

    at java.lang.Thread.run (Thread.java:745)

Caused by: java.util.zip.ZipException: invalid LOC header (bad signature)

    at java.util.zip.ZipFile.read (Native Method)

    at java.util.zip.ZipFile.access$1400 (ZipFile.java:60)

    at java.util.zip.ZipFile$ZipFileInputStream.read (ZipFile.java:717)

    at java.util.zip.ZipFile$ZipFileInflaterInputStream.fill (ZipFile.java:419)

    at java.util.zip.InflaterInputStream.read (InflaterInputStream.java:158)

    at java.io.FilterInputStream.read (FilterInputStream.java:133)

    at java.io.FilterInputStream.read (FilterInputStream.java:133)

    at org.objectweb.asm.ClassReader.a (Unknown Source)

    at org.objectweb.asm.ClassReader.<init> (Unknown Source)

    at org.eclipse.jetty.annotations.AnnotationParser.scanClass (AnnotationParse

r.java:1003)

    at org.eclipse.jetty.annotations.AnnotationParser.parseJarEntry (AnnotationP

arser.java:984)

    at org.eclipse.jetty.annotations.AnnotationParser.parseJar (AnnotationParser

.java:933)

    at org.eclipse.jetty.annotations.AnnotationParser.parse (AnnotationParser.ja

va:851)

    at org.eclipse.jetty.annotations.AnnotationConfiguration$ParserTask.call (An

notationConfiguration.java:163)

    at org.eclipse.jetty.annotations.AnnotationConfiguration$1.run (AnnotationCo

nfiguration.java:546)

    at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob (QueuedThreadPool.j

ava:671)

    at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run (QueuedThreadPool.ja

va:589)

    at java.lang.Thread.run (Thread.java:745)


提问者:世俗紅塵 2018-05-03 15:10

个回答

  • imooc_zhc
    2018-05-06 23:59:02

    C:/Users/Felix/.m2/repository/commons-lang/commons-lang/2.6/commons-lang-2.6.jar
    这个jar包是不是有问题啊,删掉,重新弄一个新的包试试。