You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@xmlbeans.apache.org by Javier Ramos <ra...@parsec.es> on 2003/11/07 13:07:49 UTC

Newbie: Problem using scomp

Hi!

    After evaluating some JAXB implementations, I got to know the xmlbeans project and am very interested in it. I want to use it for a production environment, so I chose to go with version 1.

My first experience is to check out from CVS, run 'ant default', take a bunch of xsd files and try the scomp tool on them. The java files are generated and seem to be OK, but the compilation step fails as you can see below. Also note the versions of ant and jdk I am using:


D:\temp\xml-xmlbeans\v1\bin>ant -version

Apache Ant version 1.5.2 compiled on February 28 2003

D:\temp\xml-xmlbeans\v1\bin>java -version

java version "1.4.2_01" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_01-b06)
Java HotSpot(TM) Client VM (build 1.4.2_01-b06, mixed mode)

D:\temp\xml-xmlbeans\v1\bin>scomp -src ..\..\generation\src ..\..\generation\xsd\response

Time to build schema type system: 1.156 seconds
Time to generate code: 0.875 seconds

java.io.IOException: CreateProcess: D:\temp\xml-xmlbeans\v1\bin\javac @C:\DOCUME~1\ramos\CONFIG~1\Temp\javac45074 error=2 null
java.io.IOException: CreateProcess: D:\temp\xml-xmlbeans\v1\bin\javac @C:\DOCUME ~1\ramos\CONFIG~1\Temp\javac45074 error=2
        at java.lang.Win32Process.create(Native Method)
        at java.lang.Win32Process.<init>(Unknown Source)
        at java.lang.Runtime.execInternal(Native Method)
        at java.lang.Runtime.exec(Unknown Source)
        at java.lang.Runtime.exec(Unknown Source)
        at java.lang.Runtime.exec(Unknown Source)
        at org.apache.xmlbeans.impl.tool.CodeGenUtil.externalCompile(CodeGenUtil.java:258)
        at org.apache.xmlbeans.impl.tool.SchemaCompiler.compile(SchemaCompiler.java:854)
        at org.apache.xmlbeans.impl.tool.SchemaCompiler.main(SchemaCompiler.java:305)
BUILD FAILED

Main question:

    Does anybody have a clue as to why this happens?

Other questions:

    Have you thought or have plans to use maven to manage the project?
    Anyone out there has experience creating maven projects to generate and compile java classes from xml schemas ? Willing to share their experience?

Thanks a lot for any help,

    Javier Ramos