You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xmlbeans.apache.org by Darrell Teague <da...@mantech.com> on 2003/10/01 22:25:39 UTC

Source Build Problem

Having problems with building v1 of xmlbeans.  I read through every posting to the list and didn't see this error - my apologies if there was already one with a solution, please bear with me:

xsdschema.classes:
     [java] C:\Documents and Settings\dteague\Projects\xmlbeans\xml-xmlbeans\v1\
src\xsdschema\schema\XMLSchema.xsd:0: error: Could not load resource "http://www
.w3.org/2001/xml.xsd" (network downloads disabled).
     [java] C:\Documents and Settings\dteague\Projects\xmlbeans\xml-xmlbeans\v1\
src\xsdschema\schema\XMLSchema.xsd:0: warning: Schema <notation> is not yet supp
orted for this release.
     [java] C:\Documents and Settings\dteague\Projects\xmlbeans\xml-xmlbeans\v1\
src\xsdschema\schema\XMLSchema.xsd:0: error: Attribute lang@http://www.w3.org/XM
L/1998/namespace not found.
     [java] C:\Documents and Settings\dteague\Projects\xmlbeans\xml-xmlbeans\v1\
src\xsdschema\schema\XMLSchema.xsd:0: error: Attribute lang@http://www.w3.org/XM
L/1998/namespace not found.
     [java] Time to build schema type system: 4.186 seconds
     [java] BUILD FAILED

I assume that the issue is with the "xsdschema.classes" target in the Ant (build.xml) script such that there is a schema reference in the bootstrap compiler that requires a remote lookup.  I am not sure what I need to do to fix the "network downloads disabled" problem (likely the root cause).  Here is the ant target for reference.  Any help is appreciated.

  <target name="xsdschema.classes" depends="xsdschema.check, xmlschema.classes, xmlpublic.classes, oldxbean.jar" unless="xsdschema.notRequired">
    <delete dir="build/classes/xsdschema"/>
    <delete dir="build/src/xsdschema"/>
    <java classname="${bootstrap_schema_compiler}" classpathref="bootstrap.run.path" fork="true" failonerror="true">
      <jvmarg value="-ea"/>
      <arg line="${repackage_arg} -name sXMLSCHEMA -cp ${xsdschema.compile.path} -srconly -d build/classes/xsdschema -src build/src/xsdschema src/xsdschema/schema"/>
    </java>
  </target>

Re: Source Build Problem

Posted by David Bau <da...@bea.com>.
Hi Darrell,

FWIW, your build is getting tripped up when compiling the schema-for-schema.
I don't know exactly what the problem is (a very clean build works for me
and I don't recognize the problem), but I'm happy to explain this part of
the build.

Your build is breaking when trying to compile XMLSchema.xsd, because it
can't find the definitions that come from XML.xsd.  Network downloads are
suppposed to be disabled, because our build is supposed to be
self-contained.  Then how is it supposed to find those defs?  Well, XML.xsd
was supposed to already have been compiled into .xsb binaries (the target is
xmlschema.classes), and dropped into build\classes\xmlschema.

Then the command line that invokes the schema compiler to build
XMLSchema.xsd includes a -cp {xsdschema.compile.path}.  If you look for the
definition of that path in the build.xml you'll see that it is supposed to
include build\classes\xmlschema, so the schema compiler is supposed to link
against already-compiled definitions in that directory instead of trying to
download them anew.

Either for some reason XML.xsd isn't getting compiled into .xsb's or landing
in the right place, or the classpath isn't being set up correctly or for
some reason the schema compiler isn't looking in the right place for the
schema binaries.  The relevant line of code in the schema compiler (should
you choose to debug in that much detail) is line 362 of
src\typeimpl\org\apache\xmlbeans\impl\schema\StscImporter.java.

David


----- Original Message ----- 
From: Darrell Teague
To: xmlbeans-dev@xml.apache.org
Sent: Wednesday, October 01, 2003 4:25 PM
Subject: [xmlbeans-cvs] Source Build Problem


Having problems with building v1 of xmlbeans.  I read through every posting
to the list and didn't see this error - my apologies if there was already
one with a solution, please bear with me:

xsdschema.classes:
     [java] C:\Documents and
Settings\dteague\Projects\xmlbeans\xml-xmlbeans\v1\
src\xsdschema\schema\XMLSchema.xsd:0: error: Could not load resource
"http://www
.w3.org/2001/xml.xsd" (network downloads disabled).
     [java] C:\Documents and
Settings\dteague\Projects\xmlbeans\xml-xmlbeans\v1\
src\xsdschema\schema\XMLSchema.xsd:0: warning: Schema <notation> is not yet
supp
orted for this release.
     [java] C:\Documents and
Settings\dteague\Projects\xmlbeans\xml-xmlbeans\v1\
src\xsdschema\schema\XMLSchema.xsd:0: error: Attribute
lang@http://www.w3.org/XM
L/1998/namespace not found.
     [java] C:\Documents and
Settings\dteague\Projects\xmlbeans\xml-xmlbeans\v1\
src\xsdschema\schema\XMLSchema.xsd:0: error: Attribute
lang@http://www.w3.org/XM
L/1998/namespace not found.
     [java] Time to build schema type system: 4.186 seconds
     [java] BUILD FAILED

