[
https://issues.apache.org/jira/browse/TUSCANY-3624?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12889773#action_12889773
]
Mike Edwards commented on TUSCANY-3624:
---------------------------------------
I think that for the composite listed here, Tuscany is behaving correctly and
it is the composite that is in error.
The problem is with the declaration of the binding.jms element (as indicated in
the exception).
There is no element type: tuscany:binding.jms
binding.jms is defined by the OASIS SCA specifications and so is declared in
the main SCA namespace:
xmlns="http://docs.oasis-open.org/ns/opencsa/sca/200912"
Thus, the declaration of the binding.jms element in the composite should look
like:
<binding.jms uri="jms://helloworld"/>
> JMS binding configure issue
> ---------------------------
>
> Key: TUSCANY-3624
> URL: https://issues.apache.org/jira/browse/TUSCANY-3624
> Project: Tuscany
> Issue Type: Bug
> Components: Java SCA JMS Binding Extension
> Affects Versions: Java-SCA-2.0-M5
> Environment: Windows XP
> Reporter: zhaoyi
>
> I set up the composite in this way.
> <composite xmlns="http://docs.oasis-open.org/ns/opencsa/sca/200912"
> xmlns:tuscany="http://tuscany.apache.org/xmlns/sca/1.1"
> targetNamespace="http://sample" xmlns:sample="http://sample"
> name="helloworld_jms">
> <component name="HelloworldJMSComponent">
> <implementation.java class="jms.HelloworldImpl" />
> <service name="HelloJMSService">
>
> <interface.java interface="jms.HelloworldService" />
>
> <tuscany:binding.jms uri="jms://helloworld"/>
> </service>
> </component>
> </composite>
> When running the tuscany, it throws an exception:
> Caused by: org.oasisopen.sca.ServiceRuntimeException: [Contribution:
> file:/D:/wo
> rkspace/amqp/sample-helloworld/target/sample-helloworld.jar, Artifact:
> helloworl
> d_jms.composite] - XMLSchema validation error occured in:
> helloworld_jms.composi
> te ,line = 25, column = 26, Message = cvc-complex-type.2.4.a: Invalid content
> wa
> s found starting with element 'tuscany:binding.jms'. One of
> '{"http://docs.oasis
> -open.org/ns/opencsa/sca/200912":binding,
> "http://docs.oasis-open.org/ns/opencsa
> /sca/200912":callback,
> "http://docs.oasis-open.org/ns/opencsa/sca/200912":requir
> es, "http://docs.oasis-open.org/ns/opencsa/sca/200912":policySetAttachment,
> "htt
> p://docs.oasis-open.org/ns/opencsa/sca/200912":extensions}' is expected.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.