You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In https://github.com/ory/sdk/blob/master/contrib/poms/client/pom.xml two dependencies are defined, javax.ws.rs:javax.ws.rs:2.1.1 and javax.ws.rs:jsr311-api:111. Those are basically different versions of the same library and contain overlapping classes. So to me it happened in our Docker deployment everything is fine but if I run our web application (using Jersey 2.29) in a stand-alone Tomcat the latter library is given preference and then I get the following error:
jersey java.lang.NoSuchMethodError: 'java.util.Map [[javax.ws.rs](http://javax.ws.rs/)](http://javax.ws.rs/).core.Application.getProperties()'
Excluding the JAX RS 1.0 library in our POM solved the issue for me:
Preflight checklist
Ory Network Project
No response
Describe the bug
In https://github.com/ory/sdk/blob/master/contrib/poms/client/pom.xml two dependencies are defined,
javax.ws.rs:javax.ws.rs:2.1.1
andjavax.ws.rs:jsr311-api:111
. Those are basically different versions of the same library and contain overlapping classes. So to me it happened in our Docker deployment everything is fine but if I run our web application (using Jersey 2.29) in a stand-alone Tomcat the latter library is given preference and then I get the following error:Excluding the JAX RS 1.0 library in our POM solved the issue for me:
Reproducing the bug
I use the Maven Cargo plugin 1.10.9 to run Tomcat 9.0.80, but I'm not sure what influences the library loading order.
Relevant log output
No response
Relevant configuration
No response
Version
1.6.2
On which operating system are you observing this issue?
Linux
In which environment are you deploying?
Other
Additional Context
No response
The text was updated successfully, but these errors were encountered: