TomEE 9.1.3 to 10.0.1 issue
COURTAULT Francois <[email protected]> Mon, 2 Jun 2025 17:08:03 +0000
| Newsgroups | gmane.comp.java.openejb.user |
|---|---|
| Message-ID | <MRYP264MB6335D155EA55ED474D6B84749D62A@MRYP264MB6335.FRAP264.PROD.OUTLOOK.COM> |
--_000_MRYP264MB6335D155EA55ED474D6B84749D62AMRYP264MB6335FRAP_
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
THALES GROUP LIMITED DISTRIBUTION to email recipients
Hello everyone,
I want to run one sample app in TomEE Plus 10.0.1.
This app is running fine when using TomEE 9.1.3.
First question is about the pom.xml
When on TomEE 9.1.3, I have in my pom these dependencies:
<dependency>
<groupId>jakarta.platform</groupId>
<artifactId>jakarta.jakartaee-api</artifactId>
<version>9.1.0</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.eclipse.microprofile.jwt</groupId>
<artifactId>microprofile-jwt-auth-api</artifactId>
<version>2.0</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.tomee</groupId>
<artifactId>mp-jwt</artifactId>
<version>9.1.3</version>
<scope>provided</scope>
</dependency>
So when I switch to TomEE 10.0.1, so from Jakarta 9.1 to 10, do I have to u=
pdate all these versions ?
* from 9.1.0 to 10.0.0 for jakarta.jakartaee-api
* from 2.0 to 2.1 for jwt-auth-api
* from 9.1.3 to 10.0.1 for mp-jwt
Second question, why I got this kind of following errors ?
02-Jun-2025 18:54:05.535 SEVERE [main] org.apache.openejb.cdi.OpenEJBLifecy=
cle.startApplication CDI Beans module deployment failed
org.apache.webbeans.exception.WebBeansDeploymentException: jakarta.=
enterprise.inject.UnsatisfiedResolutionException: Api type [org.eclipse.mic=
roprofile.jwt.JsonWebToken] is not found with the qualifiers
In my source JAX-RS resource code I have:
import org.eclipse.microprofile.jwt.JsonWebToken;
import jakarta.annotation.security.RolesAllowed;
import jakarta.enterprise.context.RequestScoped;
import jakarta.inject.Inject;
import jakarta.ws.rs.GET;
import jakarta.ws.rs.Path;
import jakarta.ws.rs.core.Response;
@Path("resources")
@RequestScoped
public class MPJwtResource {
@Inject
private JsonWebToken callerPrincipal;
...
@GET
@RolesAllowed("myrole")
public Response test () {
System.out.println("JsonWebToken:" + callerPr=
incipal + ".");
return Response.ok().build();
}
}
Best Regards.
--_000_MRYP264MB6335D155EA55ED474D6B84749D62AMRYP264MB6335FRAP_--