axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gary Kwok (JIRA)" <axis-...@ws.apache.org>
Subject [jira] Updated: (AXIS-2606) WSDL2Java DuplicateFileException for a very simple WSDL and XSD files
Date Tue, 09 Jan 2007 02:09:27 GMT

     [ 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


Mime
View raw message