Sanity check, since I haven't been paying enough attention to this thread: 
You're aware of the distinction between the normal classpath and the 
"endorsed standards"/system classpath, right?

See http://xml.apache.org/xalan-j/faq.html, entry "I'm having a problem 
running Xalan-Java on JDK/JRE 1.4 or higher".


______________________________________
"... Three things see no end: A loop with exit code done wrong,
A semaphore untested, And the change that comes along. ..."
  -- "Threes" Rev 1.1 - Duane Elms / Leslie Fish (
http://www.ovff.org/pegasus/songs/threes-rev-11.html)



Bradley Wagner <[EMAIL PROTECTED]> 
11/20/2008 03:05 PM

To
xalan-j-users@xml.apache.org
cc

Subject
Re: Strange problem with BSFManager (maybe OS X only)






I have found a few links about this on the web.

http://lis​ts.apple.c​om/archive​s/java-dev​/2008/Apr/​msg00078.h​tml
http://doc​s.sun.com/​app/docs/d​oc/820-629​6/ghmay?a=​view
http://blo​g.springso​urce.com/a​rjen/archi​ves/2006/0​9/24/14com​patibility​jar-in-app​le-jdk-15/

All of them seem to suggest that deleting this JAR is ok, except that my 
app is an installed app and I don't really want to ask my OS X clients to 
all do that as part of the upgrade. 

Others seem surprised that this JAR is getting loaded given that there is 
a Xalan JAR in my webapp's classpath because apparently this 
14compatability JAR is always loaded at the end of the classpath. I might 
try cross-posting on the Apple Java mailing list to see if they have any 
suggestions.

- Bradley

On Nov 20, 2008, at 2:31 PM, Bradley Wagner wrote:

And thanks again, for some reason, it's trying to load the 
TransformerFactoryImpl class which is in my Xalan JAR from:
[Loaded org.apache.xalan.processor.TransformerFactoryImpl from 
file:/System/Library/Frameworks/JavaVM.framework/Versions/A/Resources/.compatibility/14compatibility.jar]
I'm definitely running Tomcat with Java 5, but wondering if this is some 
problem with the way we compiled the Xalan JAR from source. We used these 
directions: http://xml.apache.org/xalan-j/downloads.html#buildmyself

Thanks,
Bradley

On Nov 20, 2008, at 2:05 PM, Gary L Peskin wrote:

A classloader trace should show where the Xalan jar is being loaded from.
This is enabled via the -verbose:class switch.

Gary

-----Original Message-----
From: Bradley Wagner [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 20, 2008 10:59 AM
To: Gary L Peskin
Cc: xalan-j-users@xml.apache.org
Subject: Re: Strange problem with BSFManager (maybe OS X only)

Wow, thanks very much... you're exactly right:

java.class.path=/Users/bradley/Java/apache-tomcat/bin/bootstrap.jar
version.JAXP=1.1
java.ext.dirs=/Library/Java/Extensions:/System/Library/Java/
Extensions:/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/
Home/lib/ext
version.xerces2=Xerces-J 2.9.0
version.xerces1=not-present
version.xalan2_2=Xalan Java 2.4.1
version.xalan1=not-present
version.ant=not-present
java.version=1.5.0_16
version.DOM=2.0
version.crimson=present-unknown-version
sun.boot.class.path=/System/Library/Frameworks/JavaVM.framework/
Versions/1.5.0/Classes/classes.jar:/System/Library/Frameworks/
JavaVM.framework/Versions/1.5.0/Classes/ui.jar:/System/Library/
Frameworks/JavaVM.framework/Versions/1.5.0/Classes/laf.jar:/System/
Library/Frameworks/JavaVM.framework/Versions/1.5.0/Classes/jsse.jar:/
System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Classes/
jce.jar:/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/
Classes/charsets.jar
version.SAX=2.0
version.xalan2x=Xalan Java 2.4.1

It appears it's using Xalan 2.4.1 somehow. The strange thing is that
all we really did was upgrade the Xalan JAR from 2.6 to 2.7.1. I also
have yet to find any alternate xalan implementations in any of the JAR
files or directories mentioned above.

I'll keep looking and post back here if I find anything.

Thanks again,
Bradley




Reply via email to