从Jboss6到Jboss7的迁移导致应用程序部署失败

时间:2020-09-09 17:27:18

标签: jboss7.x

我正在尝试在Jboss7上部署应用程序,它可以与Jboss6正常工作,但不能与7一起正常工作。 这只是一个restapi应用程序,但不确定为什么它抱怨jsf而不在代码中使用。 这是我在部署时遇到的错误:

2020-09-09 12:03:34,502 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-2) MSC000001: Failed to start service jboss.deployment.unit."wealth-user-attribute-1.1.4.war".INSTALL: org.jboss.msc.service.StartException in service jboss.deployment.unit."wealth-user-attribute-1.1.4.war".INSTALL: WFLYSRV0153: Failed to process phase INSTALL of deployment "wealth-user-attribute-1.1.4.war"
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:172)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:2032)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1955)
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: java.lang.NoClassDefFoundError: Failed to link org/springframework/web/jsf/DelegatingPhaseListenerMulticaster (Module "deployment.wealth-user-attribute-1.1.4.war" from Service Module Loader): javax/faces/event/PhaseListener
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:446)
at org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java:274)
at org.jboss.modules.ModuleClassLoader$1.loadClassLocal(ModuleClassLoader.java:77)
at org.jboss.modules.Module.loadModuleClass(Module.java:713)
at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190)
at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:412)
at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:400)
at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:116)
at org.wildfly.extension.undertow.deployment.ServletContainerInitializerDeploymentProcessor.loadClassInfoSet(ServletContainerInitializerDeploymentProcessor.java:259)
at org.wildfly.extension.undertow.deployment.ServletContainerInitializerDeploymentProcessor.deploy(ServletContainerInitializerDeploymentProcessor.java:169)
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:165)
... 5 more

2020-09-09 12:03:34,904 INFO  [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 63) WFLYCLINF0002: Started client-mappings cache from ejb container
2020-09-09 12:03:34,987 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation ("deploy") failed - address: ([("deployment" => "wealth-user-attribute-1.1.4.war")]) - failure description: {"WFLYCTL0080: Failed services" => {"jboss.deployment.unit.\"wealth-user-attribute-1.1.4.war\".INSTALL" => "WFLYSRV0153: Failed to process phase INSTALL of deployment \"wealth-user-attribute-1.1.4.war\"

Caused by: java.lang.NoClassDefFoundError: Failed to link org/springframework/web/jsf/DelegatingPhaseListenerMulticaster (Module \"deployment.wealth-user-attribute-1.1.4.war\" from Service Module Loader): javax/faces/event/PhaseListener"}}

请让我知道pom.xml中可能要进行的更改。 TIA!

0 个答案:

没有答案