Jetty startup failure

Issue #1005 resolved
chrs wk created an issue

Hi

I tried to setup a new SCM-Manager instance today using a recent Jetty version, Java 10 and the 1.60 WAR of SCM-Manager. I get the following error during startup:

2019-01-09 13:01:39.171:WARN:oejw.WebAppContext:main: Failed startup of context o.e.j.w.WebAppContext@15bb5034{/scm,file:///C:/Windows/Temp/jetty-0.0.0.0-8082-scm.war-_scm-any-17107810089904083215.dir/webapp/,UNAVAILABLE}{C:\tool\jetty\webapps\scm.war}
MultiException[java.lang.RuntimeException: Error scanning entry META-INF/versions/9/javax/xml/bind/ModuleUtil.class from jar file:///C:/Windows/Temp/jetty-0.0.0.0-8082-scm.war-_scm-any-17107810089904083215.dir/webapp/WEB-INF/lib/jaxb-api-2.3.0.jar, java.lang.RuntimeException: Error scanning entry module-info.class from jar file:///C:/Windows/Temp/jetty-0.0.0.0-8082-scm.war-_scm-any-17107810089904083215.dir/webapp/WEB-INF/lib/jaxb-api-2.3.0.jar]
    at org.eclipse.jetty.annotations.AnnotationConfiguration.scanForAnnotations(AnnotationConfiguration.java:450)
    at org.eclipse.jetty.annotations.AnnotationConfiguration.configure(AnnotationConfiguration.java:363)
    at org.eclipse.jetty.webapp.WebAppContext.configure(WebAppContext.java:517)
    at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1458)
    at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:785)
    at org.eclipse.jetty.servlet.ServletContextHandler.doStart(ServletContextHandler.java:261)
    at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:545)
    at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
    at org.eclipse.jetty.deploy.bindings.StandardStarter.processBinding(StandardStarter.java:41)
    at org.eclipse.jetty.deploy.AppLifeCycle.runBindings(AppLifeCycle.java:188)
    at org.eclipse.jetty.deploy.DeploymentManager.requestAppGoal(DeploymentManager.java:502)
    at org.eclipse.jetty.deploy.DeploymentManager.addApp(DeploymentManager.java:150)
    at org.eclipse.jetty.deploy.providers.ScanningAppProvider.fileAdded(ScanningAppProvider.java:180)
    at org.eclipse.jetty.deploy.providers.WebAppProvider.fileAdded(WebAppProvider.java:447)
    at org.eclipse.jetty.deploy.providers.ScanningAppProvider$1.fileAdded(ScanningAppProvider.java:64)
    at org.eclipse.jetty.util.Scanner.reportAddition(Scanner.java:610)
    at org.eclipse.jetty.util.Scanner.reportDifferences(Scanner.java:529)
    at org.eclipse.jetty.util.Scanner.scan(Scanner.java:392)
    at org.eclipse.jetty.util.Scanner.doStart(Scanner.java:313)
    at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
    at org.eclipse.jetty.deploy.providers.ScanningAppProvider.doStart(ScanningAppProvider.java:150)
    at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
    at org.eclipse.jetty.deploy.DeploymentManager.startAppProvider(DeploymentManager.java:564)
    at org.eclipse.jetty.deploy.DeploymentManager.doStart(DeploymentManager.java:239)
    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:113)
    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.xml.XmlConfiguration$1.run(XmlConfiguration.java:1515)
    at org.eclipse.jetty.xml.XmlConfiguration$1.run(XmlConfiguration.java:1439)
    at java.base/java.security.AccessController.doPrivileged(Native Method)
    at org.eclipse.jetty.xml.XmlConfiguration.main(XmlConfiguration.java:1438)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.base/java.lang.reflect.Method.invoke(Method.java:564)
    at org.eclipse.jetty.start.Main.invokeMain(Main.java:221)
    at org.eclipse.jetty.start.Main.start(Main.java:506)
    at org.eclipse.jetty.start.Main.main(Main.java:78)
Caused by: 
MultiException[java.lang.RuntimeException: Error scanning entry META-INF/versions/9/javax/xml/bind/ModuleUtil.class from jar file:///C:/Windows/Temp/jetty-0.0.0.0-8082-scm.war-_scm-any-17107810089904083215.dir/webapp/WEB-INF/lib/jaxb-api-2.3.0.jar, java.lang.RuntimeException: Error scanning entry module-info.class from jar file:///C:/Windows/Temp/jetty-0.0.0.0-8082-scm.war-_scm-any-17107810089904083215.dir/webapp/WEB-INF/lib/jaxb-api-2.3.0.jar]
    at org.eclipse.jetty.annotations.AnnotationParser.parseJar(AnnotationParser.java:878)
    at org.eclipse.jetty.annotations.AnnotationParser.parse(AnnotationParser.java:837)
    at org.eclipse.jetty.annotations.AnnotationConfiguration$ParserTask.call(AnnotationConfiguration.java:159)
    at org.eclipse.jetty.annotations.AnnotationConfiguration$1.run(AnnotationConfiguration.java:462)
    at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:673)
    at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:591)
    at java.base/java.lang.Thread.run(Thread.java:844)
