kishore t [
http://community.jboss.org/people/kishoret] created the discussion
"problems using jbpm5 integrated with oracle and tomcat"
To view the discussion, visit:
http://community.jboss.org/message/624917#624917
--------------------------------------------------------------
Hi,
I'm trying to develop a web application using jBPM5 integrating with Tomcat7,
Oracle10. I could able to start tomcat server and execute code snippet successfully after
integration.
*But while opening "Process Overview" under "Console", I'm getting
below exception,*
Sep 2, 2011 5:39:07 PM org.apache.mina.filter.logging.LoggingFilter log
INFO: CREATED
Sep 2, 2011 5:39:07 PM org.apache.mina.filter.logging.LoggingFilter log
INFO: OPENED
*No properties file: roles.properties found*
Sep 2, 2011 5:39:07 PM org.apache.mina.filter.logging.LoggingFilter log
INFO: RECEIVED: HeapBuffer[pos=0 lim=178 cap=2048: 00 00 00 AE AC ED 00 05 73 72 01 00 1D
6F 72 67...]
Sep 2, 2011 5:39:07 PM org.apache.mina.filter.logging.LoggingFilter log
INFO: SENT: HeapBuffer[pos=0 lim=188 cap=256: 00 00 00 B8 AC ED 00 05 73 72 01 00 1D 6F 72
67...]
Sep 2, 2011 5:39:07 PM org.apache.mina.filter.logging.LoggingFilter log
INFO: SENT: HeapBuffer[pos=0 lim=0 cap=0: empty]
*jbpm.console.directory property not found*
Sep 2, 2011 5:39:13 PM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet [Resteasy] in context with path
[/gwt-console-server] threw exception
*org.jboss.resteasy.spi.UnhandledException: java.lang.RuntimeException: Could not
initialize stateful knowledge session: No Persistence provider for EntityManager named
org.jbpm.persistence.jpa*
at
org.jboss.resteasy.core.SynchronousDispatcher.handleApplicationException(SynchronousDispatcher.java:319)
at
org.jboss.resteasy.core.SynchronousDispatcher.handleException(SynchronousDispatcher.java:230)
at
org.jboss.resteasy.core.SynchronousDispatcher.handleInvokerException(SynchronousDispatcher.java:206)
at
org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:360)
at
org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:173)
at
org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:93)
at
org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:68)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:304)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
...........
Even in console its reporting about the properties file, I've set the path in
Catalina.bat as, [I'm not sure about roles.properties where to set in tomcat path?]
* set
JBPM_DIRECTORY=-Djbpm.console.directory=C:/jbpm-installer/sample/evaluation/src/main/resources*
*my code snippet:*
KnowledgeBase kbase;
try {
KnowledgeBuilder kbuilder = KnowledgeBuilderFactory.newKnowledgeBuilder();
kbuilder.add(ResourceFactory.newClassPathResource("Evaluation.bpmn"),
ResourceType.BPMN2);
kbase = kbuilder.newKnowledgeBase();
System.out.println("Process flow started ");
StatefulKnowledgeSession ksession = kbase.newStatefulKnowledgeSession();
KnowledgeRuntimeLogger logger =
KnowledgeRuntimeLoggerFactory.newThreadedFileLogger(ksession, "test", 1000);
ksession.getWorkItemManager().registerWorkItemHandler("Human Task",
new WSHumanTaskHandler());
// start a new process instance
Map<String, Object> params = new HashMap<String, Object>();
params.put("employee", "krisv");
params.put("reason", "Yearly performance evaluation");
ksession.startProcess("com.sample.evaluation", params);
System.out.println("Process Id : " + ksession.getId());
logger.close();
} catch (Exception e) {
System.out.println("Exception occurred : ");
e.printStackTrace();
}
}
Also I couldn't able to start " *http://localhost:8080/drools-guvnor
http://localhost:8080/drools-guvnor*", do we need any extra configurations other than
libraries?
Your immediate response/help would be really greatfull. Please let me know if you need any
information.
Thanks,
--------------------------------------------------------------
Reply to this message by going to Community
[
http://community.jboss.org/message/624917#624917]
Start a new discussion in jBPM at Community
[
http://community.jboss.org/choose-container!input.jspa?contentType=1&...]