axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pierre Casenove (JIRA)" <>
Subject [jira] Created: (AXIS2-3043) wsdl2java using jaxbri data binding fails
Date Wed, 01 Aug 2007 06:54:52 GMT
wsdl2java using jaxbri data binding fails

                 Key: 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

    [java] at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(

    [java] at org.apache.axis2.wsdl.WSDL2Code.main( 
    [java] at org.apache.axis2.wsdl.WSDL2Java.main( 
    [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

    [java] at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.emitSkeleton(
    [java] at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(

    [java] ... 2 more 
    [java] Caused by: org.apache.axis2.wsdl.databinding.UnmatchedTypeException: No type was
mapped to the name TEST_REQUETE with namespace

    [java] at org.apache.axis2.wsdl.databinding.TypeMappingAdapter.getTypeMappingName(
    [java] at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.getInputParamElement(
    [java] at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.getInputElement(
    [java] at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.generateMethodElement(
    [java] at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.loadOperations(
    [java] at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.createDOMDocumentForSkeleton(
    [java] at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.writeSkeleton(
    [java] at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.emitSkeleton(
    [java] ... 3 more 

Using the xjc.bat script provided in the offcial JAXB2.0.5 release, the classes are generated
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}" />
	<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" />

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:
For additional commands, e-mail:

View raw message