Quantcast
Channel: Active questions tagged servlets - Stack Overflow
Viewing all articles
Browse latest Browse all 675

org.restlet.jee:org.restlet.ext.servlet Lib does not support jakarta package and class with java 21 [duplicate]

$
0
0

I am working with org.restlet.ext.servlet-2.4.0.jar lib and upgrading my code Java 8 to Java 21 version. but when execute the code at time following error occur. and it is not support jakarta class for the same.

17:52:20,500 INFO  [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-3) WFLYJCA0018: Started Driver service with driver-name = awom-web.war_com.mysql.jdbc.Driver_5_117:52:21,112 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-7) MSC000001: Failed to start service jboss.deployment.subunit."awom-ear.ear"."awom-web.war".undertow-deployment.UndertowDeploymentInfoService: org.jboss.msc.service.StartException in service jboss.deployment.subunit."awom-ear.ear"."awom-web.war".undertow-deployment.UndertowDeploymentInfoService: Failed to start service        at org.jboss.msc@1.5.4.Final//org.jboss.msc.service.ServiceControllerImpl$StartTask.execute(ServiceControllerImpl.java:1609)        at org.jboss.msc@1.5.4.Final//org.jboss.msc.service.ServiceControllerImpl$ControllerTask.run(ServiceControllerImpl.java:1438)        at org.jboss.threads@2.4.0.Final//org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)        at org.jboss.threads@2.4.0.Final//org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1990)        at org.jboss.threads@2.4.0.Final//org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1486)        at org.jboss.threads@2.4.0.Final//org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1363)        at java.base/java.lang.Thread.run(Thread.java:1583)Caused by: java.lang.IllegalArgumentException: UT010009: Servlet RestletServlet of type class org.restlet.ext.servlet.ServerServlet does not implement jakarta.servlet.Servlet        at io.undertow.servlet@2.3.13.Final//io.undertow.servlet.api.ServletInfo.<init>(ServletInfo.java:98)        at org.wildfly.extension.undertow@32.0.0.Final//org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService.createServletConfig(UndertowDeploymentInfoService.java:638)        at org.wildfly.extension.undertow@32.0.0.Final//org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService.start(UndertowDeploymentInfoService.java:270)        at org.jboss.msc@1.5.4.Final//org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1617)        at org.jboss.msc@1.5.4.Final//org.jboss.msc.service.ServiceControllerImpl$StartTask.execute(ServiceControllerImpl.java:1580)        ... 6 more

Also, I have added the following dependency in my project's web.xml it throws an error at the server start time.

<servlet><servlet-name>RestletServlet</servlet-name><servlet-class>org.restlet.ext.servlet.ServerServlet</servlet-class><init-param><param-name>org.restlet.application</param-name><param-value>com.asite.wom.rest.ABC</param-value></init-param></servlet>    <servlet-mapping><servlet-name>RestletServlet</servlet-name><url-pattern>/service/*</url-pattern></servlet-mapping>

It does not support Javax class to Jakarta class in Java 21. Any luck how can we achieve this??


Viewing all articles
Browse latest Browse all 675

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>