eclipse-ee4j / eclipse-ee4j/soteria

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

Open
#353 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
72
Forks
34
PR merge metrics
No merged PRs in 30d

Description

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)

Contributor guide

Open the contributing guide

Research direction

The issue names no documentation file, test, or entry point. Start by locating the Soteria 2.0-to-3.0 migration guide, then document that applications may need the Jakarta REST API dependency after migration. Done means the migration guidance covers the reported ClassNotFoundException and dependency requirement.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
documentation
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.