You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "Raymond Feng (JIRA)" <tu...@ws.apache.org> on 2007/01/15 19:33:27 UTC
[jira] Updated: (TUSCANY-437) StAX loader framework cannot handle
"xsi:type"
[ https://issues.apache.org/jira/browse/TUSCANY-437?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Raymond Feng updated TUSCANY-437:
---------------------------------
Fix Version/s: (was: Java-M2)
Java-Mx
> StAX loader framework cannot handle "xsi:type"
> ----------------------------------------------
>
> Key: TUSCANY-437
> URL: https://issues.apache.org/jira/browse/TUSCANY-437
> Project: Tuscany
> Issue Type: Bug
> Components: Java SCA Core
> Affects Versions: Java-M2, Java-Mx
> Reporter: Raymond Feng
> Assigned To: Raymond Feng
> Fix For: Java-Mx
>
>
> 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: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org