[ https://issues.apache.org/jira/browse/AXIS-2606?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andreas Veithen updated AXIS-2606: ---------------------------------- Labels: DuplicateFileException (was: ) > WSDL2Java DuplicateFileException for a very simple WSDL and XSD files > --------------------------------------------------------------------- > > Key: AXIS-2606 > URL: https://issues.apache.org/jira/browse/AXIS-2606 > Project: Axis > Issue Type: Bug > Affects Versions: 1.3, 1.4 > Environment: Tested in Sun JDK 1.4.x, 1.5.x > Reporter: Gary Kwok > Labels: DuplicateFileException > 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, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscr...@axis.apache.org For additional commands, e-mail: java-dev-h...@axis.apache.org