1 2 Previous Next 16 Replies Latest reply on Sep 6, 2011 1:01 AM by kishoret Go to original post
      • 15. Re: Instantiating a process in JBPM5
        kishoret

        Hi,

         

        I'm trying to do a simulator web application using Tomcat7, Oracle10 with the help of JBPM5 demo. As a process I could able to start the tomcat server successfully and could run below code without any issues,

         

                // load up the knowledge base

                KnowledgeBase kbase;

                try {

                    KnowledgeBuilder kbuilder = KnowledgeBuilderFactory.newKnowledgeBuilder();

                    kbuilder.add(ResourceFactory.newClassPathResource("Evaluation.bpmn"), ResourceType.BPMN2);

                    kbase = kbuilder.newKnowledgeBase();

                    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);

                    //logger.close();

                } catch (Exception e) {

                    System.out.println("Exception occurred : ");

                    e.printStackTrace();

                }

            }

         

         

        But while opening "Process Overview" under "Console", but I'm getting below exception, [I have tried the steps mentioned above]

         

        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?]

           set jbpm.console.directory=-Djbpm.console.directory=C:/jbpm-installer/sample/evaluation/src/main/resources

         

         

        Also I couldn't able to start "http://localhost:8080/drools-guvnor", do we need any extra configurations other than libraries?

         

         

        Your immediate response/help would me really greatfull. Please let me know if you need any information.

         

         

        Thanks,

        Kishore

        • 16. Re: Instantiating a process in JBPM5
          kishoret

          Any suggestions on this issue ? With this issue, I couldn't able to move further

          1 2 Previous Next