Return-Path: Delivered-To: apmail-xml-xmlbeans-dev-archive@www.apache.org Received: (qmail 72395 invoked from network); 18 Nov 2003 14:47:48 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 18 Nov 2003 14:47:48 -0000 Received: (qmail 91401 invoked by uid 500); 18 Nov 2003 14:47:43 -0000 Delivered-To: apmail-xml-xmlbeans-dev-archive@xml.apache.org Received: (qmail 91369 invoked by uid 500); 18 Nov 2003 14:47:43 -0000 Mailing-List: contact xmlbeans-dev-help@xml.apache.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Post: List-Help: List-Unsubscribe: List-Subscribe: Reply-To: xmlbeans-dev@xml.apache.org Delivered-To: mailing list xmlbeans-dev@xml.apache.org Received: (qmail 91356 invoked from network); 18 Nov 2003 14:47:43 -0000 Message-ID: <3FB9C683.8010503@cspowers.com> Date: Mon, 17 Nov 2003 23:13:07 -0800 From: Calvin Powers User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.5b) Gecko/20030901 Thunderbird/0.2 X-Accept-Language: en-us, en MIME-Version: 1.0 To: xmlbeans-dev@xml.apache.org Subject: Failed to build with "network downloads disabled" error message. Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N 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 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/