3 Replies Latest reply on Apr 1, 2014 6:12 AM by 伟思 魏

    JBPM GWT Consolte not loading

    Amit Kayal Newbie

      Hi All,

       

      I have installed the JBPM 6.0.1 and it seems that JBPM GWT Consolte url not loading and throwing following error in the url http://localhost:8080/drools-guvnor

       

      type Status report

      message /drools-guvnor

      description The requested resource (/drools-guvnor) is not available.


      But my JBPM Console is working fine and the url http://localhost:8080/jbpm-console is opening the log in page

       

      I have reinstalled multiple times and still the GWT console not working for me. Could you please help me on this?


      Thanks

      Amit

        • 1. Re: JBPM GWT Consolte not loading
          Demian Calcaprina Master

          Hi Amit, why do you want to access to http://localhost:8080/drools-guvnor.

          This is for the old guvnor of old drools versions

           

          I think everything should be in http://localhost:8080/jbpm-console.

          Thanks,

           

          Demian

          1 of 1 people found this helpful
          • 2. Re: JBPM GWT Consolte not loading
            Amit Kayal Newbie

            Hi Demian,

             

            Thanks a lot for your reply. I am quite new to jBPM and was reading the book "jBPM5 Developers Guide". The book has reference of Guvnor for GWT and for all the Business Process Diagram...So are you saying that I do not need to use Guvnor/Drools console any more and will get everything into jBPM console?

             

            Thanks

            Amit

            • 3. Re: JBPM GWT Consolte not loading
              伟思 魏 Newbie

              java.lang.RuntimeException: Could not commit session or rollback

                at org.drools.persistence.SingleSessionCommandService.rollbackTransaction(SingleSessionCommandService.java:406)

                at org.drools.persistence.SingleSessionCommandService.execute(SingleSessionCommandService.java:381)

                at org.drools.command.impl.CommandBasedStatefulKnowledgeSession.startProcess(CommandBasedStatefulKnowledgeSession.java:223)

                at com.wws.util.JbpmAPIUtil.startWorkflowProcess(JbpmAPIUtil.java:183)

                at com.wws.service.impl.LeaveServiceImpl.addNewLeave(LeaveServiceImpl.java:79)

                at com.wws.action.AddLeaveAction.onClick$btnAddLeave(AddLeaveAction.java:117)

                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

                at java.lang.reflect.Method.invoke(Method.java:597)

                at org.zkoss.zk.ui.event.GenericEventListener.onEvent(GenericEventListener.java:82)

                at org.zkoss.zk.ui.AbstractComponent.onEvent(AbstractComponent.java:2742)

                at org.zkoss.zk.ui.AbstractComponent.service(AbstractComponent.java:2713)

                at org.zkoss.zk.ui.AbstractComponent.service(AbstractComponent.java:2654)

                at org.zkoss.zk.ui.impl.EventProcessor.process(EventProcessor.java:136)

                at org.zkoss.zk.ui.event.Events.sendEvent(Events.java:325)

                at org.zkoss.zk.ui.event.Events.sendEvent(Events.java:348)

                at org.zkoss.zk.ui.AbstractComponent$ForwardListener.onEvent(AbstractComponent.java:3180)

                at org.zkoss.zk.ui.AbstractComponent.onEvent(AbstractComponent.java:2742)

                at org.zkoss.zk.ui.AbstractComponent.service(AbstractComponent.java:2713)

                at org.zkoss.zk.ui.AbstractComponent.service(AbstractComponent.java:2654)

                at org.zkoss.zk.ui.impl.EventProcessor.process(EventProcessor.java:136)

                at org.zkoss.zk.ui.impl.UiEngineImpl.processEvent(UiEngineImpl.java:1717)

                at org.zkoss.zk.ui.impl.UiEngineImpl.process(UiEngineImpl.java:1502)

                at org.zkoss.zk.ui.impl.UiEngineImpl.execUpdate(UiEngineImpl.java:1212)

                at org.zkoss.zk.au.http.DHtmlUpdateServlet.process(DHtmlUpdateServlet.java:600)

                at org.zkoss.zk.au.http.DHtmlUpdateServlet.doGet(DHtmlUpdateServlet.java:482)

                at org.zkoss.zk.au.http.DHtmlUpdateServlet.doPost(DHtmlUpdateServlet.java:491)

                at javax.servlet.http.HttpServlet.service(HttpServlet.java:647)

                at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)

                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)

                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)

                at org.springframework.orm.jpa.support.OpenEntityManagerInViewFilter.doFilterInternal(OpenEntityManagerInViewFilter.java:113)

                at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)

                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)

                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)

                at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)

                at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)

                at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)

                at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)

                at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)

                at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953)

                at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)

                at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)

                at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1041)

                at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:603)

                at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312)

                at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)

                at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)

                at java.lang.Thread.run(Thread.java:619)

              Caused by: java.lang.RuntimeException: Unable to rollback transaction

                at org.drools.container.spring.beans.persistence.DroolsSpringTransactionManager.rollback(DroolsSpringTransactionManager.java:85)

                at org.drools.persistence.SingleSessionCommandService.rollbackTransaction(SingleSessionCommandService.java:402)

                ... 49 more

              Caused by: org.springframework.transaction.IllegalTransactionStateException: Transaction is already completed - do not call commit or rollback more than once per transaction

                at org.springframework.transaction.support.AbstractPlatformTransactionManager.rollback(AbstractPlatformTransactionManager.java:817)

                at org.drools.container.spring.beans.persistence.DroolsSpringTransactionManager.rollback(DroolsSpringTransactionManager.java:79)

                ... 50 more

               

               

              the error code:

              public ProcessInstance startWorkflowProcess() {

                ProcessInstance pi = null;

                if (logger == null) {

                logger = new JPAWorkingMemoryDbLogger(ksession);

                System.out.println("----start logger-----");

                }

                try {

                MinaHTWorkItemHandler workItemHandler = new MinaHTWorkItemHandler(

                localTaskService, ksession);

                workItemHandler.setLocal(true);

                workItemHandler.connect();

                ksession.getWorkItemManager().registerWorkItemHandler("Human Task",

                workItemHandler);

                pi = ksession.startProcess(processDefId, params);    //this point throw excepiton

                logger.dispose();

                } catch (Exception e) {

                e.printStackTrace();

                }

                return pi;

                }