Edwin -
This is a know issue and I have posted a bug for it back in Sept 05
(!). There is even a portion of the Ant build script that will build
the jar files w/o the inclusion of BCEL, but its not being used for
the released version.
Please, if you are reading this, please go to this bug entry and vote
for this bug:
https://issues.apache.org/jira/browse/XALANJ-2196
Thanks Much,
Eric Everman
On Sep 6, 2006, at 4:56 AM, Edwin Lee 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