You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "Mike Edwards (JIRA)" <de...@tuscany.apache.org> on 2009/11/05 11:30:21 UTC

[jira] Updated: (TUSCANY-3360) ASM_12008 fails due to undeclared XML Namespace prefix in TestComposite5.compsite

     [ https://issues.apache.org/jira/browse/TUSCANY-3360?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mike Edwards updated TUSCANY-3360:
----------------------------------

    Description: 
ASM_12008_Testcase fails with an XML Schema validation error:

05-Nov-2009 10:21:27 org.apache.tuscany.sca.contribution.processor.ValidatingXMLStreamReader [] (SchemaError)
SEVERE: XMLSchema validation error occured in: TestComposite5.composite ,line = 24, column = 3, Message = UndeclaredPrefix: Cannot resolve 'test:TestComposite5' as a QName: the prefix 'test' is not declared.

This relates to TestComposite5.composite in contribution ASM_12008.  This artifact uses a prefix "test:" but its namespace declarations don't have a declaration for such a namespace.

The required fix is to add a namespace declaration for "xmlns:test", referencing the main "test" namespace for composites:  


Index: ASM_12008/src/main/resources/TestComposite5.composite
===================================================================
--- ASM_12008/src/main/resources/TestComposite5.composite	(revision 372)
+++ ASM_12008/src/main/resources/TestComposite5.composite	(working copy)
@@ -1,33 +1,34 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- *
- * Copyright(C) OASIS(R) 2005,2009. All Rights Reserved.
- * OASIS trademark, IPR and other policies apply.    
- *   
--->
-<!-- 
-Copy of TestComposite5 with different contents offering 
-	1 service, with a remotable interface type=Service1 (other TestComposite5 has Service2)
-    0 references
--->
-<composite xmlns="http://docs.oasis-open.org/ns/opencsa/sca/200903"
-           targetNamespace="http://docs.oasis-open.org/ns/opencsa/scatests/2009032"
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ *
+ * Copyright(C) OASIS(R) 2005,2009. All Rights Reserved.
+ * OASIS trademark, IPR and other policies apply.    
+ *   
+-->
+<!-- 
+Copy of TestComposite5 with different contents offering 
+	1 service, with a remotable interface type=Service1 (other TestComposite5 has Service2)
+    0 references
+-->
+<composite xmlns="http://docs.oasis-open.org/ns/opencsa/sca/200903"
+           targetNamespace="http://docs.oasis-open.org/ns/opencsa/scatests/2009032"
+           xmlns:test="http://docs.oasis-open.org/ns/opencsa/scatests/200903"
            name="TestComposite5">
-           
-	<service name="Service1" promote="TestComposite5Component1/Service1">
-		<interface.wsdl interface="http://test.sca.oasisopen.org/#wsdl.porttype(Service1)"/>
-	</service>
-
-    <property name="serviceName" type="string"/>
- 
-    <component name="TestComposite5Component1">
-		<implementation.composite name="test:TestComposite5"/>
-        <service name="Service1">
-        	<interface.wsdl interface="http://test.sca.oasisopen.org/#wsdl.porttype(Service1)"/>
-        </service>
-        <!-- Note that the property is fixed as "servicex" which causes this string
-             to appear in the output of the service, if invoked -->      
-        <property name="serviceName">servicex</property>
-    </component>
-
-</composite>
+           
+	<service name="Service1" promote="TestComposite5Component1/Service1">
+		<interface.wsdl interface="http://test.sca.oasisopen.org/#wsdl.porttype(Service1)"/>
+	</service>
+
+    <property name="serviceName" type="string"/>
+ 
+    <component name="TestComposite5Component1">
+		<implementation.composite name="test:TestComposite5"/>
+        <service name="Service1">
+        	<interface.wsdl interface="http://test.sca.oasisopen.org/#wsdl.porttype(Service1)"/>
+        </service>
+        <!-- Note that the property is fixed as "servicex" which causes this string
+             to appear in the output of the service, if invoked -->      
+        <property name="serviceName">servicex</property>
+    </component>
+
+</composite>


  was:
Index: ASM_12008/src/main/resources/TestComposite5.composite
===================================================================
--- ASM_12008/src/main/resources/TestComposite5.composite	(revision 372)
+++ ASM_12008/src/main/resources/TestComposite5.composite	(working copy)
@@ -1,33 +1,34 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- *
- * Copyright(C) OASIS(R) 2005,2009. All Rights Reserved.
- * OASIS trademark, IPR and other policies apply.    
- *   
--->
-<!-- 
-Copy of TestComposite5 with different contents offering 
-	1 service, with a remotable interface type=Service1 (other TestComposite5 has Service2)
-    0 references
--->
-<composite xmlns="http://docs.oasis-open.org/ns/opencsa/sca/200903"
-           targetNamespace="http://docs.oasis-open.org/ns/opencsa/scatests/2009032"
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ *
+ * Copyright(C) OASIS(R) 2005,2009. All Rights Reserved.
+ * OASIS trademark, IPR and other policies apply.    
+ *   
+-->
+<!-- 
+Copy of TestComposite5 with different contents offering 
+	1 service, with a remotable interface type=Service1 (other TestComposite5 has Service2)
+    0 references
+-->
+<composite xmlns="http://docs.oasis-open.org/ns/opencsa/sca/200903"
+           targetNamespace="http://docs.oasis-open.org/ns/opencsa/scatests/2009032"
+           xmlns:test="http://docs.oasis-open.org/ns/opencsa/scatests/200903"
            name="TestComposite5">
-           
-	<service name="Service1" promote="TestComposite5Component1/Service1">
-		<interface.wsdl interface="http://test.sca.oasisopen.org/#wsdl.porttype(Service1)"/>
-	</service>
-
-    <property name="serviceName" type="string"/>
- 
-    <component name="TestComposite5Component1">
-		<implementation.composite name="test:TestComposite5"/>
-        <service name="Service1">
-        	<interface.wsdl interface="http://test.sca.oasisopen.org/#wsdl.porttype(Service1)"/>
-        </service>
-        <!-- Note that the property is fixed as "servicex" which causes this string
-             to appear in the output of the service, if invoked -->      
-        <property name="serviceName">servicex</property>
-    </component>
-
-</composite>
+           
+	<service name="Service1" promote="TestComposite5Component1/Service1">
+		<interface.wsdl interface="http://test.sca.oasisopen.org/#wsdl.porttype(Service1)"/>
+	</service>
+
+    <property name="serviceName" type="string"/>
+ 
+    <component name="TestComposite5Component1">
+		<implementation.composite name="test:TestComposite5"/>
+        <service name="Service1">
+        	<interface.wsdl interface="http://test.sca.oasisopen.org/#wsdl.porttype(Service1)"/>
+        </service>
+        <!-- Note that the property is fixed as "servicex" which causes this string
+             to appear in the output of the service, if invoked -->      
+        <property name="serviceName">servicex</property>
+    </component>
+
+</composite>


        Summary: ASM_12008 fails due to undeclared XML Namespace prefix in TestComposite5.compsite  (was: Fixes required to make ASM_12008 work)

(Added a full description of the underlying problem)

> ASM_12008 fails due to undeclared XML Namespace prefix in TestComposite5.compsite
> ---------------------------------------------------------------------------------
>
>                 Key: TUSCANY-3360
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-3360
>             Project: Tuscany
>          Issue Type: Bug
>          Components: OASIS Compliance - OASIS
>    Affects Versions: Java-SCA-2.0
>            Reporter: Ramkumar Ramalingam
>             Fix For: Java-SCA-2.0
>
>
> ASM_12008_Testcase fails with an XML Schema validation error:
> 05-Nov-2009 10:21:27 org.apache.tuscany.sca.contribution.processor.ValidatingXMLStreamReader [] (SchemaError)
> SEVERE: XMLSchema validation error occured in: TestComposite5.composite ,line = 24, column = 3, Message = UndeclaredPrefix: Cannot resolve 'test:TestComposite5' as a QName: the prefix 'test' is not declared.
> This relates to TestComposite5.composite in contribution ASM_12008.  This artifact uses a prefix "test:" but its namespace declarations don't have a declaration for such a namespace.
> The required fix is to add a namespace declaration for "xmlns:test", referencing the main "test" namespace for composites:  
> Index: ASM_12008/src/main/resources/TestComposite5.composite
> ===================================================================
> --- ASM_12008/src/main/resources/TestComposite5.composite	(revision 372)
> +++ ASM_12008/src/main/resources/TestComposite5.composite	(working copy)
> @@ -1,33 +1,34 @@
> -<?xml version="1.0" encoding="UTF-8"?>
> -<!--
> - *
> - * Copyright(C) OASIS(R) 2005,2009. All Rights Reserved.
> - * OASIS trademark, IPR and other policies apply.    
> - *   
> --->
> -<!-- 
> -Copy of TestComposite5 with different contents offering 
> -	1 service, with a remotable interface type=Service1 (other TestComposite5 has Service2)
> -    0 references
> --->
> -<composite xmlns="http://docs.oasis-open.org/ns/opencsa/sca/200903"
> -           targetNamespace="http://docs.oasis-open.org/ns/opencsa/scatests/2009032"
> +<?xml version="1.0" encoding="UTF-8"?>
> +<!--
> + *
> + * Copyright(C) OASIS(R) 2005,2009. All Rights Reserved.
> + * OASIS trademark, IPR and other policies apply.    
> + *   
> +-->
> +<!-- 
> +Copy of TestComposite5 with different contents offering 
> +	1 service, with a remotable interface type=Service1 (other TestComposite5 has Service2)
> +    0 references
> +-->
> +<composite xmlns="http://docs.oasis-open.org/ns/opencsa/sca/200903"
> +           targetNamespace="http://docs.oasis-open.org/ns/opencsa/scatests/2009032"
> +           xmlns:test="http://docs.oasis-open.org/ns/opencsa/scatests/200903"
>             name="TestComposite5">
> -           
> -	<service name="Service1" promote="TestComposite5Component1/Service1">
> -		<interface.wsdl interface="http://test.sca.oasisopen.org/#wsdl.porttype(Service1)"/>
> -	</service>
> -
> -    <property name="serviceName" type="string"/>
> - 
> -    <component name="TestComposite5Component1">
> -		<implementation.composite name="test:TestComposite5"/>
> -        <service name="Service1">
> -        	<interface.wsdl interface="http://test.sca.oasisopen.org/#wsdl.porttype(Service1)"/>
> -        </service>
> -        <!-- Note that the property is fixed as "servicex" which causes this string
> -             to appear in the output of the service, if invoked -->      
> -        <property name="serviceName">servicex</property>
> -    </component>
> -
> -</composite>
> +           
> +	<service name="Service1" promote="TestComposite5Component1/Service1">
> +		<interface.wsdl interface="http://test.sca.oasisopen.org/#wsdl.porttype(Service1)"/>
> +	</service>
> +
> +    <property name="serviceName" type="string"/>
> + 
> +    <component name="TestComposite5Component1">
> +		<implementation.composite name="test:TestComposite5"/>
> +        <service name="Service1">
> +        	<interface.wsdl interface="http://test.sca.oasisopen.org/#wsdl.porttype(Service1)"/>
> +        </service>
> +        <!-- Note that the property is fixed as "servicex" which causes this string
> +             to appear in the output of the service, if invoked -->      
> +        <property name="serviceName">servicex</property>
> +    </component>
> +
> +</composite>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.