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 "Gary Kwok (JIRA)" <ax...@ws.apache.org> on 2007/01/08 11:21:27 UTC
[jira] Created: (AXIS-2606) WSDL2Java DuplicateFileException for a
very simple WSDL and XSD files
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
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:
Schema to simulate the bugs: http://221.124.37.104/axis_schema_bug_prove.zip
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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org
[jira] Updated: (AXIS-2606) WSDL2Java DuplicateFileException for a
very simple WSDL and XSD files
Posted by "Gary Kwok (JIRA)" <ax...@ws.apache.org>.
[ https://issues.apache.org/jira/browse/AXIS-2606?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Gary Kwok updated AXIS-2606:
----------------------------
Description:
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)
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:
Schema to simulate the bugs: http://221.124.37.104/axis_schema_bug_prove.zip
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 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)
--
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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org
[jira] Updated: (AXIS-2606) WSDL2Java DuplicateFileException for a
very simple WSDL and XSD files
Posted by "Gary Kwok (JIRA)" <ax...@ws.apache.org>.
[ 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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org
[jira] Updated: (AXIS-2606) WSDL2Java DuplicateFileException for a
very simple WSDL and XSD files
Posted by "Gary Kwok (JIRA)" <ax...@ws.apache.org>.
[ https://issues.apache.org/jira/browse/AXIS-2606?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Gary Kwok updated AXIS-2606:
----------------------------
Attachment: axis_schema_bug_prove.zip
> 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 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:
> Schema to simulate the bugs: http://221.124.37.104/axis_schema_bug_prove.zip
> 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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org