Simple SwitchYard application cannot be deployed in FSW 6.0.0

Solution Verified - Updated -

Issue

  • I am trying to deploy a simple application to Fuse Service Works 6.0.0 and getting this exception:
16:16:06,514 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-3) MSC000001: Failed to start service jboss.deployment.unit."switchyard-example.jar".SwitchYardService: org.jboss.msc.service.StartException in service jboss.deployment.unit."switchyard-example.jar".SwitchYardService: java.lang.NullPointerException
    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$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_35]
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_35]
    at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_35]
Caused by: java.lang.NullPointerException
    at org.switchyard.deploy.internal.Deployment.getActivationTypes(Deployment.java:234)
    at org.switchyard.as7.extension.deployment.SwitchYardDeployment.start(SwitchYardDeployment.java:96)
    at org.switchyard.as7.extension.services.SwitchYardService.start(SwitchYardService.java:73)
    ... 5 more
16:16:06,526 INFO  [org.jboss.as.controller] (DeploymentScanner-threads - 2) JBAS014774: Service status report
JBAS014777:   Services which failed to start:      service jboss.deployment.unit."switchyard-example.jar".SwitchYardService: org.jboss.msc.service.StartException in service jboss.deployment.unit."switchyard-example.jar".SwitchYardService: java.lang.NullPointerException
  • The switchyard.xml is as follows:
<?xml version="1.0" encoding="UTF-8"?>
<sy:switchyard xmlns:camel="urn:switchyard-component-camel:config:1.1" xmlns:resteasy="urn:switchyard-component-resteasy:config:1.1" xmlns:sca="http://docs.oasis-open.org/ns/opencsa/sca/200912" xmlns:sy="urn:switchyard-config:switchyard:1.1" name="switchyard-example" targetNamespace="urn:com.example.switchyard:switchyard-example:1.0">
  <sca:composite name="switchyard-example" targetNamespace="urn:com.example.switchyard:switchyard-example:1.0">
    <sca:service name="IStreamingRest" promote="CamelServiceRoute/IStreamingService">
      <sca:interface.java interface="com.example.switchyard.switchyard_example.IStreamingRest"/>
      <resteasy:binding.rest name="rest1">
        <resteasy:interfaces>com.example.switchyard.switchyard_example.IStreamingRest</resteasy:interfaces>
        <resteasy:contextPath>/streaming</resteasy:contextPath>
      </resteasy:binding.rest>
    </sca:service>
    <sca:component name="CamelServiceRoute">
      <camel:implementation.camel>
        <camel:java class="com.example.switchyard.switchyard_example.CamelServiceRoute"/>
      </camel:implementation.camel>
      <sca:service name="IStreamingService">
        <sca:interface.java interface="com.example.switchyard.switchyard_example.IStreamingService"/>
      </sca:service>
    </sca:component>
  </sca:composite>
</sy:switchyard>

Environment

  • JBoss Fuse Service Works (FSW)
    • 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