2

私のアプリケーションは、Spring と共に apache camel を使用しています。以下に示す camel-context.xml の EL 式で例外が発生しています。in.body はリクエスト オブジェクトであり、getParam() メソッドがあります。

<filter>
    <el>${(in.body.getParam != null) and (in.body.getParam[validate] == 'Y')}</el>
    <log message="validating...${in.body.getParam[errorResponse]}" />
    <filter>
        <method ref="validationExecutor" method="execute" ></method>
        <setBody><simple>${in.body.getParam[errorResponse]}</simple></setBody>
        <stop />
    </filter>
</filter>

依存関係を次のように追加しました

<dependency>
            <groupId>org.apache.camel</groupId>
            <artifactId>camel-juel</artifactId>
            <version>2.10.0</version>
</dependency>

それでも私は例外 java.lang.ClassNotFoundException: de.odysseus.el.E​​xpressionFactoryImpl を取得しています

vm arg -verbose:class を使用してロードされたクラスをさらに調べたところ、EL に関連する他の jar がロードされていることがわかりました。

apache-tomcat-7.0.62/lib/el-api.jar
geronimo-el_1.0_spec-1.0.1.jar

私はそれらをpomで指定していませんが、それでもこれらのjarが追加されました. どうすればそれらを削除できますか?

4

0 に答える 0