Return-Path: Delivered-To: apmail-geronimo-dev-archive@www.apache.org Received: (qmail 61279 invoked from network); 31 May 2006 10:50:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 31 May 2006 10:50:30 -0000 Received: (qmail 39125 invoked by uid 500); 31 May 2006 10:50:23 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 39083 invoked by uid 500); 31 May 2006 10:50:23 -0000 Mailing-List: contact dev-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@geronimo.apache.org List-Id: Delivered-To: mailing list dev@geronimo.apache.org Received: (qmail 39072 invoked by uid 99); 31 May 2006 10:50:22 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 31 May 2006 03:50:22 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [209.237.227.198] (HELO brutus.apache.org) (209.237.227.198) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 31 May 2006 03:50:21 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 1DA3B714204 for ; Wed, 31 May 2006 10:49:30 +0000 (GMT) Message-ID: <10825178.1149072570091.JavaMail.jira@brutus> Date: Wed, 31 May 2006 10:49:30 +0000 (GMT+00:00) From: "John Sisson (JIRA)" To: dev@geronimo.apache.org Subject: [jira] Created: (GERONIMO-2069) o.a.g.system.configuration.LocalAttributeManager.load() does not setErrorHandler when parsing MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N o.a.g.system.configuration.LocalAttributeManager.load() does not setErrorHandler when parsing ---------------------------------------------------------------------------------------------- Key: GERONIMO-2069 URL: http://issues.apache.org/jira/browse/GERONIMO-2069 Project: Geronimo Type: Bug Security: public (Regular issues) Components: startup/shutdown Versions: 1.1 Reporter: John Sisson Assigned to: John Sisson Priority: Minor Fix For: 1.1 There are two issues in the load() processing: * If a validation error occurs, the file containing the error isn't identified. The code needs to use inputsource.setSystemId(..) so the errors from the parser identify the config.xml file, rather than displaying URI=null. * No error handler is set up, so a warning message is issued from Xerces. If the config.xml file is invalid, startup will produce output similar to the following: $./geronimo.sh run --long Using GERONIMO_BASE: /home/sissonj/OpenSourceJava/asf/geronimo/branches/1.1/assemblies/j2ee-tomcat-server/target/geronimo-1.1-SNAPSHOT Using GERONIMO_HOME: /home/sissonj/OpenSourceJava/asf/geronimo/branches/1.1/assemblies/j2ee-tomcat-server/target/geronimo-1.1-SNAPSHOT Using GERONIMO_TMPDIR: /home/sissonj/OpenSourceJava/asf/geronimo/branches/1.1/assemblies/j2ee-tomcat-server/target/geronimo-1.1-SNAPSHOT/var/temp Using JRE_HOME: /usr/j2se Booting Geronimo Kernel (in Java 1.4.2_10)... Warning: validation was turned on but an org.xml.sax.ErrorHandler was not set, which is probably not what is desired. Parser will use a default ErrorHandler to print the first 10 errors. Please call the 'setErrorHandler' method to fix this. Error: URI=null Line=74: cvc-complex-type.2.4.b: The content of element 'reference' is not complete. One of '{"http://geronimo.apache.org/xml/ns/attributes-1.1":pattern}' is expected. Module 1/20 geronimo/rmi-naming/1.1-SNAPSHOT/car started in .594s -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira