You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xalan.apache.org by Stefan Hermanek <he...@citem.at> on 2002/05/06 16:04:03 UTC

jdk1.4

Hello,

I have looked through the archive but didn't find an answer to my
problem concerning jdk1.4 and Xalan 2.3.1 although there are some people
having the same troubles. With jdk1.3 there is no problem running Xalan
on the same PC, but I have to upgrade to jdk1.4.
Whatever I do the result is:
Exception in thread "main" java.lang.ClassCastException:
org.apache.xalan.res.XSLTErrorResources_de

This is the result of the enviroment check:
#---- BEGIN writeEnvironmentReport($Revision: 1.7 $): Useful properties
found: ----
java.version=1.4.0
#---- BEGIN Listing XML-related jars in: foundclasses.java.class.path
----
xalan.jar-apparent.version=xalan.jar WARNING.present-unknown-version
xalan.jar-path=/opt/xalan-j_2_3_1/bin/xalan.jar
#----- END Listing XML-related jars in: foundclasses.java.class.path
-----
version.JAXP=1.1
java.ext.dirs=/opt/j2sdk1.4.0/jre/lib/ext
version.crimson=not-present
version.SAX=2.0
java.class.path=/opt/xalan-j_2_3_1/bin/xalan.jar:/opt/xalan-j_2_3_1/bin/xml-apis.jar:/opt/xalan-j_2_3_1/bin/xercesImpl.jar
version.xerces=not-present
sun.boot.class.path=/opt/j2sdk1.4.0/jre/lib/rt.jar:/opt/j2sdk1.4.0/jre/lib/i18n.jar:/opt/j2sdk1.4.0/jre/lib/sunrsasign.jar:/opt/j2sdk1.4.0/jre/lib/jsse.jar:/opt/j2sdk1.4.0/jre/lib/jce.jar:/opt/j2sdk1.4.0/jre/lib/charsets.jar:/opt/j2sdk1.4.0/jre/classes
version.DOM.draftlevel=2.0fd
version.xalan2=Xalan;Java;Xalan Java 2.2.D11;
version.DOM=2.0
version.xalan1=not-present
#----- END writeEnvironmentReport: Useful properties found: -----
# YAHOO! Your environment seems to be OK.

The classpath is 
/opt/xalan-j_2_3_1/bin/xalan.jar:/opt/xalan-j_2_3_1/bin/xml-apis.jar:/opt/xalan-j_2_3_1/bin/xercesImpl.jar

I started with Xbootclasspath as mentioned in some mails:
-Xbootclasspath/p:/opt/xalan-j_2_3_1/bin/xalan.jar;/opt/xalan-j_2_3_1/bin/xercesImpl.jar;/opt/xalan-j_2_3_1/bin/xml-apis.jar

I copied the jars from the Xalan distribution into the
jdk1.4/jre/lib/ext directory but that didn't work either.

Thanks a lot IA, Stefan

Re: jdk1.4

Posted by Stefan Hermanek <he...@citem.at>.
Hello Ralf,

thank you for the hint, I tried but got the same result.

Stefan

Ralf Steppacher wrote:
> 
>  > The classpath is
>  > /opt/xalan-j_2_3_1/bin/xalan.jar:/opt/xalan-j_2_3_1/bin/xml-apis.jar:-
>  > /opt/xalan-j_2_3_1/bin/xercesImpl.jar
> 
> Have you tried to copy the three jars to <java-home>/lib/endorsed?
> 
> Ralf

Re: jdk1.4

Posted by Ralf Steppacher <st...@esteam.de>.
 > The classpath is
 > /opt/xalan-j_2_3_1/bin/xalan.jar:/opt/xalan-j_2_3_1/bin/xml-apis.jar:-
 > /opt/xalan-j_2_3_1/bin/xercesImpl.jar

Have you tried to copy the three jars to <java-home>/lib/endorsed?


Ralf


Re: jdk1.4

Posted by Stefan Hermanek <he...@citem.at>.
Gary,

thank you, that helped me, now everything works

Stefan

