sample例子中jbpm4web运行出错解决办法



 2010-5-6 16:03:23 org.apache.catalina.core.StandardWrapperValve invoke
严重: Servlet.service() for servlet jsp threw exception
org.apache.jasper.JasperException: Unable to compile class for JSP:

An error occurred at line: 13 in the jsp file: /index.jsp
ProcessEngine cannot be resolved to a type
10: <body>
11: <a href="index.jsp?action=deploy">deploy</a>
12: <%
13:  ProcessEngine processEngine = Configuration.getProcessEngine();
14:  
15:     RepositoryService repositoryService = processEngine.getRepositoryService();
16:  


An error occurred at line: 13 in the jsp file: /index.jsp
Configuration cannot be resolved
10: <body>
11: <a href="index.jsp?action=deploy">deploy</a>
12: <%
13:  ProcessEngine processEngine = Configuration.getProcessEngine();
14:  
15:     RepositoryService repositoryService = processEngine.getRepositoryService();
16:  


An error occurred at line: 15 in the jsp file: /index.jsp
RepositoryService cannot be resolved to a type
12: <%
13:  ProcessEngine processEngine = Configuration.getProcessEngine();
14:  
15:     RepositoryService repositoryService = processEngine.getRepositoryService();
16:  
17:  String action = request.getParameter("action");
18:  


An error occurred at line: 26 in the jsp file: /index.jsp
ProcessDefinition cannot be resolved to a type
23:   
24:  }
25:  
26:  List<ProcessDefinition> list = repositoryService.createProcessDefinitionQuery().list();
27:  
28:  for(ProcessDefinition pd:list)
29:  {


An error occurred at line: 28 in the jsp file: /index.jsp
ProcessDefinition cannot be resolved to a type
25:  
26:  List<ProcessDefinition> list = repositoryService.createProcessDefinitionQuery().list();
27:  
28:  for(ProcessDefinition pd:list)
29:  {
30: %>
31:


Stacktrace:
 at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:93)
 at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)
 at org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:451)
 at org.apache.jasper.compiler.Compiler.compile(Compiler.java:328)
 at org.apache.jasper.compiler.Compiler.compile(Compiler.java:307)
 at org.apache.jasper.compiler.Compiler.compile(Compiler.java:295)
 at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:565)
 at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:309)
 at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:308)
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:259)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
 at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
 at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172)
 at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
 at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
 at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
 at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
 at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:879)
 at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
 at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
 at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
 at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
 at java.lang.Thread.run(Unknown Source)
2010-5-6 16:03:47 org.apache.catalina.core.StandardWrapperValve invoke
严重: Servlet.service() for servlet jsp threw exception
org.apache.jasper.JasperException: Unable to compile class for JSP:

An error occurred at line: 13 in the jsp file: /index.jsp
ProcessEngine cannot be resolved to a type
10: <body>
11: <a href="index.jsp?action=deploy">deploy</a>
12: <%
13:  ProcessEngine processEngine = Configuration.getProcessEngine();
14:  
15:     RepositoryService repositoryService = processEngine.getRepositoryService();
16:  


An error occurred at line: 13 in the jsp file: /index.jsp
Configuration cannot be resolved
10: <body>
11: <a href="index.jsp?action=deploy">deploy</a>
12: <%
13:  ProcessEngine processEngine = Configuration.getProcessEngine();
14:  
15:     RepositoryService repositoryService = processEngine.getRepositoryService();
16:  


An error occurred at line: 15 in the jsp file: /index.jsp
RepositoryService cannot be resolved to a type
12: <%
13:  ProcessEngine processEngine = Configuration.getProcessEngine();
14:  
15:     RepositoryService repositoryService = processEngine.getRepositoryService();
16:  
17:  String action = request.getParameter("action");
18:  


An error occurred at line: 26 in the jsp file: /index.jsp
ProcessDefinition cannot be resolved to a type
23:   
24:  }
25:  
26:  List<ProcessDefinition> list = repositoryService.createProcessDefinitionQuery().list();
27:  
28:  for(ProcessDefinition pd:list)
29:  {


An error occurred at line: 28 in the jsp file: /index.jsp
ProcessDefinition cannot be resolved to a type
25:  
26:  List<ProcessDefinition> list = repositoryService.createProcessDefinitionQuery().list();
27:  
28:  for(ProcessDefinition pd:list)
29:  {
30: %>
31:


Stacktrace:
 at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:93)
 at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)
 at org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:451)
 at org.apache.jasper.compiler.Compiler.compile(Compiler.java:328)
 at org.apache.jasper.compiler.Compiler.compile(Compiler.java:307)
 at org.apache.jasper.compiler.Compiler.compile(Compiler.java:295)
 at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:565)
 at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:309)
 at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:308)
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:259)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
 at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
 at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172)
 at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
 at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
 at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
 at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
 at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:879)
 at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
 at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
 at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
 at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
 at java.lang.Thread.run(Unknown Source)
2010-5-6 16:03:50 org.apache.catalina.loader.WebappClassLoader modified

 

 

 

 

其实一年前我就接触了一点jbpm,只是当时没有认真学习现在捡起来学学毕竟时间久了慢慢忘记一些东西。

 

今天看到一个jbpm4.3程序导入eclipse3.5之后运行出错于是看了下发现问题在这里。

 <!--StartFragment -->

 <!--StartFragment -->
 
将java EE Module Dependencies 中导入的包引入即可。

 

 

你可能感兴趣的:(java,apache,tomcat,jsp,servlet)