Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jetty version out of date #55

Closed
colindean opened this issue Mar 7, 2018 · 0 comments · Fixed by #56
Closed

Jetty version out of date #55

colindean opened this issue Mar 7, 2018 · 0 comments · Fixed by #56

Comments

@colindean
Copy link
Contributor

I got bit by this today. #27 indicates that such has happened before.

When adding awscala to a brand-new project based on the scalatra/scalatra.g8 template as of scalatra/scalatra.g8@1319e37 , I get this error:

2018-03-06 19:40:55.296:INFO:oejs.Server:main: jetty-9.4.6.v20170531
2018-03-06 19:40:56.657:INFO:oeja.AnnotationConfiguration:main: Scanning elapsed time=1080ms
2018-03-06 19:40:56.658:WARN:oejw.WebAppContext:main: Failed startup of context o.e.j.w.WebAppContext@763d9750{/,file:///Users/colin/Source/Arcadia/MACK/submission-api/target/webapp/,UNAVAILABLE}{file:///Users/colin/Source/Arcadia/MACK/submission-api/target/webapp/}
java.lang.RuntimeException: Error scanning entry module-info.class from jar file:///Users/colin/Source/Arcadia/MACK/submission-api/target/webapp/WEB-INF/lib/joda-convert-2.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.lang.Thread.run(Thread.java:748)
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.lang.Thread.run(Thread.java:748)

This was a problem in Jetty that was fixed in 9.4.8 via jetty/jetty.project#1692.

I noticed that the template uses the latest sbt-scalatra.

Dropping this snippet into build.sbt fixed the problem.

containerLibs in Jetty := Seq(
  "org.eclipse.jetty" % "jetty-runner" % "9.4.8.v20171121" intransitive()
)

I've filed earldouglas/sbt-war#361 for an update there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant