我有一个在Java 1.8上开发并部署在Wildfly 15上的spring boot rest api。当我尝试在wildfly 10上部署它时,会报告错误并且部署失败。
LastName FirstName Department Title Extension Email Key
Doe Jane HR Officer 0000 jdoe@email.com Jane Doe
以下是pom.xml的内容,所有内容均适用于春季启动版本2.1.3。 我试图降级为Byte Buddy(无依赖项)»1.5.13,将jaxb降为2.2.21,警告消失了,但错误仍然存在。
>2019-04-05 21:47:29,228 WARN [org.jboss.as.server.deployment] (MSC service thread 1-5) WFLYSRV0003: Could not index class META-INF/versions/9/module-info.class at /G:/job/web/wildfly-10.0.0.Final/bin/content/api.war/WEB-INF/lib/byte-buddy-1.9.10.jar: java.lang.IllegalStateException: Unknown tag! pos=3 poolCount = 86
at org.jboss.jandex.Indexer.processConstantPool(Indexer.java:1409)
at org.jboss.jandex.Indexer.index(Indexer.java:1443)
at org.jboss.as.server.deployment.annotation.ResourceRootIndexer.indexResourceRo
ot(ResourceRootIndexer.java:99)
at org.jboss.as.server.deployment.annotation.AnnotationIndexProcessor.deploy(Ann
otationIndexProcessor.java:51)
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:147)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceCon
trollerImpl.java:1948)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerIm
pl.java:1881)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:114
9)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:62
4)
at java.lang.Thread.run(Thread.java:748)
>2019-04-05 21:47:30,196 WARN [org.jboss.as.server.deployment] (MSC service thread 1-5) WFLYSRV0003: Could not index class module-info.class at /G:/job/web/wildfly-10.0.0.Final/bin/content/api.war/WEB-INF/lib/jaxb-api-2.3.0.jar: java.lang.IllegalStateException: Unknown tag! pos=4 poolCount = 32
at org.jboss.jandex.Indexer.processConstantPool(Indexer.java:1409)
at org.jboss.jandex.Indexer.index(Indexer.java:1443)
at org.jboss.as.server.deployment.annotation.ResourceRootIndexer.indexResourceRoot(ResourceRootIndexer.java:99)
at org.jboss.as.server.deployment.annotation.AnnotationIndexProcessor.deploy(AnnotationIndexProcessor.java:51)
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:147)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
>2019-04-05 21:47:31,041 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-2) MSC000001: Failed to start service jboss.module.service."deployment.api.war".main: org.jboss.msc.service.StartException in service jboss.module.service."deployment.api.war".main: WFLYSRV0179: Failed to load module: deployment.api.war:main
at org.jboss.as.server.moduleservice.ModuleLoadService.start(ModuleLoadService.java:91)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: org.jboss.modules.ModuleNotFoundException: jdk.unsupported:main
at org.jboss.modules.Module.addPaths(Module.java:1092)
at org.jboss.modules.Module.link(Module.java:1448)
at org.jboss.modules.Module.relinkIfNecessary(Module.java:1476)
at org.jboss.modules.ModuleLoader.loadModule(ModuleLoader.java:225)
at org.jboss.as.server.moduleservice.ModuleLoadService.start(ModuleLoadService.java:68)
... 5 more
>2019-04-05 21:47:31,045 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation ("deploy") failed - address: ([("deployment" => "api.war")]) - failure description: {"WFLYCTL0080: Failed services" => {"jboss.module.service.\"deployment.api.war\".main" => "org.jboss.msc.service.StartException in service jboss.module.service.\"deployment.api.war\".main: WFLYSRV0179: Failed to load module: deployment.api.war:main
Caused by: org.jboss.modules.ModuleNotFoundException: jdk.unsupported:main"}}
2019-04-05 21:47:31,059 INFO [org.jboss.as.server] (ServerService Thread Pool -- 34) WFLYSRV0010: Deployed "api.war" (runtime-name : "api.war")
2019-04-05 21:47:31,060 INFO [org.jboss.as.controller] (Controller Boot Thread) WFLYCTL0183: Service status report
WFLYCTL0186: Services which failed to start: service jboss.module.service."deployment.api.war".main: org.jboss.msc.service.StartException in service jboss.module.service."deployment.api.war".main: WFLYSRV0179: Failed to load module: deployment.api.war:main
在wildfly 10上部署Spring Boot应用程序之前,是否需要进行任何配置更改? 要在wildfly 10上部署是否需要进行任何特定的代码更改?