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 dependency: upgrade to major version 10 or 11? #32

Open
ztai-add opened this issue Mar 25, 2022 · 1 comment
Open

Jetty dependency: upgrade to major version 10 or 11? #32

ztai-add opened this issue Mar 25, 2022 · 1 comment

Comments

@ztai-add
Copy link

Hi,

I wonder if there's plan to upgrade the jetty dependency to version 10 or 11? The latest guice-jersey 1.0.16 depends on jetty version 9.4.28.v20200408 which has some vulnerability issues https://mvnrepository.com/artifact/io.logz/guice-jersey/1.0.16.

Thanks,
Zhenfei

@kdombeck
Copy link
Contributor

One problem that I have is that if I try to upgrade to Jersey 10.x in my project I get the following issue when I try to start Jetty.

Exception in thread "main" java.lang.NoSuchMethodError: 'void org.eclipse.jetty.webapp.WebAppContext.addEventListener(java.util.EventListener)'
	at io.logz.guice.jersey.JerseyServer.configureServer(JerseyServer.java:83)
	at io.logz.guice.jersey.JerseyServer.<init>(JerseyServer.java:46)
	at io.logz.guice.jersey.JerseyModule.configure(JerseyModule.java:37)
	at com.google.inject.AbstractModule.configure(AbstractModule.java:66)
	at com.google.inject.spi.Elements$RecordingBinder.install(Elements.java:409)
	at com.google.inject.spi.Elements.getElements(Elements.java:108)
	at com.google.inject.internal.InjectorShell$Builder.build(InjectorShell.java:160)
	at com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:107)
	at com.google.inject.Guice.createInjector(Guice.java:87)
	at com.google.inject.Guice.createInjector(Guice.java:69)
...

Seems like the method signature in ServletContextHandler has changed to return a boolean rather than be void causing this issue.

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

No branches or pull requests

2 participants