You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Pierre Casenove (JIRA)" <ji...@apache.org> on 2007/08/01 08:54:52 UTC

[jira] Created: (AXIS2-3043) wsdl2java using jaxbri data binding fails

wsdl2java using jaxbri data binding fails
-----------------------------------------

                 Key: AXIS2-3043
                 URL: https://issues.apache.org/jira/browse/AXIS2-3043
             Project: Axis 2.0 (Axis2)
          Issue Type: Bug
          Components: databinding
    Affects Versions: nightly
         Environment: Axis2 1.3 Nightly; websphere6; eclipse 3.3
            Reporter: Pierre Casenove


When trying to generate the java code from the attached wsdl using jaxbri databinding, an Exception is returned:

 [java] Exception in thread "main" org.apache.axis2.wsdl.codegen.CodeGenerationException: org.apache.axis2.wsdl.codegen.CodeGenerationException: org.apache.axis2.wsdl.databinding.UnmatchedTypeException: No type was mapped to the name TEST_REQUETE with namespace http://www.almerys.com/services/FSAServiceTest/xsd 
    [java] at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:265) 
    [java] at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35) 
    [java] at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24) 
    [java] Caused by: org.apache.axis2.wsdl.codegen.CodeGenerationException: org.apache.axis2.wsdl.databinding.UnmatchedTypeException:No type was mapped to the name TEST_REQUETE with namespace http://www.almerys.com/services/FSAServiceTest/xsd 
    [java] at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.emitSkeleton(AxisServiceBasedMultiLanguageEmitter.java:1363 ) 
    [java] at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:247) 
    [java] ... 2 more 
    [java] Caused by: org.apache.axis2.wsdl.databinding.UnmatchedTypeException: No type was mapped to the name TEST_REQUETE with namespace http://www.almerys.com/services/FSAServiceTest/xsd 
    [java] at org.apache.axis2.wsdl.databinding.TypeMappingAdapter.getTypeMappingName(TypeMappingAdapter.java:82 ) 
    [java] at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.getInputParamElement(AxisServiceBasedMultiLanguageEmitter.java:2823 ) 
    [java] at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.getInputElement(AxisServiceBasedMultiLanguageEmitter.java:2623 ) 
    [java] at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.generateMethodElement(AxisServiceBasedMultiLanguageEmitter.java:2191 ) 
    [java] at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.loadOperations(AxisServiceBasedMultiLanguageEmitter.java:2117 ) 
    [java] at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.createDOMDocumentForSkeleton(AxisServiceBasedMultiLanguageEmitter.java:2033 ) 
    [java] at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.writeSkeleton(AxisServiceBasedMultiLanguageEmitter.java:1964 ) 
    [java] at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.emitSkeleton(AxisServiceBasedMultiLanguageEmitter.java:1320 ) 
    [java] ... 3 more 

Using the xjc.bat script provided in the offcial JAXB2.0.5 release, the classes are generated correctly.
Java code is also generated correctly with xmlbeans and adb databinding.

Ant task:
<target name="wsdl2java" depends="clean,prepare">
	<delete dir="output" />
	<java classname="org.apache.axis2.wsdl.WSDL2Java" fork="true">
		<classpath refid="axis.classpath" />
		<arg value="-d" />
		<arg value="jaxbri" />
		<arg value="-u" />
		<arg value="-uri" />
		<arg file="${dir.wsdl}/${uri.wsdl}" />
		<arg value="-ss" />
		<arg value="-wv" />
		<arg value="1.1" />
		<arg value="-g" />
		<arg value="-sd" />
		<arg value="-o" />
		<arg file="output" />
		<arg value="-p" />
		<arg value="${package.prefix}" />
	</java>
	<mkdir dir="output/resources/META-INF" />
	<move todir="output/resources/META-INF">
		<fileset dir="output/resources">
			<!-- axis2 web services definitions file -->
			<include name="services.xml" />
			<include name="*.wsdl" />
			<include name="*.xsd" />
		</fileset>
	</move>
</target>


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


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Resolved: (AXIS2-3043) wsdl2java using jaxbri data binding fails

Posted by "Amila Chinthaka Suriarachchi (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-3043?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Amila Chinthaka Suriarachchi resolved AXIS2-3043.
-------------------------------------------------

    Resolution: Fixed

