If I remember correctly you can use the endorsed packages mechanism
(http://java.sun.com/j2se/1.4/docs/guide/standards/)

That should let you override the xalan/xerces packages that come with JDK
1.4

Carlos
 
On 04/24/02 3:00, "Vincent Berruchon" <[EMAIL PROTECTED]>
wrote:

>   Hello to the xalan community,
> When I use Xalan from shell with org.apache.xalan.xslt.Process
> I get a this error:
> Exception in thread "main" java.lang.ClassCastException:
> org.apache.xalan.res.XSLTErrorResources_fr
>       at org.apache.xalan.xslt.Process.main(Unknown Source)
> 
> I've seen that this problem has ever been related here (in xalan-j-users
> list) to ask if it was a bug but no one reply (I copy this email at the end
> of mine)
> I'd prefer to not change the xalan code... Is there another solution to use
> org.apache.xalan.xslt.Process.
> 
> Thanks
> Vincent
> 
> The email of Achim Abeling with his solution:
> --
> Hi,
> 
> I am using jdk1.4.0b92 which includes xalan2.2.D11.
> My locales language is de.
> 
> When I start xalan with
> org.apache.xalan.xslt.Process
> I get a
> 
> Exception in thread "main" java.lang.ClassCastException:
> org.apache.xalan.res.XSLTErrorResources_de
>       at org.apache.xalan.xslt.Process.main(Process.java:209)
> 
> which results from the fact that XSLTErrorResources_de is a subclass of
> org.apache.xml.utils.res.XResourceBundleBase but the object should be
> casted to
> XSLTErrorResources.
> 
> Is that a bug?
> 
> I fixed the problem by using XResourceBundleBase for the variable
> resbundle in
> org.apache.xalan.xslt.Process
> 
> cu
> Achim
> --
> #
> # Achim Abeling
> # Kiel, Germany
> # e-mail: [EMAIL PROTECTED]
> #
> 

-- 
Carlos E. Araya
---+ WebCT Administrator/Trainer
 P | California Virtual Campus
 - | C/O De Anza College
 G | 21250 Stevens Creek Blvd
---+ Cupertino, CA 95014

email               [EMAIL PROTECTED]
web                 http://www.cvc1.org/ (work)
                    http://www.silverwolf-net.net (personal)
phone               408 257 0420 (work)
PGP Fingerprint:    E629 5DFD 7EAE 4995 E9D7  3D2F 5A9F 0CE7 DFE7 1756


Three things are certain:
Death, taxes, and lost data.
Guess which has occurred.

Reply via email to