URI scheme is not "file" exception when deploying WAR file on FSW

Solution Verified - Updated -

Issue

  • When SwitchYard project, packaged as a WAR, is deployed on the FSW, following exception occurs:
04:115:2014 01:59:56 ERROR [org.jboss.msc.service.fail] MSC000001: Failed to start service jboss.deployment.unit."templa
teJcaBpelOrchestration.war".SwitchYardService: org.jboss.msc.service.StartException in service jboss.deployment.unit."te
mplateJcaBpelOrchestration.war".SwitchYardService: org.switchyard.SwitchYardException: java.lang.IllegalArgumentExceptio
n: URI scheme is not "file"
        at org.switchyard.as7.extension.services.SwitchYardService.start(SwitchYardService.java:80)
        at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-ms
c-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.G
A-redhat-1.jar:1.0.4.GA-redhat-1]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_45]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_45]
        at java.lang.Thread.run(Thread.java:744) [rt.jar:1.7.0_45]
Caused by: org.switchyard.SwitchYardException: java.lang.IllegalArgumentException: URI scheme is not "file"
        at org.switchyard.component.bpel.riftsaw.RiftsawBPELExchangeHandler.doStart(RiftsawBPELExchangeHandler.java:242)

        at org.switchyard.deploy.BaseServiceHandler.start(BaseServiceHandler.java:60)
        at org.switchyard.deploy.internal.Deployment.deployImplementations(Deployment.java:574)
        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
Caused by: java.lang.IllegalArgumentException: URI scheme is not "file"
        at java.io.File.<init>(File.java:421) [rt.jar:1.7.0_45]
        at org.switchyard.component.bpel.riftsaw.RiftsawBPELExchangeHandler.getDeployment(RiftsawBPELExchangeHandler.jav
a:196)
        at org.switchyard.component.bpel.riftsaw.RiftsawBPELExchangeHandler.doStart(RiftsawBPELExchangeHandler.java:232)

If the same project is packaged as a *.jar the deployment works ok, what is the reason behind this limitation?

Environment

  • Red Hat JBoss Fuse Service Works
    • 6.0.0

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content