applied the patch thanks upul.

> wsdl2java using jaxbri data binding fails
> -----------------------------------------
>
>                 Key: AXIS2-3043
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3043
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: databinding
>    Affects Versions: nightly
>         Environment: Axis2 1.3 Nightly; websphere6; eclipse 3.3
>            Reporter: Pierre Casenove
>            Assignee: Amila Chinthaka Suriarachchi
>         Attachments: AXIS2-3043.patch, faultywsdl.zip
>
>
> When trying to generate the java code from the attached wsdl using jaxbri databinding, an Exception is returned:
>  [java] Exception in thread "main" org.apache.axis2.wsdl.codegen.CodeGenerationException: org.apache.axis2.wsdl.codegen.CodeGenerationException: org.apache.axis2.wsdl.databinding.UnmatchedTypeException: No type was mapped to the name TEST_REQUETE with namespace http://www.almerys.com/services/FSAServiceTest/xsd 
>     [java] at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:265) 
>     [java] at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35) 
>     [java] at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24) 
>     [java] Caused by: org.apache.axis2.wsdl.codegen.CodeGenerationException: org.apache.axis2.wsdl.databinding.UnmatchedTypeException:No type was mapped to the name TEST_REQUETE with namespace http://www.almerys.com/services/FSAServiceTest/xsd 
>     [java] at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.emitSkeleton(AxisServiceBasedMultiLanguageEmitter.java:1363 ) 
>     [java] at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:247) 
>     [java] ... 2 more 
>     [java] Caused by: org.apache.axis2.wsdl.databinding.UnmatchedTypeException: No type was mapped to the name TEST_REQUETE with namespace http://www.almerys.com/services/FSAServiceTest/xsd 
>     [java] at org.apache.axis2.wsdl.databinding.TypeMappingAdapter.getTypeMappingName(TypeMappingAdapter.java:82 ) 
>     [java] at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.getInputParamElement(AxisServiceBasedMultiLanguageEmitter.java:2823 ) 
>     [java] at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.getInputElement(AxisServiceBasedMultiLanguageEmitter.java:2623 ) 
>     [java] at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.generateMethodElement(AxisServiceBasedMultiLanguageEmitter.java:2191 ) 
>     [java] at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.loadOperations(AxisServiceBasedMultiLanguageEmitter.java:2117 ) 
>     [java] at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.createDOMDocumentForSkeleton(AxisServiceBasedMultiLanguageEmitter.java:2033 ) 
>     [java] at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.writeSkeleton(AxisServiceBasedMultiLanguageEmitter.java:1964 ) 
>     [java] at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.emitSkeleton(AxisServiceBasedMultiLanguageEmitter.java:1320 ) 
>     [java] ... 3 more 
> Using the xjc.bat script provided in the offcial JAXB2.0.5 release, the classes are generated correctly.
> Java code is also generated correctly with xmlbeans and adb databinding.
> Ant task:
> <target name="wsdl2java" depends="clean,prepare">
> 	<delete dir="output" />
> 	<java classname="org.apache.axis2.wsdl.WSDL2Java" fork="true">
> 		<classpath refid="axis.classpath" />
> 		<arg value="-d" />
> 		<arg value="jaxbri" />
> 		<arg value="-u" />
> 		<arg value="-uri" />
> 		<arg file="${dir.wsdl}/${uri.wsdl}" />
> 		<arg value="-ss" />
> 		<arg value="-wv" />
> 		<arg value="1.1" />
> 		<arg value="-g" />
> 		<arg value="-sd" />
> 		<arg value="-o" />
> 		<arg file="output" />
> 		<arg value="-p" />
> 		<arg value="${package.prefix}" />
> 	</java>
> 	<mkdir dir="output/resources/META-INF" />
> 	<move todir="output/resources/META-INF">
> 		<fileset dir="output/resources">
> 			<!-- axis2 web services definitions file -->
> 			<include name="services.xml" />
> 			<include name="*.wsdl" />
> 			<include name="*.xsd" />
> 		</fileset>
> 	</move>
> </target>

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


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Updated: (AXIS2-3043) wsdl2java using jaxbri data binding fails

Posted by "Upul Godage (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-3043?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Upul Godage updated AXIS2-3043:
-------------------------------

    Attachment: AXIS2-3043.patch

