[
https://issues.apache.org/jira/browse/AXIS-2606?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Gary Kwok updated AXIS-2606:
----------------------------
Description:
The attached WSDL file can be perfectly generated to Java through AXIS 1.2.x.
WSDL2JAVA
However, when I try it at AXIS 1.3 or above, always got the following error:
Please see the attached file to simulate the problems.
More finding:
- If we remove all "restriction" from the schema (i.e. change to "extension"),
WSDL2Java works again!
******* Error reported from WSDL2Java ******
Parsing XML file: D:/SUNDAY_EAI_Demo/schema_prove/my_wsdl.wsdl
Generating src\schema\my\IdentifierCT.java
org.apache.axis.wsdl.toJava.DuplicateFileException: Duplicate file name:
src\schema\my\IdentifierCT.
java.
Hint: you may have mapped two namespaces with elements of the same name to the
same package name.
at org.apache.axis.wsdl.toJava.JavaWriter.generate(JavaWriter.java:110)
at
org.apache.axis.wsdl.toJava.JavaBeanWriter.generate(JavaBeanWriter.java:1406)
at
org.apache.axis.wsdl.toJava.JavaTypeWriter.generate(JavaTypeWriter.java:113)
at
org.apache.axis.wsdl.toJava.JavaGeneratorFactory$Writers.generate(JavaGeneratorFactory.ja
va:421)
at org.apache.axis.wsdl.gen.Parser.generateTypes(Parser.java:547)
at org.apache.axis.wsdl.gen.Parser.generate(Parser.java:432)
at org.apache.axis.wsdl.gen.Parser.access$000(Parser.java:45)
at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:362)
at java.lang.Thread.run(Thread.java:534)
was:
The WSDL is perfectly generate and compile through AXIS 1.2.x. WSDL2JAVA
However, when I try it at AXIS 1.3 or above, always got the following error:
Please see the attached file to simulate the problems.
More finding:
- If we remove all "restriction" from the schema (i.e. change to "extension"),
WSDL2Java works again!
******* Error reported from WSDL2Java ******
Parsing XML file: D:/SUNDAY_EAI_Demo/schema_prove/my_wsdl.wsdl
Generating src\schema\my\IdentifierCT.java
org.apache.axis.wsdl.toJava.DuplicateFileException: Duplicate file name:
src\schema\my\IdentifierCT.
java.
Hint: you may have mapped two namespaces with elements of the same name to the
same package name.
at org.apache.axis.wsdl.toJava.JavaWriter.generate(JavaWriter.java:110)
at
org.apache.axis.wsdl.toJava.JavaBeanWriter.generate(JavaBeanWriter.java:1406)
at
org.apache.axis.wsdl.toJava.JavaTypeWriter.generate(JavaTypeWriter.java:113)
at
org.apache.axis.wsdl.toJava.JavaGeneratorFactory$Writers.generate(JavaGeneratorFactory.ja
va:421)
at org.apache.axis.wsdl.gen.Parser.generateTypes(Parser.java:547)
at org.apache.axis.wsdl.gen.Parser.generate(Parser.java:432)
at org.apache.axis.wsdl.gen.Parser.access$000(Parser.java:45)
at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:362)
at java.lang.Thread.run(Thread.java:534)
> WSDL2Java DuplicateFileException for a very simple WSDL and XSD files
> ---------------------------------------------------------------------
>
> Key: AXIS-2606
> URL: https://issues.apache.org/jira/browse/AXIS-2606
> Project: Apache Axis
> Issue Type: Bug
> Affects Versions: current (nightly), 1.3, 1.4
> Environment: Tested in Sun JDK 1.4.x, 1.5.x
> Reporter: Gary Kwok
> Attachments: axis_schema_bug_prove.zip
>
>
> The attached WSDL file can be perfectly generated to Java through AXIS 1.2.x.
> WSDL2JAVA
> However, when I try it at AXIS 1.3 or above, always got the following error:
> Please see the attached file to simulate the problems.
> More finding:
> - If we remove all "restriction" from the schema (i.e. change to
> "extension"), WSDL2Java works again!
> ******* Error reported from WSDL2Java ******
> Parsing XML file: D:/SUNDAY_EAI_Demo/schema_prove/my_wsdl.wsdl
> Generating src\schema\my\IdentifierCT.java
> org.apache.axis.wsdl.toJava.DuplicateFileException: Duplicate file name:
> src\schema\my\IdentifierCT.
> java.
> Hint: you may have mapped two namespaces with elements of the same name to
> the same package name.
> at
> org.apache.axis.wsdl.toJava.JavaWriter.generate(JavaWriter.java:110)
> at
> org.apache.axis.wsdl.toJava.JavaBeanWriter.generate(JavaBeanWriter.java:1406)
> at
> org.apache.axis.wsdl.toJava.JavaTypeWriter.generate(JavaTypeWriter.java:113)
> at
> org.apache.axis.wsdl.toJava.JavaGeneratorFactory$Writers.generate(JavaGeneratorFactory.ja
> va:421)
> at org.apache.axis.wsdl.gen.Parser.generateTypes(Parser.java:547)
> at org.apache.axis.wsdl.gen.Parser.generate(Parser.java:432)
> at org.apache.axis.wsdl.gen.Parser.access$000(Parser.java:45)
> at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:362)
> at java.lang.Thread.run(Thread.java:534)
--
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]