xml-xmlbeans-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Calvin Powers <cal...@cspowers.com>
Subject Failed to build with "network downloads disabled" error message.
Date Tue, 18 Nov 2003 07:13:07 GMT
Howdy,

I saw David Bau's presentation on XML Beans at ApacheCon today and have
been trying to build the code tonight.

When I run the ant build with the default target, I get the following:

===begin build messages===
xsdschema.classes:
     [java] C:\Documents and Settings\powers\My
Documents\IBM\wsappdev51\workspa
ce\sandbox\xml-xmlbeans\v1\src\xsdschema\schema\XMLSchema.xsd:0: error:
Could no
t load resource "http://www.w3.org/2001/xml.xsd" (network downloads
disabled).
     [java] C:\Documents and Settings\powers\My
Documents\IBM\wsappdev51\workspa
ce\sandbox\xml-xmlbeans\v1\src\xsdschema\schema\XMLSchema.xsd:0:
warning: Schema
<notation> is not yet supported for this release.
     [java] C:\Documents and Settings\powers\My
Documents\IBM\wsappdev51\workspa
ce\sandbox\xml-xmlbeans\v1\src\xsdschema\schema\XMLSchema.xsd:0: error:
Attribut
e lang@http://www.w3.org/XML/1998/namespace not found.
     [java] C:\Documents and Settings\powers\My
Documents\IBM\wsappdev51\workspa
ce\sandbox\xml-xmlbeans\v1\src\xsdschema\schema\XMLSchema.xsd:0: error:
Attribut
e lang@http://www.w3.org/XML/1998/namespace not found.
     [java] Time to build schema type system: 3.705 seconds
     [java] BUILD FAILED



BUILD FAILED
C:\Documents and Settings\powers\My
Documents\IBM\wsappdev51\workspace\sandbox\x
ml-xmlbeans\v1\build.xml:690: Java returned: 1
====end build messages =====

I dug through the version 1 source, and tracked this down to
StscImporter.java, which is printing this message out in response to a
method in StscState called shouldDownLoadURI

There's several things going on in shouldDownLoadURI, but the one that
seems relevant is a check against a private variable called
_doingDownloads.

This is set in setOptions of the same class, apparently in response to
an COMPILE_DOWNLOAD_URLS entry in a class called  XmlOptions. I
backtracked this setting to two java files that appear to me to be some
of the command line tools (InstanceValidator and SchemaCompiler) but I
don't think I'm far enough into the build to be invoking these yet. (As
far as I can tell, I'm still just doing plain java compiles.

The other way this option can be set is if a system property called
xmlbean.downloadurls is set to true. I tried half a dozen different ways
to try to get this property set on the right javac invocation but could
never quite seem to get it to work.

I verified that I could download the http://www.w3.org/2001/xml.xsd from
the web by pasting the URL into a browser.

So I figure I've got some sort of set up problem where the
xmlbean.downloadurls property is not being set.

The other thing that puzzles me is that I see XMLScheme.xsd in the
source tree, so I'm wondering if maybe something else is preventing the
build from finding this file locally.

Anyone have any advice?

Thanks!
Calvin Powers




- ---------------------------------------------------------------------
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/


Mime
View raw message