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 2006/05/30 18:54:34 UTC
[jira] Created: (TUSCANY-437) StAX loader framework cannot handle
"xsi:type"
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: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org
[jira] Assigned: (TUSCANY-437) StAX loader framework cannot handle
"xsi:type"
Posted by "Raymond Feng (JIRA)" <tu...@ws.apache.org>.
[ https://issues.apache.org/jira/browse/TUSCANY-437?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Raymond Feng reassigned TUSCANY-437:
------------------------------------
Assignee: Raymond Feng
> 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-M2
>
>
> 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
[jira] Updated: (TUSCANY-437) StAX loader framework cannot handle
"xsi:type"
Posted by "Raymond Feng (JIRA)" <tu...@ws.apache.org>.
[ 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
[jira] Updated: (TUSCANY-437) StAX loader framework cannot handle
"xsi:type"
Posted by "ant elder (JIRA)" <tu...@ws.apache.org>.
[ http://issues.apache.org/jira/browse/TUSCANY-437?page=all ]
ant elder updated TUSCANY-437:
------------------------------
Fix Version/s: Java-M2
> StAX loader framework cannot handle "xsi:type"
> ----------------------------------------------
>
> Key: TUSCANY-437
> URL: http://issues.apache.org/jira/browse/TUSCANY-437
> Project: Tuscany
> Issue Type: Bug
> Components: Java SCA Core
> Affects Versions: Java-Mx, Java-M2
> Reporter: Raymond Feng
> Fix For: Java-M2
>
>
> 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: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org
[jira] Updated: (TUSCANY-437) StAX loader framework cannot handle
"xsi:type"
Posted by "Jean-Sebastien Delfino (JIRA)" <tu...@ws.apache.org>.
[ https://issues.apache.org/jira/browse/TUSCANY-437?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jean-Sebastien Delfino updated TUSCANY-437:
-------------------------------------------
Affects Version/s: Java-M3
Added M3 to the list of affected versions.
> 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-M3, 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