我是Wildlfy和JBoss的新手,现在我尝试在WildFly服务器上使用.war
文件部署我的Project。我目前收到以下错误:
2017-06-26 12:43:09,128 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-2) MSC000001: Failed to start service jboss.deployment.unit.SmartVis.INSTALL: org.jboss.msc.service.StartException in service jboss.deployment.unit.SmartVis.INSTALL: WFLYSRV0153: Failed to process phase INSTALL of deployment "SmartVis"
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:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:748)
Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: WFLYJSF0008: Failed to load annotated class: com.consolinno.smartvis.converter.BhkwConverter
at org.jboss.as.jsf.deployment.JSFAnnotationProcessor.deploy(JSFAnnotationProcessor.java:115)
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:165)
... 5 more
2017-06-26 12:43:09,163 ERROR [org.jboss.as.controller.management-operation] (External Management Request Threads -- 7) WFLYCTL0013: Operation ("add") failed - address: ([("deployment" => "SmartVis-1.0-SNAPSHOT.war")]) - failure description: {
"WFLYCTL0080: Failed services" => {"jboss.deployment.unit.SmartVis.INSTALL" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.SmartVis.INSTALL: WFLYSRV0153: Failed to process phase INSTALL of deployment \"SmartVis\"
Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: WFLYJSF0008: Failed to load annotated class: com.consolinno.smartvis.converter.BhkwConverter"},
"WFLYCTL0412: Required services that are not installed:" => [
"jboss.deployment.unit.SmartVis.INSTALL",
"jboss.deployment.unit.SmartVis.beanmanager"
],
"WFLYCTL0180: Services with missing/unavailable dependencies" => [
"jboss.deployment.unit.SmartVis.weld.weldClassIntrospector is missing [jboss.deployment.unit.SmartVis.beanmanager]",
"jboss.deployment.unit.SmartVis.batch.environment is missing [jboss.deployment.unit.SmartVis.beanmanager]"
]
}
2017-06-26 12:43:09,165 ERROR [org.jboss.as.server] (External Management Request Threads -- 7) WFLYSRV0021: Deploy of deployment "SmartVis" was rolled back with the following failure message:
{
"WFLYCTL0080: Failed services" => {"jboss.deployment.unit.SmartVis.INSTALL" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.SmartVis.INSTALL: WFLYSRV0153: Failed to process phase INSTALL of deployment \"SmartVis\"
Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: WFLYJSF0008: Failed to load annotated class: com.consolinno.smartvis.converter.BhkwConverter"},
"WFLYCTL0412: Required services that are not installed:" => [
"jboss.deployment.unit.SmartVis.INSTALL",
"jboss.deployment.unit.SmartVis.beanmanager"
],
"WFLYCTL0180: Services with missing/unavailable dependencies" => [
"jboss.deployment.unit.SmartVis.weld.weldClassIntrospector is missing [jboss.deployment.unit.SmartVis.beanmanager]",
"jboss.deployment.unit.SmartVis.batch.environment is missing [jboss.deployment.unit.SmartVis.beanmanager]"
]
}
类BhkwConverter
是一个简单的转换器类,用于SelectOneMenue
Primefaces
。我在" WEB-INF"中有bean.xml
个文件。目录。
有人可以在这里给我一个建议吗?我无法在谷歌上找到类似的东西。
答案 0 :(得分:0)
好的,我忘了添加
<dependency>
<groupId>org.jboss.modules</groupId>
<artifactId>jboss-modules</artifactId>
<version>1.5.1.Final</version>
</dependency>
到pom.xml文件。现在工作得很好。