You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "Stefan Guggisberg (JIRA)" <ji...@apache.org> on 2004/11/16 16:12:32 UTC

[jira] Assigned: (JCR-19) package org.apache.xml.utils does not exist (JDK 1.5.0)

     [ http://nagoya.apache.org/jira/browse/JCR-19?page=history ]

Stefan Guggisberg reassigned JCR-19:
------------------------------------

    Assign To: Stefan Guggisberg

> 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
>     Assignee: Stefan Guggisberg
>     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