From jackrabbit-dev-return-331-apmail-incubator-jackrabbit-dev-archive=www.apache.org@incubator.apache.org Fri Nov 12 21:47:27 2004 Return-Path: Delivered-To: apmail-incubator-jackrabbit-dev-archive@www.apache.org Received: (qmail 70920 invoked from network); 12 Nov 2004 21:47:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 12 Nov 2004 21:47:27 -0000 Received: (qmail 38394 invoked by uid 500); 12 Nov 2004 21:47:26 -0000 Mailing-List: contact jackrabbit-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jackrabbit-dev@incubator.apache.org Delivered-To: mailing list jackrabbit-dev@incubator.apache.org Received: (qmail 38380 invoked by uid 99); 12 Nov 2004 21:47:26 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [192.18.33.10] (HELO exchange.sun.com) (192.18.33.10) by apache.org (qpsmtpd/0.28) with SMTP; Fri, 12 Nov 2004 13:47:25 -0800 Received: (qmail 922 invoked from network); 12 Nov 2004 21:47:23 -0000 Received: from localhost (HELO nagoya) (127.0.0.1) by nagoya.betaversion.org with SMTP; 12 Nov 2004 21:47:23 -0000 Message-ID: <1660491461.1100296043705.JavaMail.apache@nagoya> Date: Fri, 12 Nov 2004 13:47:23 -0800 (PST) From: "Jukka Zitting (JIRA)" To: jackrabbit-dev@incubator.apache.org Subject: [jira] Created: (JCR-19) package org.apache.xml.utils does not exist (JDK 1.5.0) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N package org.apache.xml.utils does not exist (JDK 1.5.0) ------------------------------------------------------- Key: JCR-19 URL: http://nagoya.apache.org/jira/browse/JCR-19 Project: Jackrabbit Type: Bug Components: API Environment: JDK 1.5.0 (works with JDK 1.4.2_06), Maven 1.0.1, Linux Reporter: Jukka Zitting Priority: Trivial Executing "maven jar" on a freshly checked out source tree fails with the following error messages when using JDK 1.5.0: /home/jukkaz/src/jackrabbit/src/java/org/apache/jackrabbit/core/xml/DocViewSAXEventGenerator.java:24: package org.apache.xml.utils does not exist import org.apache.xml.utils.XMLChar; ^ /home/jukkaz/src/jackrabbit/src/java/org/apache/jackrabbit/core/xml/DocViewSAXEventGenerator.java:142: cannot find symbol symbol : variable XMLChar location: class org.apache.jackrabbit.core.xml.DocViewSAXEventGenerator if (!XMLChar.isValidName(elemName)) { ^ /home/jukkaz/src/jackrabbit/src/java/org/apache/jackrabbit/core/xml/DocViewSAXEventGenerator.java:162: cannot find symbol symbol : variable XMLChar location: class org.apache.jackrabbit.core.xml.DocViewSAXEventGenerator if (!XMLChar.isValidName(attrName)) { The same build succeeds without problems on JDK 1.4.2_06. I found some reports about similar problems after upgrading from JDK 1.4 to 1.5. It seems that the org.apache.xml.utils.XMLChar was a part (undocumented?) of the standard JDK classpath, but that it has been dropped from JDK 1.5. A similar (the same?) XMLChar utility class can be found in the org.apache.xerces.utils package, which is automatically included by the Xerces dependency. The following change fixes the problem on JDK 1.5.0 and seems to work fine also on JDK 1.4.2_06. Index: src/java/org/apache/jackrabbit/core/xml/DocViewSAXEventGenerator.java =================================================================== --- src/java/org/apache/jackrabbit/core/xml/DocViewSAXEventGenerator.java (revision 57540) +++ src/java/org/apache/jackrabbit/core/xml/DocViewSAXEventGenerator.java (working copy) @@ -21,7 +21,7 @@ import org.apache.jackrabbit.core.state.PropertyState; import org.apache.jackrabbit.core.util.Base64; import org.apache.log4j.Logger; -import org.apache.xml.utils.XMLChar; +import org.apache.xerces.util.XMLChar; import org.xml.sax.ContentHandler; import org.xml.sax.SAXException; import org.xml.sax.helpers.AttributesImpl; -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://nagoya.apache.org/jira/secure/Administrators.jspa - If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira