StAX loader framework cannot handle "xsi:type"
----------------------------------------------
Key: TUSCANY-437
URL: http://issues.apache.org/jira/browse/TUSCANY-437
Project: Tuscany
Type: Bug
Components: Java SCA Core
Versions: Java-Mx, Java-M2
Reporter: Raymond Feng
The current StAX loader registration is against the QName of the element. It
cannot handle the xsi:type variant.
For example, if I change the sca.module for "Helloworld" to use the "xsi:type"
(which is legal against the SCA xsd).
<module xmlns="http://www.osoa.org/xmlns/sca/0.9"
xmlns:v="http://www.osoa.org/xmlns/sca/values/0.9"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
name="helloworld">
<component name="HelloWorldServiceComponent">
<!--
<implementation.java class="helloworld.HelloWorldImpl"/>
-->
<implementation xsi:type="JavaImplementation"
class="helloworld.HelloWorldImpl"/>
</component>
</module>
I'm getting the following exception:
Exception in thread "main"
org.apache.tuscany.core.config.ConfigurationLoadException: Unrecognized element
[{http://www.osoa.org/xmlns/sca/0.9}implementation]
at
org.apache.tuscany.core.loader.impl.StAXLoaderRegistryImpl.load(StAXLoaderRegistryImpl.java:62)
at
org.apache.tuscany.core.loader.assembly.ComponentLoader.load(ComponentLoader.java:76)
at
org.apache.tuscany.core.loader.assembly.ComponentLoader.load(ComponentLoader.java:1)
at
org.apache.tuscany.core.loader.impl.StAXLoaderRegistryImpl.load(StAXLoaderRegistryImpl.java:66)
at
org.apache.tuscany.core.loader.assembly.CompositeLoader.loadComposite(CompositeLoader.java:43)
at
org.apache.tuscany.core.loader.assembly.ModuleLoader.load(ModuleLoader.java:41)
at
org.apache.tuscany.core.loader.assembly.ModuleLoader.load(ModuleLoader.java:1)
at
org.apache.tuscany.core.loader.impl.StAXLoaderRegistryImpl.load(StAXLoaderRegistryImpl.java:66)
at
org.apache.tuscany.core.config.impl.StAXModuleComponentConfigurationLoaderImpl.loadModule(StAXModuleComponentConfigurationLoaderImpl.java:51)
at
org.apache.tuscany.core.config.impl.AbstractModuleComponentConfigurationLoader.loadModuleComponent(AbstractModuleComponentConfigurationLoader.java:142)
at
org.apache.tuscany.core.config.impl.AbstractModuleComponentConfigurationLoader.loadModuleComponent(AbstractModuleComponentConfigurationLoader.java:132)
at
org.apache.tuscany.core.config.impl.AbstractModuleComponentConfigurationLoader.loadModuleComponent(AbstractModuleComponentConfigurationLoader.java:100)
at
org.apache.tuscany.core.client.TuscanyRuntime.<init>(TuscanyRuntime.java:103)
at
org.apache.tuscany.core.client.TuscanyRuntime.<init>(TuscanyRuntime.java:67)
at helloworld.HelloWorldClient.main(HelloWorldClient.java:32)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]