[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Xalan 2,4,1 URIResolver problems with JDK 1.4.1

  • To: xml-dev@l...
  • Subject: Xalan 2,4,1 URIResolver problems with JDK 1.4.1
  • From: "Andrzej Jan Taramina" <andrzej@c...>
  • Date: Wed, 12 Feb 2003 18:49:49 -0500
  • Organization: Chaeron Consulting Corporation
  • Priority: normal
  • Reply-to: andrzej@c...

xalan uriresolver
I tried to run an XSLT transform using the latest Xalan 2.4.1 release and the 
new JDK 1.4.1

Ran into some interesting issues.  

I know that JDK 1.4.1 packages an older version of Xalan with the distribution 
(why is another question).  So I placed the appropriate Xalan jars from the 
2.4.1 release into the <java home>/jre/lib/endorsed directory.

But Xalan kept telling me it couldn't find the class I had specified in the 
-URIRESOLVER command line definition.  Worked fine under JDK 1.3.1.  
Huh?

I finally figured out that I needed to put the jar file that contains my 
URIResolver implementation class in the endorsed directory as well.

Now this [expletive deleted] big time.  My URIResolver class is in the com.chaeron.xsl 
package, and so is not overriding anything that the JDK is using, and so 
should not have to be placed in the endorsed directory.

It seems from the Xalan 2.4.1 source, it just does a Class.forName() method 
invocation with only the URIResolver class name passed in.  I'm guessing that 
the 1.4.1 JDK only checks the bootclasspath and thus endorsed directory for 
classes, and does not try to load anything from the normal classpath.

Can anyone verify this theory as being correct?

I suppse the Xalan folks could fix the issue by looking up the correct 
classloader....but they really shouldn't have too.  What was Sun thinking when 
they came up with this aberration called "endorsed classes"?

<sheesh>

Andrzej Jan Taramina
Chaeron Corporation: Enterprise System Solutions
http://www.chaeron.com


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.