[Seasar-user:15778] JETTYと SEASER2

Masanobu Shimura [E-MAIL ADDRESS DELETED]
2008年 9月 18日 (木) 23:17:26 JST


志村です。

下記と同じ状況になりました。
Seasar2とJETTYは最新版では問題があるのですか?
あるとすれば、今後修正する可能性はありますか?

TOMCATでは動きますので、急いではいませんが状況を教えていただけますか。

よろしく

http://www3.atword.jp/nykdev/category/jetty/

Jetty+Seaser2の罠
Posted by nykdev on 5 月 21, 2008

JettyにSeaser2フレームワークを使用したアプリケーションをマウントすると、

java.lang.LinkageError: loader constraint violation in interface
itable initialization: when resolving method
"org.seasar.extension.dbcp.impl.XAConnectionImpl.getXAResource()Ljavax/transaction/xa/XAResource;"
the class loader (in stance of
org/mortbay/jetty/webapp/WebAppClassLoader) of the current class,
org/seasar/extension/dbcp/impl/XAConnectionI mpl, and the class loader
(instance of ) for interface javax/sql/XAConnection have different
Class objects f or the type javax/transaction/xa/XAResource used in
the signature

みたいなエラーが発生する。
Seaser2のjarとjettyのライブラリが衝突しているのだろうか。
ちなみに、このエラーが出たフレームワークのバージョンは、
Seaser2.4.18+S2Dao1.0.47でした。
Seaser2.4.11+S2Dao1.0.40に変えると、エラーが出なくなりました。

jettyで使用する場合は、バージョンに注意しないと、大変なことになります。
Posted under Jetty


Seasar-user メーリングリストの案内