switchyard config file problem
jodonya Sep 8, 2012 3:56 PMI have really tried to get my switchyard configuration file correct but I am still missing out on something
I am getting the error below
[ERROR] Failed to execute goal org.switchyard:switchyard-plugin:0.6.0-SNAPSHOT:configure (default) on project myproject: Model [org.switchyard.config.model.switchyard.v1.V1SwitchYardModel] is invalid: cvc-complex-type.2.4.a: Invalid content was found starting with element 'component'. One of '{WC[##other:"http://docs.oasis-open.org/ns/opencsa/sca/200912"]}' is expected. -> [Help 1]
now, here is my configuration file
<?xml version="1.0" encoding="UTF-8"?>
<switchyard xmlns="urn:switchyard-config:switchyard:1.0"
xmlns:rules="urn:switchyard-component-rules:config:1.0"
xmlns:camel="urn:switchyard-component-camel:config:1.0">
<composite xmlns="http://docs.oasis-open.org/ns/opencsa/sca/200912" name="myproject" targetNamespace="urn:myproject:0.1.0">
<service name="FirstService" promote="FirstService">
<camel:binding.jms>
<camel:queue>firstQueue</camel:queue>
<camel:connectionFactory>#ConnectionFactory</camel:connectionFactory>
</camel:binding.jms>
</service>
<service name="SecondService" promote="SecondService">
<camel:binding.jms>
<camel:queue>secondQueue</camel:queue>
<camel:connectionFactory>#ConnectionFactory</camel:connectionFactory>
</camel:binding.jms>
</service>
<service name="GreetingService" promote="GreetingService">
<camel:binding.jms>
<camel:queue>GreetingServiceQueue</camel:queue>
<camel:connectionFactory>#ConnectionFactory</camel:connectionFactory>
</camel:binding.jms>
</service>
<service name="ServiceName" promote="ServiceName">
<interface.java interface="path.to.interfacename"></interface.java>
</service>
<rules:implementation.rules agent="true">
<rules:resource location="META-INF/ChangeSet.xml" type="CHANGE_SET"/>
</rules:implementation.rules>
</composite>
</switchyard>
I adapted most of the stuff from switchyard quickstarts, the camel-jms-binding, could there be something that my eyeballs can't see that is really wrong with this config file?