开发者社区> 问答> 正文

配置好了jbpm4.4的一个例子但是报错找不到配置文件?报错

HTTP Status 500 - An exception occurred processing JSP page /deploy.jsp at line 20

type Exception report

message An exception occurred processing JSP page /deploy.jsp at line 20

description The server encountered an internal error that prevented it from fulfilling this request.

exception

org.apache.jasper.JasperException: An exception occurred processing JSP page /deploy.jsp at line 20

17: 		if (deployFile != null && deployFile != "") {
18: 			//必须使用的,流程引擎
19: 			ProcessEngine processEngine = Configuration.getProcessEngine();
20: 			RepositoryService repositoryService = processEngine.getRepositoryService();
21: 			try {
22: 				String file = deployFile;
23: 				//将ZIP文件封转到IO流里


Stacktrace:
	org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:568)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:470)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:728)

root cause

org.jbpm.api.JbpmException: resource jbpm.cfg.xml does not exist
	org.jbpm.pvm.internal.stream.ResourceStreamInput.openStream(ResourceStreamInput.java:60)
	org.jbpm.pvm.internal.xml.Parse.getInputSource(Parse.java:146)
	org.jbpm.pvm.internal.xml.Parser.buildDocument(Parser.java:453)
	org.jbpm.pvm.internal.xml.Parser.execute(Parser.java:425)
	org.jbpm.pvm.internal.xml.Parse.execute(Parse.java:158)
	org.jbpm.pvm.internal.cfg.ConfigurationImpl.parse(ConfigurationImpl.java:137)
	org.jbpm.pvm.internal.cfg.ConfigurationImpl.setResource(ConfigurationImpl.java:116)
	org.jbpm.pvm.internal.cfg.ConfigurationImpl.setResource(ConfigurationImpl.java:50)
	org.jbpm.api.Configuration.setResource(Configuration.java:79)
	org.jbpm.api.Configuration.getProcessEngine(Configuration.java:126)
	org.apache.jsp.deploy_jsp._jspService(deploy_jsp.java:86)
	org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:728)

note The full stack trace of the root cause is available in the Apache Tomcat/7.0.42 logs.

这是我的项目结构图

弱弱的问一句,那个配置文件是放那吗?

展开
收起
爱吃鱼的程序员 2020-06-22 14:58:24 498 0
1 条回答
写回答
取消 提交回答
  • https://developer.aliyun.com/profile/5yerqm5bn5yqg?spm=a2c6h.12873639.0.0.6eae304abcjaIB

    我报的也是这个错误啊!搞不定啊!

    我也纠结了好久,这是为什么啊?ProcessEngineprocessEngine=Configuration.getProcessEngine();

    这一句在java中可以,但是web就不行了。求解!!

    请问这个问题解决了嘛?我也遇到同样的问题,求指教<divclass='ref'>

    引用来自“370000308”的评论

    我也纠结了好久,这是为什么啊?ProcessEngineprocessEngine=Configuration.getProcessEngine();

    这一句在java中可以,但是web就不行了。求解!!

    2020-06-22 14:58:42
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
低代码开发师(初级)实战教程 立即下载
冬季实战营第三期:MySQL数据库进阶实战 立即下载
阿里巴巴DevOps 最佳实践手册 立即下载