Gary L Peskin wrote:
> 
> This is a bug in a Sun internationalization extension to Xalan.
> 
> Please see
> http://developer.java.sun.com/developer/bugParade/bugs/4662527.html
> 
> Unfortunately, putting the Xalan-supplied jars in front of the
> bootclasspath won't help because the XSLTErrorResources_de will still be
> found and screw things up.
> 
> About the only workaround is the one suggested in the bug parade entry
> above.  You could also download the Xalan source and make the suggested
> change in your local copy of Process.java and then put that in the
> endorsed directory as explained at
> http://java.sun.com/j2se/1.4/docs/guide/standards/index.html
> 
> HTH,
> Gary
> 
> Also see http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4649
> and http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6956
> 
> > -----Original Message-----
> > From: Stefan Hermanek [mailto:hermanek@citem.at]
> > Sent: Monday, May 06, 2002 7:04 AM
> > To: xalan-j-users@xml.apache.org
> > Subject: jdk1.4
> >
> >
> > Hello,
> >
> > I have looked through the archive but didn't find an answer
> > to my problem concerning jdk1.4 and Xalan 2.3.1 although
> > there are some people having the same troubles. With jdk1.3
> > there is no problem running Xalan on the same PC, but I have
> > to upgrade to jdk1.4. Whatever I do the result is: Exception
> > in thread "main" java.lang.ClassCastException:
> > org.apache.xalan.res.XSLTErrorResources_de
> >
> > This is the result of the enviroment check:
> > #---- BEGIN writeEnvironmentReport($Revision: 1.7 $): Useful
> > properties
> > found: ----
> > java.version=1.4.0
> > #---- BEGIN Listing XML-related jars in: foundclasses.java.class.path
> > ----
> > xalan.jar-apparent.version=xalan.jar
> > WARNING.present-unknown-version
> > xalan.jar-path=/opt/xalan-j_2_3_1/bin/xalan.jar
> > #----- END Listing XML-related jars in: foundclasses.java.class.path
> > -----
> > version.JAXP=1.1
> > java.ext.dirs=/opt/j2sdk1.4.0/jre/lib/ext
> > version.crimson=not-present
> > version.SAX=2.0
> > java.class.path=/opt/xalan-j_2_3_1/bin/xalan.jar:/opt/xalan-j_
> > 2_3_1/bin/xml-apis.jar:/opt/xalan-j_2_3_1/bin/xercesImpl.jar
> > version.xerces=not-present
> > sun.boot.class.path=/opt/j2sdk1.4.0/jre/lib/rt.jar:/opt/j2sdk1
> > .4.0/jre/lib/i18n.jar:/opt/j2sdk1.4.0/jre/lib/sunrsasign.jar:/
> > opt/j2sdk1.4.0/jre/lib/jsse.jar:/opt/j2sdk1.4.0/jre/lib/jce.ja
> > r:/opt/j2sdk1.4.0/jre/lib/charsets.jar:/opt/j2sdk1.4.0/jre/classes
> > version.DOM.draftlevel=2.0fd
> > version.xalan2=Xalan;Java;Xalan Java 2.2.D11;
> > version.DOM=2.0
> > version.xalan1=not-present
> > #----- END writeEnvironmentReport: Useful properties found:
> > ----- # YAHOO! Your environment seems to be OK.
> >
> > The classpath is
> > /opt/xalan-j_2_3_1/bin/xalan.jar:/opt/xalan-j_2_3_1/bin/xml-ap
> > is.jar:/opt/xalan-j_2_3_1/bin/xercesImpl.jar
> >
> > I started with Xbootclasspath as mentioned in some mails:
> > -Xbootclasspath/p:/opt/xalan-j_2_3_1/bin/xalan.jar;/opt/xalan-
> > j_2_3_1/bin/xercesImpl.jar;/opt/xalan-j_2_3_1/bin/xml-apis.jar
> >
> > I copied the jars from the Xalan distribution into the
> > jdk1.4/jre/lib/ext directory but that didn't work either.
> >
> > Thanks a lot IA, Stefan
> >

