Whole J2EE Project breaks with Forge UI Scaffolding
by forge-users@lists.jboss.org
Hi,
I have a JBoss sample project which has three modules as *ear*, *ejb* and *web*. The fodler ejb i have "src/main/java/org/jboss/tools/example/model/Member.java", which is an Entity. Now I need to try out how UI Scaffolding works. So I followed the following simple steps defined http://forge.jboss.org/docs/important_plugins/ui-scaffolding.html. Here I called the scaffolding command from folder "*{project-name}/ejb/*". And The Forge command line worked well and generated the codes without any …
[View More]complaints. But Now I try to run the same project with JBoss (wildfly) I get the following errors. Any idea what i going on?. In the original project I had all thease Hibernate configurations,
14:53:22,112 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-3) MSC000001: Failed to start service jboss.deployment.unit."zjboss-test-ejb.jar".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.unit."zjboss-test-ejb.jar".POST_MODULE: JBAS018733: Failed to process phase POST_MODULE of deployment "zjboss-test-ejb.jar"
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:166) [wildfly-server-8.0.0.Final.jar:8.0.0.Final]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948) [jboss-msc-1.2.0.Final.jar:1.2.0.Final]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881) [jboss-msc-1.2.0.Final.jar:1.2.0.Final]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_51]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_51]
at java.lang.Thread.run(Thread.java:744) [rt.jar:1.7.0_51]
Caused by: java.lang.RuntimeException: JBAS018757: Error getting reflective information for class org.jboss.tools.example.view.MemberBean with ClassLoader ModuleClassLoader for Module "deployment.zjboss-test-ejb.jar:main" from Service Module Loader
at org.jboss.as.server.deployment.reflect.DeploymentReflectionIndex.getClassIndex(DeploymentReflectionIndex.java:72) [wildfly-server-8.0.0.Final.jar:8.0.0.Final]
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:159) [wildfly-server-8.0.0.Final.jar:8.0.0.Final]
... 5 more
Caused by: java.lang.NoClassDefFoundError: javax/faces/convert/Converter
at java.lang.Class.getDeclaredFields0(Native Method) [rt.jar:1.7.0_51]
at java.lang.Class.privateGetDeclaredFields(Class.java:2397) [rt.jar:1.7.0_51]
at java.lang.Class.getDeclaredFields(Class.java:1806) [rt.jar:1.7.0_51]
at org.jboss.as.server.deployment.reflect.ClassReflectionIndex.<init>(ClassReflectionIndex.java:57) [wildfly-server-8.0.0.Final.jar:8.0.0.Final]
at org.jboss.as.server.deployment.reflect.DeploymentReflectionIndex.getClassIndex(DeploymentReflectionIndex.java:68) [wildfly-server-8.0.0.Final.jar:8.0.0.Final]
... 10 more
Caused by: java.lang.ClassNotFoundException: javax.faces.convert.Converter from [Module "deployment.zjboss-test-ejb.jar:main" from Service Module Loader]
at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:197) [jboss-modules.jar:1.3.0.Final]
at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:443) [jboss-modules.jar:1.3.0.Final]
at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:431) [jboss-modules.jar:1.3.0.Final]
at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:373) [jboss-modules.jar:1.3.0.Final]
at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:118) [jboss-modules.jar:1.3.0.Final]
... 15 more
14:53:22,335 INFO [org.jboss.ws.common.management] (MSC service thread 1-6) JBWS022052: Starting JBoss Web Services - Stack CXF Server 4.2.3.Final
14:53:22,337 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) JBAS014613: Operation ("deploy") failed - address: ([("deployment" => "zjboss-test-ejb.jar")]) - failure description: {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"zjboss-test-ejb.jar\".POST_MODULE" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"zjboss-test-ejb.jar\".POST_MODULE: JBAS018733: Failed to process phase POST_MODULE of deployment \"zjboss-test-ejb.jar\"
Caused by: java.lang.RuntimeException: JBAS018757: Error getting reflective information for class org.jboss.tools.example.view.MemberBean with ClassLoader ModuleClassLoader for Module \"deployment.zjboss-test-ejb.jar:main\" from Service Module Loader
Caused by: java.lang.NoClassDefFoundError: javax/faces/convert/Converter
Caused by: java.lang.ClassNotFoundException: javax.faces.convert.Converter from [Module \"deployment.zjboss-test-ejb.jar:main\" from Service Module Loader]"}}
14:53:22,405 INFO [org.jboss.as.server] (ServerService Thread Pool -- 29) JBAS018559: Deployed "zjboss-test-ejb.jar" (runtime-name : "zjboss-test-ejb.jar")
14:53:22,415 INFO [org.jboss.as.controller] (Controller Boot Thread) JBAS014774: Service status report
JBAS014777: Services which failed to start: service jboss.deployment.unit."zjboss-test-ejb.jar".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.unit."zjboss-test-ejb.jar".POST_MODULE: JBAS018733: Failed to process phase POST_MODULE of deployment "zjboss-test-ejb.jar"
Posted by forums
Original post: https://community.jboss.org/message/868899#868899
[View Less]