0

我正在尝试在 Wildfly 24.0.1 上部署 .ear 文件。在部署过程中,我遇到了这个异常

01 Mar 2022 GMT 08:06:04 ERROR [ServiceControllerImpl] MSC000001: Failed to start service jboss.deployment.subunit."mailgate.ear"."rest.war".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.subunit."mailgate.ear"."rest.war".POST_MODULE: WFLYSRV0153: Failed to process phase POST_MODULE of subdeployment "rest.war" of deployment "mailgate.ear"
at org.jboss.as.server@16.0.1.Final//org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:189)
at org.jboss.msc@1.4.12.Final//org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1739)
at org.jboss.msc@1.4.12.Final//org.jboss.msc.service.ServiceControllerImpl$StartTask.execute(ServiceControllerImpl.java:1701)
at org.jboss.msc@1.4.12.Final//org.jboss.msc.service.ServiceControllerImpl$ControllerTask.run(ServiceControllerImpl.java:1559)
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:829)
Caused by: java.lang.NoClassDefFoundError: java/rmi/RemoteException
at java.base/java.lang.Class.getDeclaredMethods0(Native Method)
at java.base/java.lang.Class.privateGetDeclaredMethods(Class.java:3166)
at java.base/java.lang.Class.privateGetPublicMethods(Class.java:3191)
at java.base/java.lang.Class.getMethods(Class.java:1904)
at org.jboss.as.jaxrs@24.0.1.Final//org.jboss.as.jaxrs.deployment.JaxrsMethodParameterProcessor.getResouceClasses(JaxrsMethodParameterProcessor.java:394)
at org.jboss.as.jaxrs@24.0.1.Final//org.jboss.as.jaxrs.deployment.JaxrsMethodParameterProcessor.processData(JaxrsMethodParameterProcessor.java:91)
at org.jboss.as.jaxrs@24.0.1.Final//org.jboss.as.jaxrs.deployment.JaxrsMethodParameterProcessor.deploy(JaxrsMethodParameterProcessor.java:76)
        
          

除了上述错误:还有很多警告,如

 Class Path entry xml-apis.jar in /content/mailgate.ear/lib/serializer.jar  does not point to a valid jar for a Class-Path reference.
    01 Mar 2022 GMT 07:40:13 WARN  [ManifestClassPathProcessor] WFLYSRV0059: Class Path entry ./mail-1.4.4.jar in /content/mailgate.ear/lib/tumbleweedMail.jar  does not point to a valid jar for a Class-Path reference.
    01 Mar 2022 GMT 07:40:13 WARN  [ManifestClassPathProcessor] WFLYSRV0059: Class Path entry ./tumbleweedCore-17.0.1-SNAPSHOT.jar in /content/mailgate.ear/lib/tumbleweedMail.jar  does not point to a valid jar for a Class-Path reference.

代码使用jdk11(Zulu)编译成功,也生成了ear文件,但是在部署ear文件的过程中,我遇到了这些错误。我找不到远程异常的 jar 文件,我想在 JBOSS 类路径上提供 jar。

4

0 回答 0