Using InputSource method instead of Element method of SchemaCompiler.parseSchema() fixes the problem of compiler not seeing the imported schemas.

Patch attached.

> wsdl2java using jaxbri data binding fails
> -----------------------------------------
>
>                 Key: AXIS2-3043
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3043
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: databinding
>    Affects Versions: nightly
>         Environment: Axis2 1.3 Nightly; websphere6; eclipse 3.3
>            Reporter: Pierre Casenove
>            Assignee: Amila Chinthaka Suriarachchi
>         Attachments: AXIS2-3043.patch, faultywsdl.zip
>
>
> When trying to generate the java code from the attached wsdl using jaxbri databinding, an Exception is returned:
>  [java] Exception in thread "main" org.apache.axis2.wsdl.codegen.CodeGenerationException: org.apache.axis2.wsdl.codegen.CodeGenerationException: org.apache.axis2.wsdl.databinding.UnmatchedTypeException: No type was mapped to the name TEST_REQUETE with namespace http://www.almerys.com/services/FSAServiceTest/xsd 
>     [java] at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:265) 
>     [java] at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35) 
>     [java] at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24) 
>     [java] Caused by: org.apache.axis2.wsdl.codegen.CodeGenerationException: org.apache.axis2.wsdl.databinding.UnmatchedTypeException:No type was mapped to the name TEST_REQUETE with namespace http://www.almerys.com/services/FSAServiceTest/xsd 
>     [java] at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.emitSkeleton(AxisServiceBasedMultiLanguageEmitter.java:1363 ) 
>     [java] at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:247) 
>     [java] ... 2 more 
>     [java] Caused by: org.apache.axis2.wsdl.databinding.UnmatchedTypeException: No type was mapped to the name TEST_REQUETE with namespace http://www.almerys.com/services/FSAServiceTest/xsd 
>     [java] at org.apache.axis2.wsdl.databinding.TypeMappingAdapter.getTypeMappingName(TypeMappingAdapter.java:82 ) 
>     [java] at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.getInputParamElement(AxisServiceBasedMultiLanguageEmitter.java:2823 ) 
>     [java] at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.getInputElement(AxisServiceBasedMultiLanguageEmitter.java:2623 ) 
>     [java] at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.generateMethodElement(AxisServiceBasedMultiLanguageEmitter.java:2191 ) 
>     [java] at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.loadOperations(AxisServiceBasedMultiLanguageEmitter.java:2117 ) 
>     [java] at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.createDOMDocumentForSkeleton(AxisServiceBasedMultiLanguageEmitter.java:2033 ) 
>     [java] at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.writeSkeleton(AxisServiceBasedMultiLanguageEmitter.java:1964 ) 
>     [java] at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.emitSkeleton(AxisServiceBasedMultiLanguageEmitter.java:1320 ) 
>     [java] ... 3 more 
> Using the xjc.bat script provided in the offcial JAXB2.0.5 release, the classes are generated correctly.
> Java code is also generated correctly with xmlbeans and adb databinding.
> Ant task:
> <target name="wsdl2java" depends="clean,prepare">
> 	<delete dir="output" />
> 	<java classname="org.apache.axis2.wsdl.WSDL2Java" fork="true">
> 		<classpath refid="axis.classpath" />
> 		<arg value="-d" />
> 		<arg value="jaxbri" />
> 		<arg value="-u" />
> 		<arg value="-uri" />
> 		<arg file="${dir.wsdl}/${uri.wsdl}" />
> 		<arg value="-ss" />
> 		<arg value="-wv" />
> 		<arg value="1.1" />
> 		<arg value="-g" />
> 		<arg value="-sd" />
> 		<arg value="-o" />
> 		<arg file="output" />
> 		<arg value="-p" />
> 		<arg value="${package.prefix}" />
> 	</java>
> 	<mkdir dir="output/resources/META-INF" />
> 	<move todir="output/resources/META-INF">
> 		<fileset dir="output/resources">
> 			<!-- axis2 web services definitions file -->
> 			<include name="services.xml" />
> 			<include name="*.wsdl" />
> 			<include name="*.xsd" />
> 		</fileset>
> 	</move>
> </target>

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


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Closed: (AXIS2-3043) wsdl2java using jaxbri data binding fails

