java.lang.NoClassDefFoundError: javax/ws/rs/core/FeatureContext

2,830 views
Skip to first unread message

Thierry Mouamadje (TchadMusic)

unread,
May 19, 2023, 7:01:09 AM5/19/23
to WildFly
Hello everyone; I'm in a mess one I will need your help please: I'm migrating from spring 3 to spring 6 and jboss 7 to wildfly. after starting the application I have the following error:
12:28:01,136 INFO [jakarta.enterprise.resource.webcontainer.faces.config] (ServerService Thread Pool -- 88) Initializing Mojarra 4.0.0.SP01 for context “/pcs”
12:28:02,010 ERROR [org.jboss.msc.service.fail] (ServerService Thread Pool -- 88) MSC000001: Failed to start service jboss.deployment.unit."pcs.war".undertow-deployment: org.jboss .msc.service.StartException in service jboss.deployment.unit."pcs.war".undertow-deployment: A MultiException has 1 exceptions. They are:
1. java.lang.RuntimeException: java.util.concurrent.ExecutionException: java.lang.NoClassDefFoundError: javax/ws/rs/core/FeatureContext

at org.wildfly.ext...@28.0.0.Final//org.wildfly.extension.undertow.deployment.UndertowDeploymentService$1.run(UndertowDeploymentService.java:90)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at org.jbos...@2.4.0.Final//org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
at org.jbos...@2.4.0.Final//org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1990)
at org.jbos...@2.4.0.Final//org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1486)
at org.jbos...@2.4.0.Final//org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1377)
at java.base/java.lang.Thread.run(Thread.java:833)
at org.jbos...@2.4.0.Final//org.jboss.threads.JBossThread.run(JBossThread.java:513)
Caused by: A MultiException has 1 exceptions. They are:
1. java.lang.RuntimeException: java.util.concurrent.ExecutionException: java.lang.NoClassDefFoundError: javax/ws/rs/core/FeatureContext

Wolfgang

unread,
May 19, 2023, 5:13:46 PM5/19/23
to WildFly
"javax/ws/rs/core/FeatureContext" sounds like a JavaEE8 library, the package should be like "jakarta.ws.rs.core.FeatureContext". As Spring 6 seems to be compatible to JakartaEE10, is there any other part in your application that links to old JavaEE libraries?
Reply all
Reply to author
Forward
0 new messages