4月 7th, 2008at 18:25

Tags: ,

WebLogic8.1でweblogic.xmlを使ったクラスローディングを制御する

weblogic特有の設定ができる。

prefer-web-inf-classes

デフォルトはfalse。trueにすると、WebアプリケーションのWEB-INF以下のライブラリが優先的にロードされる。

<?xml version="1.0" encoding="UTF-8"?><weblogic-web-app> <container-descriptor>  <prefer-web-inf-classes>true</prefer-web-inf-classes> </container-descriptor></weblogic-web-app>

同じクラスのコピーがあるとClassCastExceptionが発生する。(参考:ClassCastExceptionの調査

http://jp.bea.com/e-docs/wls/docs81/programming/classloading.html