users@jaxb.java.net

Re: Having problems with xjc

From: Kirill Grouchnikov <kirillcool_at_yahoo.com>
Date: Thu, 14 Dec 2006 10:06:23 -0800 (PST)

Perhaps the .xsd file is not a valid schema file? Can you attach it too? Kirill ----- Original Message ---- From: Renee Crandal <rcrandal@us.ibm.com> To: users@jaxb.dev.java.net Sent: Thursday, December 14, 2006 8:49:16 AM Subject: Having problems with xjc I am only trying to generate objects from a schema at this point. I am attaching the build.xml that I am using and below is the log from attempt to run xjc. As you can see from the log, the xsd is being found to get the timestamp, but not for the compile. Using Eclipse 3.2 Apache Ant version 1.6.5 compiled on June 2 2005 Buildfile: C:\workspace\new_nbdl\acord_schema\build.xml parsing buildfile C:\workspace\new_nbdl\acord_schema\build.xml with URI = file:///C:/workspace/new_nbdl/acord_schema/build.xml Project base dir set to: C:\workspace\new_nbdl\acord_schema dropping C:\workspace\new_nbdl\acord_schema\classes from path as it doesn't exist dropping C:\workspace\new_nbdl\acord_schema\schemas from path as it doesn't exist Build sequence for target(s) `runxjc' is [runxjc] Complete build sequence is [runxjc, ] runxjc: [echo] Compiling the schema... [xjc] build id of XJC is 2.0.4-b01-fcs [xjc] Checking timestamp of C:\workspace\new_nbdl\acord_schema\TXLife2.15.00.xsd [xjc] Checking timestamp of C:\workspace\new_nbdl\acord_schema\binding.xjb [xjc] the last modified time of the inputs is 1166023692849 [xjc] the last modified time of the outputs is -9223372036854775808 [xjc] Compiling file:/C:/workspace/new_nbdl/acord_schema/TXLife2.15.00.xsd [xjc] [ERROR] schema_reference.4: Failed to read schema document 'file:/C:/workspace/new_nbdl/acord_schema/TXLife2.15.00.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not <xsd:schema>. [xjc] unknown location [xjc] failure in the XJC task. Use the Ant -verbose switch for more details BUILD FAILED C:\workspace\new_nbdl\acord_schema\build.xml:20: unable to parse the schema. Error messages should have been provided at com.sun.tools.xjc.XJC2Task._doXJC(XJC2Task.java:453) at com.sun.tools.xjc.XJC2Task.doXJC(XJC2Task.java:397) at com.sun.tools.xjc.XJC2Task.execute(XJC2Task.java:332) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275) at org.apache.tools.ant.Task.perform(Task.java:364) at org.apache.tools.ant.Target.execute(Target.java:341) at org.apache.tools.ant.Target.performTasks(Target.java:369) at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216) at org.apache.tools.ant.Project.executeTarget(Project.java:1185) at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40) at org.eclipse.ant.internal.ui.antsupport.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32) at org.apache.tools.ant.Project.executeTargets(Project.java:1068) at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:423) at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:137) Total time: 1 second --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@jaxb.dev.java.net For additional commands, e-mail: users-help@jaxb.dev.java.net ____________________________________________________________________________________ Cheap talk? Check out Yahoo! Messenger's low PC-to-Phone call rates. http://voice.yahoo.com