2017-06-26 4 views
1

Ich bin neu bei Wildlfy und JBoss und ich habe jetzt versucht, mein Projekt mit einer .war Datei auf einem WildFly Server zu implementieren. Ich bin derzeit die folgende Fehlermeldung erhalten:WildFly Jboss: Fehler beim Laden der annotierten Klasse

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]" 
    ] 
} 

Die Klasse BhkwConverter eine einfache Converter-Klasse für ein SelectOneMenue von Primefaces verwendet wird. Ich habe eine bean.xml Datei im Verzeichnis "WEB-INF".

Kann mir hier jemand einen Rat geben? Ähnliches kann ich bei Google nicht finden.

+0

Die Datei muss 'beans.xml' heißen –

+0

Typo, es heißt beans.xml –

+0

Ich habe das gleiche Problem, mi app lief auf Glassfish, aber ich triying auf WildFly zu migrieren. Der Fehler, den ich auch habe, bezieht sich auf einen einfachen Konverter von Primefaces, der Unterschied ist, dass ich keine beans.xml-Datei habe. Was soll in dieser Datei geschrieben werden? Brauche ich eine zusätzliche Konfiguration? – AngelAvila

Antwort

0

Ok vergaß ich die

<dependency> 
    <groupId>org.jboss.modules</groupId> 
    <artifactId>jboss-modules</artifactId> 
    <version>1.5.1.Final</version> 
</dependency> 

in die pom.xml-Datei hinzuzufügen. Arbeitet jetzt perfekt.

+0

Diese Abhängigkeit sollte nicht benötigt werden und sollte mindestens als ' bereitgestellt 'gekennzeichnet sein. –

Verwandte Themen