Implementation class is located in a EAP's module
anikulin Sep 26, 2014 8:58 AMHi guys
I tried to define a SwitchYard Service Bean whose interface and implementation are located in an EAP module. I defined it like this:
<component xmlns="http://docs.oasis-open.org/ns/opencsa/sca/200912" name="TickDAO"> <implementation.bean xmlns="urn:switchyard-component-bean:config:1.1" class="nu.magick.masterKonnector.dao.TickDAOBean"/> <service name="TickDAO"> <interface.java interface="nu.magick.masterKonnector.dao.TickDAO"/> </service> </component>
MANIFEST.MF file has a nu.magick.masterKonnector dependency, but when I try to deploy this app I get the following error:
ERROR [org.jboss.msc.service.fail] (MSC service thread 1-6) MSC000001: Failed to start service jboss.deployment.unit."backTestKonnector.jar".SwitchYardService: org.jboss.msc.service.StartException in service jboss.deployment.unit."backTestKonnector.jar".SwitchYardService: org.switchyard.SwitchYardException: SWITCHYARD030412: Unknown Service name '{ck:BackTestKonnector:0.0.1-SNAPSHOT}TickDAO'. at org.switchyard.as7.extension.services.SwitchYardService.start(SwitchYardService.java:80) 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:1145) [rt.jar:1.7.0_65] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_65] at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_65] Caused by: org.switchyard.SwitchYardException: SWITCHYARD030412: Unknown Service name '{ck:BackTestKonnector:0.0.1-SNAPSHOT}TickDAO'. at org.switchyard.component.bean.deploy.BeanComponentActivator.activateService(BeanComponentActivator.java:90) at org.switchyard.deploy.internal.Deployment.deployImplementations(Deployment.java:546) at org.switchyard.deploy.internal.Deployment.start(Deployment.java:144) at org.switchyard.as7.extension.deployment.SwitchYardDeployment.start(SwitchYardDeployment.java:101) at org.switchyard.as7.extension.services.SwitchYardService.start(SwitchYardService.java:73) ... 5 more
If I move TickDAOBean class into the app (but TickDAO interface is still in a EAP's module), the app is successfully deployed and works fine.
Can you help me please to solve this issue?
Thanks, Anton