`
ttitfly
  • 浏览: 622139 次
  • 性别: Icon_minigender_1
  • 来自: 杭州
社区版块
存档分类
最新评论

jbpm4与struts2整合包冲突

    博客分类:
  • JBPM
阅读更多
jbpm4与struts2整合包冲突错误如下:
description The server encountered an internal error () that prevented it from fulfilling this request.

exception

javax.servlet.ServletException: java.lang.LinkageError: loader constraint violation: when resolving interface method "javax.servlet.jsp.JspApplicationContext.getExpressionFactory()Ljavax/el/ExpressionFactory;" the class loader (instance of org/apache/jasper/servlet/JasperLoader) of the current class, org/apache/jsp/login_jsp, and the class loader (instance of org/apache/catalina/loader/StandardClassLoader) for resolved class, javax/servlet/jsp/JspApplicationContext, have different Class objects for the type javax/el/ExpressionFactory used in the signature
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:274)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
root cause

java.lang.LinkageError: loader constraint violation: when resolving interface method "javax.servlet.jsp.JspApplicationContext.getExpressionFactory()Ljavax/el/ExpressionFactory;" the class loader (instance of org/apache/jasper/servlet/JasperLoader) of the current class, org/apache/jsp/login_jsp, and the class loader (instance of org/apache/catalina/loader/StandardClassLoader) for resolved class, javax/servlet/jsp/JspApplicationContext, have different Class objects for the type javax/el/ExpressionFactory used in the signature
	org.apache.jsp.login_jsp._jspInit(login_jsp.java:21)
	org.apache.jasper.runtime.HttpJspBase.init(HttpJspBase.java:80)
	org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:157)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:320)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:803)


解决办法:
1。 juel.jar,juel-engine.jar,juel-impl.jar把jbpm下的这3个包剪切到tomcat/lib下。
2。 删除tomcat/lib/el-api.jar包
分享到:
评论
2 楼 yizhl 2012-10-27  
That will happen when you include server-specific libraries of a different server make/version in the /WEB-INF/lib of your web application, such as jsp-api.jar, el-api.jar, servlet-api.jar, etc. You need to remove them all. The /WEB-INF/lib should not contain any server-specific libraries. They belongs in the specific server itself (Tomcat has them in its /lib folder already).

This is by the way a pretty common beginner's mistake whenever they encounter compilation errors on the JSP/Servlet API in their IDE project. This should have been solved differently, namely by integrating the server in the IDE and adding the server as "Target runtime" to the project.
1 楼 yefansiping 2011-08-18  
貌似不行啊

相关推荐

    Jbpm4.4+hibernate3.5.4+spring3.0.4+struts2.1.8整合

    这个例子展示了如何使用Struts2、Spring和Hibernate与JBPM配合实现一个请假流程。开发者需要定义请假流程的jpdl文件,创建对应的数据库表,然后在Struts2的Action中调用JBPM的服务来启动、完成任务和查询流程状态。 ...

    jbpm+ssh整合

    【jbpm+ssh整合】是将企业级工作流引擎jbpm与流行的SSH(Struts、Spring、Hibernate)框架集成,实现一个完整的业务流程管理系统。jbpm是一个开源的工作流引擎,可以处理复杂的业务流程自动化,而SSH是Java开发中...

    jBPM4.4整合SSH2

    整合 jBPM 4.4 与 SSH2 需要准备相应的 jar 包,包括 SSH2 的核心库和 jBPM 的特定库。其中,jbpm.jar 包含了 jBPM 的核心组件,mail.jar 处理邮件通信,juel 相关的 jar 包用于表达式语言支持。同时,需要移除或...

    jBPM4.4+ssh 整合配置及完整实例

    在本实例中,我们将讨论如何将jBPM 4.4版本与SSH(Spring、Struts、Hibernate)框架整合,以构建一个完整的业务流程应用。 **一、jBPM简介** jBPM4.4是jBPM系列的一个稳定版本,提供了工作流管理的核心功能,包括...

    JBPM整合项目.doc

    在已整合SSH2(Struts2、Hibernate、Spring)的项目基础上,只需添加jbpm.jar、juel-api.jar、juel-engine.jar、juel-impl.jar、mail.jar、livetribe-jsr223.jar等核心库。特别注意,由于Juel-api.jar、Juel-engine....

    jbpm与ssh的集成

    2. **事务管理**:jbpm的事务管理与SSH的事务管理可能存在冲突,需要仔细调整事务配置。 3. **资源加载**:jbpm的工作流定义文件(.bpmn或.bpmn2)可能无法正确加载,需检查路径和配置。 4. **异常处理**:在流程...

    S2SH+e3p0+jbpm4.3完美实例内涵测试代码oracle

    【标题】"S2SH+e3p0+jbpm4.3完美实例内涵测试代码oracle" 提供了一个集成框架的实践案例,其中包含了Spring、Struts2、Hibernate(S2SH)与e3p0数据源以及jbpm4.3工作流引擎的整合,并附带了针对Oracle数据库的测试...

    ssh框架的搭建

    - 删除`asm.jar`和旧版本的`log4j.jar`,以避免与Spring和Hibernate中的类库冲突。 - 引入`commons-dbcp.jar`和`commons-pool.jar`,这两个类库提供了数据库连接池和对象池的功能,对提高系统性能和资源利用率有显著...

Global site tag (gtag.js) - Google Analytics