2008年10月14日火曜日

Tomcat5と6のはざまで

Tomcat5で動作しているWebApp(S2, teeda)をTomcat6にて起動しようとしていたら、、、
commons-el がないから起動できないとのエラーログ。POMを見てみると、見事にExcludeしてあった。

<dependency>
<groupId>org.seasar.teeda</groupId>
<artifactId>teeda-tiger</artifactId>
<version>1.0.12</version>
<scope>compile</scope>
<exclusions>
<exclusion>
<groupId>org.seasar.container</groupId>
<artifactId>s2-extension</artifactId>
</exclusion>
<exclusion>
<groupId>org.seasar.container</groupId>
<artifactId>s2-framework</artifactId>
</exclusion>
<exclusion>
<groupId>commons-el</groupId>
<artifactId>commons-el</artifactId>
</exclusion>
<exclusion>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
</exclusion>
</exclusions>
</dependency>

調べてみると、Tomca6では「Unified EL」を使用するように仕様が変わった(JSP/Servletの仕様に連動していの変更)ため、commons-elは不要になったようで、クラスパスには存在しなくなったために上記のエラーとなっていた。

[[教訓]]他で動作していて自分のところでエラーとなる場合は環境を疑うこと

0 件のコメント: