Hi Edwin,
You would think that BCEL would be backward compatible (e.g. applications built with 5.0 would run fine with 5.1) but I can't find anything in the online docs that says it is or isn't. It looks like there is a BCEL mailing list, you could try asking there: http://jakarta.apache.org/site/mail2.html#BCEL
Thanks.
Erin Harris
XSLT Development
IBM Software Solutions Toronto Lab, D1-446
8200 Warden Avenue, Markham, Ontario, Canada L6G 1C7
email: [EMAIL PROTECTED]
phone: 905-413-3347 - IBM Tieline: 969-3347 - Fax: 905-413-4850
"Edwin Lee" <[EMAIL PROTECTED]>
07/09/2006 04:06 AM |
|
BTW, there's something that i've tried, please let me know if there are any potential pitfalls with this.
1. Remove the bcel package (ver 5.0 rc1) from xalan.jar.
2. Add bcel.jar (ver 5.1) to the endorsed directory.
By doing this, web application 2 below (that depends on BCEL 5.1) works fine now. However, my concern is whether web application 1 (using Xalan) will run into problems later on (as Xalan is dependent on BCEL 5.0 rc1 instead of 5.1).
Please let me know, thanks.
Regards,
Edwin
On 9/6/06, Edwin Lee <[EMAIL PROTECTED] > wrote:
Hi guys,
i'm having an issue here which is not exactly an issue with Xalan itself, but its due to the BCEL library that Xalan comes bundled with, so am wondering if anyone has faced this before.
The background is that i'm running WebLogic Server 8.1 (on JDK 1.4).
i need to deploy two web applications (WAR) on the app server.
In web application 1,
i need to make use of Xalan, and since i'm running JDK 1.4, i'll have to override the endorsed standards by placing serializer.jar, xalan.jar, xercesImpl.jar and xml-apis.jar in the JDK endorsed directory. Now, the xalan.jar comes bundled with the BCEL package, which is, according to the manifest, BCEL version 5.0 rc1.
In web application 2,
the problem is that here, there is a dependency on BCEL version 5.1. Now even though this web application has its own copy of bcel.jar in its WEB-INF/lib, the VM (rightly) loads from the BCEL package in the endorsed directory. This caused a NoSuchMethodError when trying to execute one of the methods in the BCEL package. (i looked up the source for BCEL 5.0 rc1, and indeed the method was not in that version.)
Has anyone ever experienced this? How do you get around it?
Thanks in Advance,
Edwin