Library Conflict Involving BCEL Library 2006-09-06 - By Erin Harris
Hi Edwin,
Are you using a JDK that ships Xalan? If not, then you don't need to use the endorsed directory. The endorsed directory is only needed if Xalan is shipped as part of the JDK and you want to use a different version of Xalan. If the JDK you are using does ship Xalan then is it not at the level that you need?
Thanks.
Erin Harris
"Edwin Lee" <edwinlee.11@(protected)> 06/09/2006 05:56 AM
To xalan-j-users@(protected) cc
Subject Library Conflict Involving BCEL Library
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
<br><font size=2 face="sans-serif">Hi Edwin,</font> <br> <br><font size=2 face="sans-serif">Are you using a JDK that ships Xalan? If not, then you don't need to use the endorsed directory. The endorsed directory is only needed if Xalan is shipped as part of the JDK and you want to use a different version of Xalan. If the JDK you are using does ship Xalan then is it not at the level that you need?</font> <br> <br><font size=2 face="sans-serif">Thanks.</font> <br><font size=2 face="sans-serif"><br> <br> Erin Harris<br> </font> <br> <br> <br> <table width=100%> <tr valign=top> <td width=40%><font size=1 face="sans-serif"><b>"Edwin Lee" < ;edwinlee.11@(protected)></b> </font> <p><font size=1 face="sans-serif">06/09/2006 05:56 AM</font> <td width=59%> <table width=100%> <tr valign=top> <td> <div align=right><font size=1 face="sans-serif">To</font></div> <td><font size=1 face="sans-serif">xalan-j-users@(protected)</font> <tr valign=top> <td> <div align=right><font size=1 face="sans-serif">cc</font></div> <td> <tr valign=top> <td> <div align=right><font size=1 face="sans-serif">Subject</font></div> <td><font size=1 face="sans-serif">Library Conflict Involving BCEL Library< /font></table> <br> <table> <tr valign=top> <td> <td></table> <br></table> <br> <br> <br><font size=3>Hi guys,<br> <br> 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.<br> <br> The background is that i'm running WebLogic Server 8.1 (on JDK 1.4).<br> <br> i need to deploy two web applications (WAR) on the app server.<br> <br> In web application 1,<br> 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.<br> <br> In web application 2, <br> 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.)<br> <br> <br> Has anyone ever experienced this? How do you get around it?<br> <br> <br> <br> Thanks in Advance,<br> Edwin<br> </font> <br>
|
|