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

java.lang.ClassNotFoundException: jakarta.ws.rs.core.UriBuilder after migration to 3.0 #353

Open
sergey-morenets opened this issue Mar 27, 2023 · 0 comments

Comments

@sergey-morenets
Copy link

Hi

We tried to migrate from Soteria 2.0 to 3.0 and got an exception at runtime:

germes-admin-1  | 		Suppressed: org.jboss.weld.resources.spi.ResourceLoadingException: Error while loading class org.glassfish.soteria.mechanisms.openid.controller.AuthenticationController
germes-admin-1  | 			at org.jboss.weld.resources.ClassTransformer.getBackedAnnotatedType(ClassTransformer.java:186)
germes-admin-1  | 			at org.jboss.weld.resources.ClassTransformer.getBackedAnnotatedType(ClassTransformer.java:194)
germes-admin-1  | 		Caused by: java.lang.ClassNotFoundException: jakar-ta.ws.rs.core.UriBuilder
germes-admin-1  | 			at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1449)
germes-admin-1  | 			at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1257)

So we had to add new dependency to fix that issue:

implementation("jakarta.ws.rs:jakarta.ws.rs-api:3.1.0")

Since this is breaking change it would be nice to specify this use case in the documentation (migration guide)

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

1 participant