Posted by "Pierre Casenove (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-3043?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Pierre Casenove closed AXIS2-3043.
----------------------------------


Test OK using Axis2-1.3 RC3.
Code is correctly generated.

> wsdl2java using jaxbri data binding fails
> -----------------------------------------
>
>                 Key: AXIS2-3043
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3043
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: databinding
>    Affects Versions: nightly
>         Environment: Axis2 1.3 Nightly; websphere6; eclipse 3.3
>            Reporter: Pierre Casenove
>            Assignee: Amila Chinthaka Suriarachchi
>         Attachments: AXIS2-3043.patch, faultywsdl.zip
>
>
> When trying to generate the java code from the attached wsdl using jaxbri databinding, an Exception is returned:
>  [java] Exception in thread "main" org.apache.axis2.wsdl.codegen.CodeGenerationException: org.apache.axis2.wsdl.codegen.CodeGenerationException: org.apache.axis2.wsdl.databinding.UnmatchedTypeException: No type was mapped to the name TEST_REQUETE with namespace http://www.almerys.com/services/FSAServiceTest/xsd 
>     [java] at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:265) 
>     [java] at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35) 
>     [java] at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24) 
>     [java] Caused by: org.apache.axis2.wsdl.codegen.CodeGenerationException: org.apache.axis2.wsdl.databinding.UnmatchedTypeException:No type was mapped to the name TEST_REQUETE with namespace http://www.almerys.com/services/FSAServiceTest/xsd 
>     [java] at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.emitSkeleton(AxisServiceBasedMultiLanguageEmitter.java:1363 ) 
>     [java] at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:247) 
>     [java] ... 2 more 
>     [java] Caused by: org.apache.axis2.wsdl.databinding.UnmatchedTypeException: No type was mapped to the name TEST_REQUETE with namespace http://www.almerys.com/services/FSAServiceTest/xsd 
>     [java] at org.apache.axis2.wsdl.databinding.TypeMappingAdapter.getTypeMappingName(TypeMappingAdapter.java:82 ) 
>     [java] at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.getInputParamElement(AxisServiceBasedMultiLanguageEmitter.java:2823 ) 
>     [java] at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.getInputElement(AxisServiceBasedMultiLanguageEmitter.java:2623 ) 
>     [java] at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.generateMethodElement(AxisServiceBasedMultiLanguageEmitter.java:2191 ) 
>     [java] at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.loadOperations(AxisServiceBasedMultiLanguageEmitter.java:2117 ) 
>     [java] at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.createDOMDocumentForSkeleton(AxisServiceBasedMultiLanguageEmitter.java:2033 ) 
>     [java] at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.writeSkeleton(AxisServiceBasedMultiLanguageEmitter.java:1964 ) 
>     [java] at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.emitSkeleton(AxisServiceBasedMultiLanguageEmitter.java:1320 ) 
>     [java] ... 3 more 
> Using the xjc.bat script provided in the offcial JAXB2.0.5 release, the classes are generated correctly.
> Java code is also generated correctly with xmlbeans and adb databinding.
> Ant task:
> <target name="wsdl2java" depends="clean,prepare">
> 	<delete dir="output" />
> 	<java classname="org.apache.axis2.wsdl.WSDL2Java" fork="true">
> 		<classpath refid="axis.classpath" />
> 		<arg value="-d" />
> 		<arg value="jaxbri" />
> 		<arg value="-u" />
> 		<arg value="-uri" />
> 		<arg file="${dir.wsdl}/${uri.wsdl}" />
> 		<arg value="-ss" />
> 		<arg value="-wv" />
> 		<arg value="1.1" />
> 		<arg value="-g" />
> 		<arg value="-sd" />
> 		<arg value="-o" />
> 		<arg file="output" />
> 		<arg value="-p" />
> 		<arg value="${package.prefix}" />
> 	</java>
> 	<mkdir dir="output/resources/META-INF" />
> 	<move todir="output/resources/META-INF">
> 		<fileset dir="output/resources">
> 			<!-- axis2 web services definitions file -->
> 			<include name="services.xml" />
> 			<include name="*.wsdl" />
> 			<include name="*.xsd" />
> 		</fileset>
> 	</move>
> </target>

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


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Updated: (AXIS2-3043) wsdl2java using jaxbri data binding fails

