六狼论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博账号登陆

只需一步,快速开始

搜索
查看: 174|回复: 0

jbpm4.4在jetty6下的ClassCastException

[复制链接]

升级  50%

5

主题

5

主题

5

主题

童生

Rank: 1

积分
25
 楼主| 发表于 2013-1-30 01:32:38 | 显示全部楼层 |阅读模式
在pom.xml中加入jBPM4.4的支持, 用jetty6跑的时候发现, 在jsp中只要使用EL就会报:
java.lang.ClassCastException: de.odysseus.el.ExpressionFactoryImpl cannot be cast to javax.el.ExpressionFactory.
 
后来在jbpm-4.4.pom中发现这样一段话:
The juel engine is the library from scripting.java.sun.com that exposes juel as a jsr233 scripting engine. It's not part of the juel distribution. For some reason i don't recall, we uploaded it as an juel-engine artifact in the group juel. And more problematic, used the juel version (2.1.0) for it. That is not intuitive.

怀疑是这个问题,于是在jbpm-pvm下排除:
<dependency>
   <groupId>org.jbpm.jbpm4</groupId>
   <artifactId>jbpm-pvm</artifactId>
   <version>4.4</version>
   <exclusions>
    <exclusion>
     <groupId>juel</groupId>
     <artifactId>juel-engine</artifactId>
    </exclusion>
    <exclusion>
     <groupId>juel</groupId>
     <artifactId>juel-api</artifactId>
    </exclusion>
    <exclusion>
     <groupId>juel</groupId>
     <artifactId>juel-impl</artifactId>
    </exclusion>
   </exclusions>
  </dependency>
 
问题解决.
您需要登录后才可以回帖 登录 | 立即注册 新浪微博账号登陆

本版积分规则

快速回复 返回顶部 返回列表