I assume that the issue is with the "xsdschema.classes" target in the Ant
(build.xml) script such that there is a schema reference in the bootstrap
compiler that requires a remote lookup.  I am not sure what I need to do to
fix the "network downloads disabled" problem (likely the root cause).  Here
is the ant target for reference.  Any help is appreciated.

  <target name="xsdschema.classes" depends="xsdschema.check,
xmlschema.classes, xmlpublic.classes, oldxbean.jar"
unless="xsdschema.notRequired">
    <delete dir="build/classes/xsdschema"/>
    <delete dir="build/src/xsdschema"/>
    <java classname="${bootstrap_schema_compiler}"
classpathref="bootstrap.run.path" fork="true" failonerror="true">
      <jvmarg value="-ea"/>
      <arg line="${repackage_arg} -name sXMLSCHEMA -cp
${xsdschema.compile.path} -srconly -d build/classes/xsdschema -src
build/src/xsdschema src/xsdschema/schema"/>
    </java>
  </target>


- ---------------------------------------------------------------------
To unsubscribe, e-mail:   xmlbeans-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xmlbeans-dev-help@xml.apache.org
Apache XMLBeans Project -- URL: http://xml.apache.org/xmlbeans/


Re: Source Build Problem

Posted by David Bau <da...@bea.com>.
Hi Darrell,

FWIW, your build is getting tripped up when compiling the schema-for-schema.
I don't know exactly what the problem is (a very clean build works for me
and I don't recognize the problem), but I'm happy to explain this part of
the build.

Your build is breaking when trying to compile XMLSchema.xsd, because it
can't find the definitions that come from XML.xsd.  Network downloads are
suppposed to be disabled, because our build is supposed to be
self-contained.  Then how is it supposed to find those defs?  Well, XML.xsd
was supposed to already have been compiled into .xsb binaries (the target is
xmlschema.classes), and dropped into build\classes\xmlschema.

Then the command line that invokes the schema compiler to build
XMLSchema.xsd includes a -cp {xsdschema.compile.path}.  If you look for the
definition of that path in the build.xml you'll see that it is supposed to
include build\classes\xmlschema, so the schema compiler is supposed to link
against already-compiled definitions in that directory instead of trying to
download them anew.

Either for some reason XML.xsd isn't getting compiled into .xsb's or landing
in the right place, or the classpath isn't being set up correctly or for
some reason the schema compiler isn't looking in the right place for the
schema binaries.  The relevant line of code in the schema compiler (should
you choose to debug in that much detail) is line 362 of
src\typeimpl\org\apache\xmlbeans\impl\schema\StscImporter.java.

David


----- Original Message ----- 
From: Darrell Teague
To: xmlbeans-dev@xml.apache.org
Sent: Wednesday, October 01, 2003 4:25 PM
Subject: [xmlbeans-cvs] Source Build Problem


Having problems with building v1 of xmlbeans.  I read through every posting
to the list and didn't see this error - my apologies if there was already
one with a solution, please bear with me:

xsdschema.classes:
     [java] C:\Documents and
Settings\dteague\Projects\xmlbeans\xml-xmlbeans\v1\
src\xsdschema\schema\XMLSchema.xsd:0: error: Could not load resource
"http://www
.w3.org/2001/xml.xsd" (network downloads disabled).
     [java] C:\Documents and
Settings\dteague\Projects\xmlbeans\xml-xmlbeans\v1\
src\xsdschema\schema\XMLSchema.xsd:0: warning: Schema <notation> is not yet
supp
orted for this release.
     [java] C:\Documents and
Settings\dteague\Projects\xmlbeans\xml-xmlbeans\v1\
src\xsdschema\schema\XMLSchema.xsd:0: error: Attribute
lang@http://www.w3.org/XM
L/1998/namespace not found.
     [java] C:\Documents and
Settings\dteague\Projects\xmlbeans\xml-xmlbeans\v1\
src\xsdschema\schema\XMLSchema.xsd:0: error: Attribute
lang@http://www.w3.org/XM
L/1998/namespace not found.
     [java] Time to build schema type system: 4.186 seconds
     [java] BUILD FAILED

I assume that the issue is with the "xsdschema.classes" target in the Ant
(build.xml) script such that there is a schema reference in the bootstrap
compiler that requires a remote lookup.  I am not sure what I need to do to
fix the "network downloads disabled" problem (likely the root cause).  Here
is the ant target for reference.  Any help is appreciated.

  <target name="xsdschema.classes" depends="xsdschema.check,
xmlschema.classes, xmlpublic.classes, oldxbean.jar"
unless="xsdschema.notRequired">
    <delete dir="build/classes/xsdschema"/>
    <delete dir="build/src/xsdschema"/>
    <java classname="${bootstrap_schema_compiler}"
classpathref="bootstrap.run.path" fork="true" failonerror="true">
      <jvmarg value="-ea"/>
      <arg line="${repackage_arg} -name sXMLSCHEMA -cp
${xsdschema.compile.path} -srconly -d build/classes/xsdschema -src
build/src/xsdschema src/xsdschema/schema"/>
    </java>
  </target>


- ---------------------------------------------------------------------
To unsubscribe, e-mail:   xmlbeans-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xmlbeans-dev-help@xml.apache.org
Apache XMLBeans Project -- URL: http://xml.apache.org/xmlbeans/