| Summary: | XML Schema from Java-Class is tried to be exported to a wrong (not existent) path | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [WebTools] Dali JPA Tools | Reporter: | folkyvolk | ||||
| Component: | JAXB | Assignee: | Tran Le <tranle1> | ||||
| Status: | RESOLVED FIXED | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | neil.hauge | ||||
| Version: | unspecified | Flags: | neil.hauge:
review+
|
||||
| Target Milestone: | 3.0.1 | ||||||
| Hardware: | PC | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
folkyvolk
What is the JAXB project platform, Generic or EclipseLink? Also can you attach the exception stack trace. Thanks. Plattform is generic. This is the console output: loading... my.class.path generating schema... Schema /home/myprojectname/NewXMLSchema1111.xsd generated14.07.2011 12:33:31 com.sun.xml.bind.v2.schemagen.XmlSchemaGenerator$Namespace writeTo INFO: java.io.FileNotFoundException: /home/myprojectname/NewXMLSchema1111.xsd (No such file or directory) com.sun.xml.txw2.TxwException: java.io.FileNotFoundException: /home/myprojectname/NewXMLSchema1111.xsd (No such file or directory) at com.sun.xml.txw2.output.StreamSerializer.<init>(StreamSerializer.java:76) at com.sun.xml.txw2.output.ResultFactory.createSerializer(ResultFactory.java:55) at com.sun.xml.bind.v2.schemagen.XmlSchemaGenerator$Namespace.writeTo(XmlSchemaGenerator.java:578) at com.sun.xml.bind.v2.schemagen.XmlSchemaGenerator$Namespace.access$700(XmlSchemaGenerator.java:474) at com.sun.xml.bind.v2.schemagen.XmlSchemaGenerator.write(XmlSchemaGenerator.java:456) at com.sun.xml.bind.v2.runtime.JAXBContextImpl.generateSchema(JAXBContextImpl.java:788) at org.eclipse.jpt.jaxb.core.schemagen.Main.generateSchema(Main.java:111) at org.eclipse.jpt.jaxb.core.schemagen.Main.generate(Main.java:80) at org.eclipse.jpt.jaxb.core.schemagen.Main.execute(Main.java:62) at org.eclipse.jpt.jaxb.core.schemagen.Main.main(Main.java:47) Caused by: java.io.FileNotFoundException: /home/myprojectname/NewXMLSchema1111.xsd (No such file or directory) at java.io.FileOutputStream.open(Native Method) at java.io.FileOutputStream.<init>(FileOutputStream.java:194) at java.io.FileOutputStream.<init>(FileOutputStream.java:84) at com.sun.xml.txw2.output.StreamSerializer.<init>(StreamSerializer.java:72) ... 9 more java.io.IOException: java.io.FileNotFoundException: /home/myprojectname/NewXMLSchema1111.xsd (No such file or directory) at com.sun.xml.bind.v2.schemagen.XmlSchemaGenerator$Namespace.writeTo(XmlSchemaGenerator.java:679) at com.sun.xml.bind.v2.schemagen.XmlSchemaGenerator$Namespace.access$700(XmlSchemaGenerator.java:474) at com.sun.xml.bind.v2.schemagen.XmlSchemaGenerator.write(XmlSchemaGenerator.java:456) at com.sun.xml.bind.v2.runtime.JAXBContextImpl.generateSchema(JAXBContextImpl.java:788) at org.eclipse.jpt.jaxb.core.schemagen.Main.generateSchema(Main.java:111) at org.eclipse.jpt.jaxb.core.schemagen.Main.generate(Main.java:80) at org.eclipse.jpt.jaxb.core.schemagen.Main.execute(Main.java:62) at org.eclipse.jpt.jaxb.core.schemagen.Main.main(Main.java:47) Also interesting the message "Schema /home/myprojectname/NewXMLSchema1111.xsd generated" although it is not generated, because that directory does not exist. Created attachment 200131 [details]
Proposed patch for 3.0.1
(In reply to comment #3) > Created attachment 200131 [details] > Proposed patch for 3.0.1 Did you have a chance to test this change on Windows? (In reply to comment #4) > Did you have a chance to test this change on Windows? Yes it was tested on Windows. Only 1 minor thing to mention...in NewSchemaFileWizardPage.getFileRelativePath() there is a redundant call to getProject(). Other than that, looks good. Applied to 3.0.1 stream and to head. |