Posted by "Pierre Casenove (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-3043?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Pierre Casenove updated AXIS2-3043:
-----------------------------------

    Attachment: faultywsdl.zip

Attaching the faulty wsdl. The issue seems to be linked with the xsd import as the code is correctly generated if I don't do any imports.

> wsdl2java using jaxbri data binding fails
> -----------------------------------------
>
>                 Key: AXIS2-3043
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3043
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: databinding
>    Affects Versions: nightly
>         Environment: Axis2 1.3 Nightly; websphere6; eclipse 3.3
>            Reporter: Pierre Casenove
>         Attachments: faultywsdl.zip
>
>
> When trying to generate the java code from the attached wsdl using jaxbri databinding, an Exception is returned:
>  [java] Exception in thread "main" org.apache.axis2.wsdl.codegen.CodeGenerationException: org.apache.axis2.wsdl.codegen.CodeGenerationException: org.apache.axis2.wsdl.databinding.UnmatchedTypeException: No type was mapped to the name TEST_REQUETE with namespace http://www.almerys.com/services/FSAServiceTest/xsd 
>     [java] at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:265) 
>     [java] at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35) 
>     [java] at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24) 
>     [java] Caused by: org.apache.axis2.wsdl.codegen.CodeGenerationException: org.apache.axis2.wsdl.databinding.UnmatchedTypeException:No type was mapped to the name TEST_REQUETE with namespace http://www.almerys.com/services/FSAServiceTest/xsd 
>     [java] at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.emitSkeleton(AxisServiceBasedMultiLanguageEmitter.java:1363 ) 
>     [java] at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:247) 
>     [java] ... 2 more 
>     [java] Caused by: org.apache.axis2.wsdl.databinding.UnmatchedTypeException: No type was mapped to the name TEST_REQUETE with namespace http://www.almerys.com/services/FSAServiceTest/xsd 
>     [java] at org.apache.axis2.wsdl.databinding.TypeMappingAdapter.getTypeMappingName(TypeMappingAdapter.java:82 ) 
>     [java] at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.getInputParamElement(AxisServiceBasedMultiLanguageEmitter.java:2823 ) 
>     [java] at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.getInputElement(AxisServiceBasedMultiLanguageEmitter.java:2623 ) 
>     [java] at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.generateMethodElement(AxisServiceBasedMultiLanguageEmitter.java:2191 ) 
>     [java] at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.loadOperations(AxisServiceBasedMultiLanguageEmitter.java:2117 ) 
>     [java] at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.createDOMDocumentForSkeleton(AxisServiceBasedMultiLanguageEmitter.java:2033 ) 
>     [java] at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.writeSkeleton(AxisServiceBasedMultiLanguageEmitter.java:1964 ) 
>     [java] at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.emitSkeleton(AxisServiceBasedMultiLanguageEmitter.java:1320 ) 
>     [java] ... 3 more 
> Using the xjc.bat script provided in the offcial JAXB2.0.5 release, the classes are generated correctly.
> Java code is also generated correctly with xmlbeans and adb databinding.
> Ant task:
> <target name="wsdl2java" depends="clean,prepare">
> 	<delete dir="output" />
> 	<java classname="org.apache.axis2.wsdl.WSDL2Java" fork="true">
> 		<classpath refid="axis.classpath" />
> 		<arg value="-d" />
> 		<arg value="jaxbri" />
> 		<arg value="-u" />
> 		<arg value="-uri" />
> 		<arg file="${dir.wsdl}/${uri.wsdl}" />
> 		<arg value="-ss" />
> 		<arg value="-wv" />
> 		<arg value="1.1" />
> 		<arg value="-g" />
> 		<arg value="-sd" />
> 		<arg value="-o" />
> 		<arg file="output" />
> 		<arg value="-p" />
> 		<arg value="${package.prefix}" />
> 	</java>
> 	<mkdir dir="output/resources/META-INF" />
> 	<move todir="output/resources/META-INF">
> 		<fileset dir="output/resources">
> 			<!-- axis2 web services definitions file -->
> 			<include name="services.xml" />
> 			<include name="*.wsdl" />
> 			<include name="*.xsd" />
> 		</fileset>
> 	</move>
> </target>

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


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Assigned: (AXIS2-3043) wsdl2java using jaxbri data binding fails