Suppressed: 
    |java.lang.RuntimeException: Error scanning entry module-info.class from jar file:///C:/Windows/Temp/jetty-0.0.0.0-8082-scm.war-_scm-any-17107810089904083215.dir/webapp/WEB-INF/lib/jaxb-api-2.3.0.jar
    |   at org.eclipse.jetty.annotations.AnnotationParser.parseJar(AnnotationParser.java:891)
    |   at org.eclipse.jetty.annotations.AnnotationParser.parse(AnnotationParser.java:837)
    |   at org.eclipse.jetty.annotations.AnnotationConfiguration$ParserTask.call(AnnotationConfiguration.java:159)
    |   at org.eclipse.jetty.annotations.AnnotationConfiguration$1.run(AnnotationConfiguration.java:462)
    |   at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:673)
    |   at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:591)
    |   at java.base/java.lang.Thread.run(Thread.java:844)
    |Caused by: 
    |java.lang.IllegalArgumentException
    |   at org.objectweb.asm.ClassReader.<init>(Unknown Source)
    |   at org.objectweb.asm.ClassReader.<init>(Unknown Source)
    |   at org.objectweb.asm.ClassReader.<init>(Unknown Source)
    |   at org.eclipse.jetty.annotations.AnnotationParser.scanClass(AnnotationParser.java:959)
    |   at org.eclipse.jetty.annotations.AnnotationParser.parseJarEntry(AnnotationParser.java:940)
    |   at org.eclipse.jetty.annotations.AnnotationParser.parseJar(AnnotationParser.java:887)
    |   at org.eclipse.jetty.annotations.AnnotationParser.parse(AnnotationParser.java:837)
    |   at org.eclipse.jetty.annotations.AnnotationConfiguration$ParserTask.call(AnnotationConfiguration.java:159)
    |   at org.eclipse.jetty.annotations.AnnotationConfiguration$1.run(AnnotationConfiguration.java:462)
    |   at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:673)
    |   at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:591)
    |   at java.base/java.lang.Thread.run(Thread.java:844)
Caused by: 
java.lang.RuntimeException: Error scanning entry META-INF/versions/9/javax/xml/bind/ModuleUtil.class from jar file:///C:/Windows/Temp/jetty-0.0.0.0-8082-scm.war-_scm-any-17107810089904083215.dir/webapp/WEB-INF/lib/jaxb-api-2.3.0.jar
    at org.eclipse.jetty.annotations.AnnotationParser.parseJar(AnnotationParser.java:891)
    at org.eclipse.jetty.annotations.AnnotationParser.parse(AnnotationParser.java:837)
    at org.eclipse.jetty.annotations.AnnotationConfiguration$ParserTask.call(AnnotationConfiguration.java:159)
    at org.eclipse.jetty.annotations.AnnotationConfiguration$1.run(AnnotationConfiguration.java:462)
    at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:673)
    at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:591)
    at java.base/java.lang.Thread.run(Thread.java:844)
Caused by: 
java.lang.IllegalArgumentException
    at org.objectweb.asm.ClassReader.<init>(Unknown Source)
    at org.objectweb.asm.ClassReader.<init>(Unknown Source)
    at org.objectweb.asm.ClassReader.<init>(Unknown Source)
    at org.eclipse.jetty.annotations.AnnotationParser.scanClass(AnnotationParser.java:959)
    at org.eclipse.jetty.annotations.AnnotationParser.parseJarEntry(AnnotationParser.java:940)
    at org.eclipse.jetty.annotations.AnnotationParser.parseJar(AnnotationParser.java:887)
    at org.eclipse.jetty.annotations.AnnotationParser.parse(AnnotationParser.java:837)
    at org.eclipse.jetty.annotations.AnnotationConfiguration$ParserTask.call(AnnotationConfiguration.java:159)
    at org.eclipse.jetty.annotations.AnnotationConfiguration$1.run(AnnotationConfiguration.java:462)
    at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:673)
    at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:591)
    at java.base/java.lang.Thread.run(Thread.java:844)

I tried to run it with Java 8 as well, but got the same error (slightly different stack trace).

Version 1.59 works fine with the same Jetty instance and Java 8. Not sure if Jetty is officially supported, but we've been running Jetty and the WAR without any problems for years now.

Thanks in advance.

-Chris

Comments (1)

  1. Log in to comment