kuniku’s diary

はてなダイアリーから移行(旧 d.hatena.ne.jp/kuniku/)、表示がおかしな箇所はコメントをお願いします。記載されている内容は日付およびバージョンに注意してください。直近1年以上前は古い情報の可能性が高くなります。

weblogicでjava.lang.NoSuchMethodError: と出たら

weblogic利用バージョン:10.3
利用ライブラリ:org.apache.commons.langである commons-lang-2.4.jar を利用している場合

以下のようにmweblogic.xmlを修正する、または setDomainEnv.shを修正する

http://ananthkannan.blogspot.com/2009/08/beware-of-stringutilscontainsignorecase.html
weblogic.xml

    <container-descriptor>
      <prefer-web-inf-classes>true</prefer-web-inf-classes>
    </container-descriptor>


http://forums.oracle.com/forums/thread.jspa?threadID=934223
http://documentation.magnolia-cms.com/administration/installation/war/weblogic.html

If you run into such issue, you need to provide newer JDOM/Jaxen libraries by adding jdom-1.0.jar, jaxen-1.0-FCS-full.jar, xom-1.1.jar and saxpath-1.0-FCS.jar to the PRE_CLASSPATH variable in the setDomainEnv.sh script.