Posted by "Deepal Jayasinghe (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-3043?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Deepal Jayasinghe reassigned AXIS2-3043:
----------------------------------------

    Assignee: Amila Chinthaka Suriarachchi

> wsdl2java using jaxbri data binding fails
> -----------------------------------------
>
>                 Key: AXIS2-3043
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3043
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: databinding
>    Affects Versions: nightly
>         Environment: Axis2 1.3 Nightly; websphere6; eclipse 3.3
>            Reporter: Pierre Casenove
>            Assignee: Amila Chinthaka Suriarachchi
>         Attachments: faultywsdl.zip
>
>
> When trying to generate the java code from the attached wsdl using jaxbri databinding, an Exception is returned:
>  [java] Exception in thread "main" org.apache.axis2.wsdl.codegen.CodeGenerationException: org.apache.axis2.wsdl.codegen.CodeGenerationException: org.apache.axis2.wsdl.databinding.UnmatchedTypeException: No type was mapped to the name TEST_REQUETE with namespace http://www.almerys.com/services/FSAServiceTest/xsd 
>     [java] at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:265) 
>     [java] at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35) 
>     [java] at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24) 
>     [java] Caused by: org.apache.axis2.wsdl.codegen.CodeGenerationException: org.apache.axis2.wsdl.databinding.UnmatchedTypeException:No type was mapped to the name TEST_REQUETE with namespace http://www.almerys.com/services/FSAServiceTest/xsd 
>     [java] at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.emitSkeleton(AxisServiceBasedMultiLanguageEmitter.java:1363 ) 
>     [java] at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:247) 
>     [java] ... 2 more 
>     [java] Caused by: org.apache.axis2.wsdl.databinding.UnmatchedTypeException: No type was mapped to the name TEST_REQUETE with namespace http://www.almerys.com/services/FSAServiceTest/xsd 
>     [java] at org.apache.axis2.wsdl.databinding.TypeMappingAdapter.getTypeMappingName(TypeMappingAdapter.java:82 ) 
>     [java] at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.getInputParamElement(AxisServiceBasedMultiLanguageEmitter.java:2823 ) 
>     [java] at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.getInputElement(AxisServiceBasedMultiLanguageEmitter.java:2623 ) 
>     [java] at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.generateMethodElement(AxisServiceBasedMultiLanguageEmitter.java:2191 ) 
>     [java] at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.loadOperations(AxisServiceBasedMultiLanguageEmitter.java:2117 ) 
>     [java] at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.createDOMDocumentForSkeleton(AxisServiceBasedMultiLanguageEmitter.java:2033 ) 
>     [java] at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.writeSkeleton(AxisServiceBasedMultiLanguageEmitter.java:1964 ) 
>     [java] at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.emitSkeleton(AxisServiceBasedMultiLanguageEmitter.java:1320 ) 
>     [java] ... 3 more 
> Using the xjc.bat script provided in the offcial JAXB2.0.5 release, the classes are generated correctly.
> Java code is also generated correctly with xmlbeans and adb databinding.
> Ant task:
> <target name="wsdl2java" depends="clean,prepare">
> 	<delete dir="output" />
> 	<java classname="org.apache.axis2.wsdl.WSDL2Java" fork="true">
> 		<classpath refid="axis.classpath" />
> 		<arg value="-d" />
> 		<arg value="jaxbri" />
> 		<arg value="-u" />
> 		<arg value="-uri" />
> 		<arg file="${dir.wsdl}/${uri.wsdl}" />
> 		<arg value="-ss" />
> 		<arg value="-wv" />
> 		<arg value="1.1" />
> 		<arg value="-g" />
> 		<arg value="-sd" />
> 		<arg value="-o" />
> 		<arg file="output" />
> 		<arg value="-p" />
> 		<arg value="${package.prefix}" />
> 	</java>
> 	<mkdir dir="output/resources/META-INF" />
> 	<move todir="output/resources/META-INF">
> 		<fileset dir="output/resources">
> 			<!-- axis2 web services definitions file -->
> 			<include name="services.xml" />
> 			<include name="*.wsdl" />
> 			<include name="*.xsd" />
> 		</fileset>
> 	</move>
> </target>

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


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Commented: (AXIS2-3043) wsdl2java using jaxbri data binding fails

