-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Shading of jdbc #196
Comments
I guess shading |
So I was testing today and I got this too java.lang.NoSuchMethodError: org.glassfish.jersey.model.internal.RankedProvider.getContractTypes()Ljava/util/Set;
at org.glassfish.jersey.server.ApplicationHandler.filterNameBound(ApplicationHandler.java:837) ~[jersey-server-2.17.jar:na]
at org.glassfish.jersey.server.ApplicationHandler.getProcessingProviders(ApplicationHandler.java:726) ~[jersey-server-2.17.jar:na]
at org.glassfish.jersey.server.ApplicationHandler.initialize(ApplicationHandler.java:510) ~[jersey-server-2.17.jar:na]
at org.glassfish.jersey.server.ApplicationHandler.access$500(ApplicationHandler.java:166) ~[jersey-server-2.17.jar:na]
at org.glassfish.jersey.server.ApplicationHandler$3.run(ApplicationHandler.java:327) ~[jersey-server-2.17.jar:na]
at org.glassfish.jersey.internal.Errors$2.call(Errors.java:289) ~[jdbc-1.1.3.jar:na]
at org.glassfish.jersey.internal.Errors$2.call(Errors.java:286) ~[jdbc-1.1.3.jar:na]
at org.glassfish.jersey.internal.Errors.process(Errors.java:315) ~[jdbc-1.1.3.jar:na]
at org.glassfish.jersey.internal.Errors.process(Errors.java:297) ~[jdbc-1.1.3.jar:na]
at org.glassfish.jersey.internal.Errors.processWithException(Errors.java:286) ~[jdbc-1.1.3.jar:na]
at org.glassfish.jersey.server.ApplicationHandler.<init>(ApplicationHandler.java:324) ~[jersey-server-2.17.jar:na]
at org.glassfish.jersey.servlet.WebComponent.<init>(WebComponent.java:338) ~[jersey-container-servlet-core-2.17.jar:na]
at org.glassfish.jersey.servlet.ServletContainer.init(ServletContainer.java:171) ~[jersey-container-servlet-core-2.17.jar:na]
at org.glassfish.jersey.servlet.ServletContainer.init(ServletContainer.java:363) ~[jersey-container-servlet-core-2.17.jar:na]
at javax.servlet.GenericServlet.init(GenericServlet.java:244) ~[javax.servlet-api-3.1.0.jar:3.1.0]
at org.eclipse.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:612) ~[jetty-servlet-9.2.10.v20150310.jar:9.2.10.v20150310]
at org.eclipse.jetty.servlet.ServletHolder.initialize(ServletHolder.java:395) ~[jetty-servlet-9.2.10.v20150310.jar:9.2.10.v20150310]
at org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:871) ~[jetty-servlet-9.2.10.v20150310.jar:9.2.10.v20150310]
at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:298) ~[jetty-servlet-9.2.10.v20150310.jar:9.2.10.v20150310]
at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:741) ~[jetty-server-9.2.10.v20150310.jar:9.2.10.v20150310]
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68) [jetty-util-9.2.10.v20150310.jar:9.2.10.v20150310]
at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132) [jetty-util-9.2.10.v20150310.jar:9.2.10.v20150310]
at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:114) [jetty-util-9.2.10.v20150310.jar:9.2.10.v20150310]
at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61) [jetty-server-9.2.10.v20150310.jar:9.2.10.v20150310]
at org.eclipse.jetty.server.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:163) [jetty-server-9.2.10.v20150310.jar:9.2.10.v20150310] the jdbc library is always in the middle of everything |
It looks like the jdbc jar is including both shaded and non-shaded jersey classes. |
Is there a way to solve this?? On Aug 15, 2016 4:53 PM, "Adam Kunicki" [email protected] wrote:
|
I've got a small patch that resolved it for me... running the test suite and will open a pull request. |
Thanks Adam
|
@rnorth is there a way to get this merged and released with the next version :) |
Will try tonight ;)
|
Super thanks |
In my project am getting
and if we look closer it's a conflict of library's hence this
I think if we shade
jdbc
it will helpThe text was updated successfully, but these errors were encountered: