Я работаю с библиотекой org.restlet.ext.servlet-2.4.0.jar и обновляю свой код с Java 8 до версии Java 21. но при выполнении кода во время возникает следующая ошибка. и он не поддерживает класс Джакарты.
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_1
17: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.(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
Кроме того, я добавил следующую зависимость в файл web.xml моего проекта, она выдает ошибку во время запуска сервера.
Я работаю с библиотекой [b]org.restlet.ext.servlet-2.4.0.jar[/b] и обновляю свой код с Java 8 до версии Java 21. но при выполнении кода во время возникает следующая ошибка. и он не поддерживает класс Джакарты. [code]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_1 17: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.(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 [/code] Кроме того, я добавил следующую зависимость в файл web.xml моего проекта, она выдает ошибку во время запуска сервера. [code] RestletServlet org.restlet.ext.servlet.ServerServlet
org.restlet.application com.asite.wom.rest.ABC
RestletServlet /service/*
[/code] Он не поддерживает класс [b]Javax[/b] для класса [b]Jakarta[/b] в Java 21. Есть ли успехи, как мы можем этого добиться??