axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vijay Phadke (JIRA)" <j...@apache.org>
Subject [jira] Created: (AXIS2-841) WSDL2Java in ant task does not compile wsdl in release 1.0 but compiled correctly in releases 0.94/0.95
Date Fri, 23 Jun 2006 14:21:29 GMT
WSDL2Java in ant task does not compile wsdl in release 1.0 but compiled correctly in releases
0.94/0.95
-------------------------------------------------------------------------------------------------------

         Key: AXIS2-841
         URL: http://issues.apache.org/jira/browse/AXIS2-841
     Project: Apache Axis 2.0 (Axis2)
        Type: Bug

  Components: wsdl  
    Versions: 1.0    
 Environment: Windows XP SP2,  JDK1.5_06
    Reporter: Vijay Phadke


org.apache.axis2.wsdl.WSDL2Java when used in ant task does not compile wsdl in release 1.0
but compiled properly in releases 0.94/0.95.

Steps to reproduce :
1. wsdl file to test - ${axis.home}/samples/wsdl/Axis2SampleDocLit.wsdl
2. ant traget -
     <target name="wsdlcompile">	
		<java classname="org.apache.axis2.wsdl.WSDL2Java" fork="true">
		  <classpath refid="axis.lib.classpath"/> 
		  <arg value="-uri"/>
		  <arg file="${axis.home}/samples/wsdl/Axis2SampleDocLit.wsdl"/>
		  <arg value="-ss"/>
		  <arg value="-sd"/>
		  <arg value="-o"/>
		  <arg file="${axis.home}/samples/wsdl/work"/>
		  <arg value="-d"/>
		  <arg value="xmlbeans"/>
		</java>
     </target>	
     axis.lib.classpath has all jars under ${axis.home}/lib dir
3. Execute ant target

The same ant target compiles under releases 0.94/0.95 but fails under release 1.0
I have all these releases (0.94/0.95/1.0) on my machine and I tested as per above under all
releases at the same time.
The ant target fails for release 1.0 but successfully compiles for 0.94/0.95.
The exception trace for the case under release 1.0 is as follows -

Exception in thread "main" org.apache.axis2.wsdl.codegen.CodeGenerationException: java.lang.RuntimeException:
java.lang.reflect.InvocationTargetException
    at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:185)
    at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)
    at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21)
Caused by: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
    at org.apache.axis2.wsdl.codegen.extension.XMLBeansExtension.engage(XMLBeansExtension.java:93)
    at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:140)
    ... 2 more
Caused by: java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.apache.axis2.wsdl.codegen.extension.XMLBeansExtension.engage(XMLBeansExtension.java:83)
    ... 3 more
Caused by: java.lang.RuntimeException: org.apache.xmlbeans.XmlException: error: Use of undefined
namespace prefix: xs
    at org.apache.axis2.xmlbeans.CodeGenerationUtility.processSchemas(CodeGenerationUtility.java:192)
    ... 8 more
Caused by: org.apache.xmlbeans.XmlException: error: Use of undefined namespace prefix: xs
    at org.apache.xmlbeans.impl.store.Locale$SaxLoader.load(Locale.java:3455)
    at org.apache.xmlbeans.impl.store.Locale.parse(Locale.java:706)
    at org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:690)
    at org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:677)
    at org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase.parse(SchemaTypeLoaderBase.java:208)
    at org.apache.xmlbeans.XmlObject$Factory.parse(XmlObject.java:632)
    at org.apache.axis2.xmlbeans.CodeGenerationUtility.processSchemas(CodeGenerationUtility.java:136)
    ... 8 more

This needs to be fixed else different script files for compiling wsdls will have to be written
for different environements (one for windows, one for unix etc) and seperately executed which
is awkward.

-- 
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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


Mime
View raw message