-- 
Citem - Dr.Siegl
Währinger Gürtel 166/6
A-1090 Wien
Tel.: +43 (0)1 319 59 893
Fax: +43 (0)1 319 59 891
Mobil: 0699 114 034 33
Mail: it-planung@citem.at
www.citem.at
-------------------------

RE: jdk1.4

Posted by Gary L Peskin <ga...@firstech.com>.
This is a bug in a Sun internationalization extension to Xalan.

Please see
http://developer.java.sun.com/developer/bugParade/bugs/4662527.html

Unfortunately, putting the Xalan-supplied jars in front of the
bootclasspath won't help because the XSLTErrorResources_de will still be
found and screw things up.

About the only workaround is the one suggested in the bug parade entry
above.  You could also download the Xalan source and make the suggested
change in your local copy of Process.java and then put that in the
endorsed directory as explained at
http://java.sun.com/j2se/1.4/docs/guide/standards/index.html

HTH,
Gary

Also see http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4649
and http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6956

> -----Original Message-----
> From: Stefan Hermanek [mailto:hermanek@citem.at] 
> Sent: Monday, May 06, 2002 7:04 AM
> To: xalan-j-users@xml.apache.org
> Subject: jdk1.4
> 
> 
> Hello,
> 
> I have looked through the archive but didn't find an answer 
> to my problem concerning jdk1.4 and Xalan 2.3.1 although 
> there are some people having the same troubles. With jdk1.3 
> there is no problem running Xalan on the same PC, but I have 
> to upgrade to jdk1.4. Whatever I do the result is: Exception 
> in thread "main" java.lang.ClassCastException: 
> org.apache.xalan.res.XSLTErrorResources_de
> 
> This is the result of the enviroment check:
> #---- BEGIN writeEnvironmentReport($Revision: 1.7 $): Useful 
> properties
> found: ----
> java.version=1.4.0
> #---- BEGIN Listing XML-related jars in: foundclasses.java.class.path
> ----
> xalan.jar-apparent.version=xalan.jar 
> WARNING.present-unknown-version 
> xalan.jar-path=/opt/xalan-j_2_3_1/bin/xalan.jar
> #----- END Listing XML-related jars in: foundclasses.java.class.path
> -----
> version.JAXP=1.1
> java.ext.dirs=/opt/j2sdk1.4.0/jre/lib/ext
> version.crimson=not-present
> version.SAX=2.0 
> java.class.path=/opt/xalan-j_2_3_1/bin/xalan.jar:/opt/xalan-j_
> 2_3_1/bin/xml-apis.jar:/opt/xalan-j_2_3_1/bin/xercesImpl.jar
> version.xerces=not-present 
> sun.boot.class.path=/opt/j2sdk1.4.0/jre/lib/rt.jar:/opt/j2sdk1
> .4.0/jre/lib/i18n.jar:/opt/j2sdk1.4.0/jre/lib/sunrsasign.jar:/
> opt/j2sdk1.4.0/jre/lib/jsse.jar:/opt/j2sdk1.4.0/jre/lib/jce.ja
> r:/opt/j2sdk1.4.0/jre/lib/charsets.jar:/opt/j2sdk1.4.0/jre/classes
> version.DOM.draftlevel=2.0fd
> version.xalan2=Xalan;Java;Xalan Java 2.2.D11;
> version.DOM=2.0
> version.xalan1=not-present
> #----- END writeEnvironmentReport: Useful properties found: 
> ----- # YAHOO! Your environment seems to be OK.
> 
> The classpath is 
> /opt/xalan-j_2_3_1/bin/xalan.jar:/opt/xalan-j_2_3_1/bin/xml-ap
> is.jar:/opt/xalan-j_2_3_1/bin/xercesImpl.jar
> 
> I started with Xbootclasspath as mentioned in some mails: 
> -Xbootclasspath/p:/opt/xalan-j_2_3_1/bin/xalan.jar;/opt/xalan-
> j_2_3_1/bin/xercesImpl.jar;/opt/xalan-j_2_3_1/bin/xml-apis.jar
> 
> I copied the jars from the Xalan distribution into the 
> jdk1.4/jre/lib/ext directory but that didn't work either.
> 
> Thanks a lot IA, Stefan
>