Posted by "Pierre Casenove (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-3043?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12517473 ] 

Pierre Casenove commented on AXIS2-3043:
----------------------------------------

Thanks for the patch.
Will it be included in the 1.3 branch nightly?
I prefer getting the nightly builds rather than compiling them myself.

> wsdl2java using jaxbri data binding fails
> -----------------------------------------
>
>                 Key: AXIS2-3043
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3043
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: databinding
>    Affects Versions: nightly
>         Environment: Axis2 1.3 Nightly; websphere6; eclipse 3.3
>            Reporter: Pierre Casenove
>            Assignee: Amila Chinthaka Suriarachchi
>         Attachments: AXIS2-3043.patch, faultywsdl.zip
>
>
> When trying to generate the java code from the attached wsdl using jaxbri databinding, an Exception is returned:
>  [java] Exception in thread "main" org.apache.axis2.wsdl.codegen.CodeGenerationException: org.apache.axis2.wsdl.codegen.CodeGenerationException: org.apache.axis2.wsdl.databinding.UnmatchedTypeException: No type was mapped to the name TEST_REQUETE with namespace http://www.almerys.com/services/FSAServiceTest/xsd 
>     [java] at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:265) 
>     [java] at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35) 
>     [java] at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24) 
>     [java] Caused by: org.apache.axis2.wsdl.codegen.CodeGenerationException: org.apache.axis2.wsdl.databinding.UnmatchedTypeException:No type was mapped to the name TEST_REQUETE with namespace http://www.almerys.com/services/FSAServiceTest/xsd 
>     [java] at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.emitSkeleton(AxisServiceBasedMultiLanguageEmitter.java:1363 ) 
>     [java] at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:247) 
>     [java] ... 2 more 
>     [java] Caused by: org.apache.axis2.wsdl.databinding.UnmatchedTypeException: No type was mapped to the name TEST_REQUETE with namespace http://www.almerys.com/services/FSAServiceTest/xsd 
>     [java] at org.apache.axis2.wsdl.databinding.TypeMappingAdapter.getTypeMappingName(TypeMappingAdapter.java:82 ) 
>     [java] at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.getInputParamElement(AxisServiceBasedMultiLanguageEmitter.java:2823 ) 
>     [java] at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.getInputElement(AxisServiceBasedMultiLanguageEmitter.java:2623 ) 
>     [java] at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.generateMethodElement(AxisServiceBasedMultiLanguageEmitter.java:2191 ) 
>     [java] at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.loadOperations(AxisServiceBasedMultiLanguageEmitter.java:2117 ) 
>     [java] at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.createDOMDocumentForSkeleton(AxisServiceBasedMultiLanguageEmitter.java:2033 ) 
>     [java] at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.writeSkeleton(AxisServiceBasedMultiLanguageEmitter.java:1964 ) 
>     [java] at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.emitSkeleton(AxisServiceBasedMultiLanguageEmitter.java:1320 ) 
>     [java] ... 3 more 
> Using the xjc.bat script provided in the offcial JAXB2.0.5 release, the classes are generated correctly.
> Java code is also generated correctly with xmlbeans and adb databinding.
> Ant task:
> <target name="wsdl2java" depends="clean,prepare">
> 	<delete dir="output" />
> 	<java classname="org.apache.axis2.wsdl.WSDL2Java" fork="true">
> 		<classpath refid="axis.classpath" />
> 		<arg value="-d" />
> 		<arg value="jaxbri" />
> 		<arg value="-u" />
> 		<arg value="-uri" />
> 		<arg file="${dir.wsdl}/${uri.wsdl}" />
> 		<arg value="-ss" />
> 		<arg value="-wv" />
> 		<arg value="1.1" />
> 		<arg value="-g" />
> 		<arg value="-sd" />
> 		<arg value="-o" />
> 		<arg file="output" />
> 		<arg value="-p" />
> 		<arg value="${package.prefix}" />
> 	</java>
> 	<mkdir dir="output/resources/META-INF" />
> 	<move todir="output/resources/META-INF">
> 		<fileset dir="output/resources">
> 			<!-- axis2 web services definitions file -->
> 			<include name="services.xml" />
> 			<include name="*.wsdl" />
> 			<include name="*.xsd" />
> 		</fileset>
> 	</move>
> </target>

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


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org