Inject SY service into @Named bean
l.sroka Jul 24, 2013 8:48 AMHello
I was trying to test CDI in simple app. I have one SY service which i want to inject into CDI bean and use it in JSF(richfaces) application.
During deplyoment i have got following stacktrace.
4:16:46,209 INFO [org.switchyard] (MSC service thread 1-7) Deploying SwitchYard application 'hellosy.war'
14:16:46,218 INFO [org.jboss.weld.deployer] (MSC service thread 1-7) JBAS016008: Starting weld service for deployment hellosy.war
14:16:46,525 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-7) MSC00001: Failed to start service jboss.deployment.unit."hellosy.war".WeldService: org.jboss.msc.service.StartException in service jboss.deployment.unit."hellosy.war".WeldService: Failed to start service
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1767) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_25]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_25]
at java.lang.Thread.run(Thread.java:724) [rt.jar:1.7.0_25]
Caused by: java.lang.IncompatibleClassChangeError: org.apache.deltaspike.core.util.ClassUtils and org.apache.deltaspike.core.util.ClassUtils$GetClassLoaderAction disagree on InnerClasses attribute
at java.lang.Class.getDeclaringClass(Native Method) [rt.jar:1.7.0_25]
at java.lang.Class.getEnclosingClass(Class.java:1127) [rt.jar:1.7.0_25]
at java.lang.Class.getSimpleBinaryName(Class.java:1267) [rt.jar:1.7.0_25]
at java.lang.Class.isMemberClass(Class.java:1257) [rt.jar:1.7.0_25]
at org.jboss.weld.util.reflection.Reflections.isNonStaticInnerClass(Reflections.java:141)
at org.jboss.weld.bootstrap.BeanDeployer.addClass(BeanDeployer.java:78)
at org.jboss.weld.bootstrap.BeanDeployer.addClasses(BeanDeployer.java:123)
at org.jboss.weld.bootstrap.BeanDeployment.createBeans(BeanDeployment.java:184)
at org.jboss.weld.bootstrap.WeldBootstrap.deployBeans(WeldBootstrap.java:349)
at org.jboss.as.weld.WeldContainer.start(WeldContainer.java:82)
at org.jboss.as.weld.services.WeldService.start(WeldService.java:76)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
... 3 more
14:16:46,532 INFO [org.jboss.as] (MSC service thread 1-6) JBAS015951: Admin console listening on http://127.0.0.1:9990
14:16:46,532 ERROR [org.jboss.as] (MSC service thread 1-6) JBAS015875: JBoss AS 7.1.1.Final "Brontes" started (with errors) in 3567ms - Started 197 of 300 services (25 services failed or missing dependencies, 76 services are passive or on-demand)
14:16:46,734 INFO [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS015870: Deploy of deployment "hellosy.war" was rolled back with failure message {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"hellosy.war\".WeldService" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"hellosy.war\".WeldService: Failed to start service"}}
14:16:46,769 INFO [org.jboss.as.server.deployment] (MSC service thread 1-6) JBAS015877: Stopped deployment hellosy.war in 34ms
14:16:46,771 INFO [org.jboss.as.controller] (DeploymentScanner-threads - 2) JBAS014774: Service status report
JBAS014777: Services which failed to start: service jboss.deployment.unit."hellosy.war".WeldService: org.jboss.msc.service.StartException in service jboss.deployment.unit."hellosy.war".WeldService: Failed to start service
14:16:46,772 ERROR [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) {"JBAS014653: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"hellosy.war\".WeldService" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"hellosy.war\".WeldService: Failed to start service"}}}}
I attached sources.
I'am using eclipse kepler and switchyard-as7-0.8.0.Final.zip
Please help with this.
Thanks.
-
hellosy.tar.gz 3.0 KB