6 Replies Latest reply: Oct 12, 2011 8:35 AM by Gary Brown RSS

BPEL Quickstarts fail in AS7

Magesh Bojan Master

I get the following error when running release distribution for AS7

15:52:26,218 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-3) MSC00001: Failed to start service jboss.deployment.unit."switchyard-quickstart-bpel-service-loan-approval-0.3.0-SNAPSHOT.jar".SwitchYardService: org.jboss.msc.service.StartException in service jboss.deployment.unit."switchyard-quickstart-bpel-service-loan-approval-0.3.0-SNAPSHOT.jar".SwitchYardService: org.switchyard.exception.SwitchYardException: org.switchyard.exception.SwitchYardException: Unknown deployment environment
        at org.switchyard.as7.extension.services.SwitchYardService.start(SwitchYardService.java:94)
        at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1824) [jboss-msc-1.0.1.GA.jar:1.0.1.GA]
        at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1759) [jboss-msc-1.0.1.GA.jar:1.0.1.GA]
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) [:1.6.0_26]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [:1.6.0_26]
        at java.lang.Thread.run(Unknown Source) [:1.6.0_26]
Caused by: org.switchyard.exception.SwitchYardException: org.switchyard.exception.SwitchYardException: Unknown deployment environment
        at org.switchyard.component.bpel.riftsaw.RiftsawBPELExchangeHandler.init(RiftsawBPELExchangeHandler.java:100)
        at org.switchyard.component.bpel.deploy.BPELActivator.init(BPELActivator.java:112)
        at org.switchyard.deploy.internal.Deployment.deployServices(Deployment.java:316)
        at org.switchyard.deploy.internal.Deployment.doStart(Deployment.java:130)
        at org.switchyard.deploy.internal.AbstractDeployment.start(AbstractDeployment.java:170)
        at org.switchyard.as7.extension.deployment.SwitchYardDeployment.start(SwitchYardDeployment.java:105)
        at org.switchyard.as7.extension.services.SwitchYardService.start(SwitchYardService.java:87)
        ... 5 more
Caused by: org.switchyard.exception.SwitchYardException: Unknown deployment environment
        at org.switchyard.component.bpel.riftsaw.RiftsawBPELExchangeHandler.getDeployment(RiftsawBPELExchangeHandler.java:190)
        at org.switchyard.component.bpel.riftsaw.RiftsawBPELExchangeHandler.init(RiftsawBPELExchangeHandler.java:94)
        ... 11 more

 

A closer look at the code RiftsawBPELExchangeHandler.getDeployment() revealed that it is looking for "vfs:/content/<somepath>" whereas the deployment is shown as "vfs:/<somepath>". Do anybody else get this error? Why the component code relies on AS specific implementations?