java.lang.NoClassDefFoundError: javax/faces/convert/Converter using EAP managed container
simplex-software Sep 20, 2013 7:12 AMGreetings,
I'm using an installation having two standalone EAP 6.1, one to be used as managed by Arquillian and a second one for normal deployment. I deploy a JSF based war which works properly when tested manually. Now, I would like to add Arquillian tests using the managed container. I'm using this dependency:
<dependency> | |
<groupId>org.jboss.as</groupId> | |
<artifactId>jboss-as-arquillian-container-managed</artifactId> | |
<version>7.2.0.Final</version> | |
</dependency> |
Here id the arquillian.xml file:
<?xml version="1.0" encoding="UTF-8"?>
<arquillian xmlns="http://jboss.org/schema/arquillian" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="
http://jboss.org/schema/arquillian
http://jboss.org/schema/arquillian/arquillian_1_0.xsd">
<container qualifier="jbossas-managed" default="true">
<configuration>
<property name="jbossHome">C:/EAP-6.1.1-arquillian/jboss-eap-6.1</property>
<property name="managementPort">10099</property>
</configuration>
</container>
</arquillian>
Running mvn clean package raises the following:
11:42:16,708 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-4) MSC000001: Failed to start service jboss.deployment.unit."hr-8631985341043569990.jar".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.unit."hr-8631985341043569990.jar".POST_MODULE: JBAS018733: Failed to process phase POST_MODULE of deployment "hr-8631985341043569990.jar"
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:127) [jboss-as-server-7.2.1.Final-redhat-10.jar:7.2.1.Final-redhat-10]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.4.GA-redhat-1.jar:1.0.4.GA-redhat-1]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.4.GA-redhat-1.jar:1.0.4.GA-redhat-1]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [rt.jar:1.7.0_11]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [rt.jar:1.7.0_11]
at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_11]
Caused by: java.lang.RuntimeException: JBAS018757: Error getting reflective information for class fr.simplex_software.hr.view.JobHistoryBean with ClassLoader ModuleClassLoader for Module "deployment.hr-8631985341043569990.jar:main" from Service Module Loader
at org.jboss.as.server.deployment.reflect.DeploymentReflectionIndex.getClassIndex(DeploymentReflectionIndex.java:72) [jboss-as-server-7.2.1.Final-redhat-10.jar:7.2.1.Final-redhat-10]
at org.jboss.as.ee.metadata.MethodAnnotationAggregator.runtimeAnnotationInformation(MethodAnnotationAggregator.java:58)
at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.handleAnnotations(InterceptorAnnotationProcessor.java:107)
at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.processComponentConfig(InterceptorAnnotationProcessor.java:92)
at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.deploy(InterceptorAnnotationProcessor.java:77)
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:120) [jboss-as-server-7.2.1.Final-redhat-10.jar:7.2.1.Final-redhat-10]
... 5 more
Caused by: java.lang.NoClassDefFoundError: javax/faces/convert/Converter
at java.lang.Class.getDeclaredFields0(Native Method) [rt.jar:1.7.0_11]
at java.lang.Class.privateGetDeclaredFields(Class.java:2308) [rt.jar:1.7.0_11]
at java.lang.Class.getDeclaredFields(Class.java:1760) [rt.jar:1.7.0_11]
at org.jboss.as.server.deployment.reflect.ClassReflectionIndex.<init>(ClassReflectionIndex.java:57) [jboss-as-server-7.2.1.Final-redhat-10.jar:7.2.1.Final-redhat-10]
at org.jboss.as.server.deployment.reflect.DeploymentReflectionIndex.getClassIndex(DeploymentReflectionIndex.java:68) [jboss-as-server-7.2.1.Final-redhat-10.jar:7.2.1.Final-redhat-10]
... 10 more
However the jsf module contains the mention class. What could be the problem here ?
Many thanks in advance,
Nicolas