3 Replies Latest reply on Feb 12, 2012 11:20 AM by Sinha Bahu

    jBMP 5.2 on jboss-5.1.0.GA

    Sinha Bahu Newbie

      How can I install jBMP 5.2 (demo) on jboss-5.1.0.GA?

       

      Thanks,

      /Sinha

        • 1. Re: jBMP 5.2 on jboss-5.1.0.GA
          Demian Calcaprina Master

          Hi, check build.properties, and uncomment these lines:

          #   jboss.server.version=5.1.0.GA

          #   jboss.home=./jboss-${jboss.server.version}

          #   jboss.download.url=http://downloads.sourceforge.net/jboss/jboss-${jboss.server.version}.zip

          #   jboss.server.configuration=default

          #   jboss.server.deploy.dir=${jboss.home}/server/${jboss.server.configuration}/deploy

          #   jboss.server.data.dir=${jboss.home}/server/${jboss.server.configuration}/data/

           

          Regards,

           

          Demian

          1 of 1 people found this helpful
          • 2. Re: jBMP 5.2 on jboss-5.1.0.GA
            Sinha Bahu Newbie

            Hi Demian,

            Thanks for the reply. I did that and ran ant install.demo. But I get this error when I go to the Overview Processes window in the jbpm console:

             

            org.jboss.resteasy.spi.UnhandledException: java.lang.RuntimeException: Could not initialize stateful knowledge session: [PersistenceUnit: org.jbpm.persistence.jpa] Unable to build EntityManagerFactory
                 org.jboss.resteasy.core.SynchronousDispatcher.unwrapException(SynchronousDispatcher.java:345)
                 org.jboss.resteasy.core.SynchronousDispatcher.handleApplicationException(SynchronousDispatcher.java:321)
                 org.jboss.resteasy.core.SynchronousDispatcher.handleException(SynchronousDispatcher.java:214)
                 org.jboss.resteasy.core.SynchronousDispatcher.handleInvokerException(SynchronousDispatcher.java:190)
                 org.jboss.resteasy.core.SynchronousDispatcher.getResponse(SynchronousDispatcher.java:534)
                 org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:496)
                 org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:119)
                 org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:208)
                 org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:55)
                 org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:50)
                 javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
                 org.jboss.bpm.console.server.util.GWTJsonFilter.doFilter(GWTJsonFilter.java:59)
                 org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
            

             

            root cause

            java.lang.RuntimeException: Could not initialize stateful knowledge session: [PersistenceUnit: org.jbpm.persistence.jpa] Unable to build EntityManagerFactory
                 org.jbpm.integration.console.CommandDelegate.newStatefulKnowledgeSession(CommandDelegate.java:244)
                 org.jbpm.integration.console.CommandDelegate.getSession(CommandDelegate.java:252)
                 org.jbpm.integration.console.CommandDelegate.<init>(CommandDelegate.java:92)
                 org.jbpm.integration.console.ProcessManagement.<init>(ProcessManagement.java:35)
                 org.jbpm.integration.console.ManagementFactory.createProcessManagement(ManagementFactory.java:22)
                 org.jbpm.integration.console.ManagementFactory.createProcessManagement(ManagementFactory.java:19)
                 org.jboss.bpm.console.server.ProcessMgmtFacade.getProcessManagement(ProcessMgmtFacade.java:86)
                 org.jboss.bpm.console.server.ProcessMgmtFacade.getDefinitionsJSON(ProcessMgmtFacade.java:122)
                 sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

             

            Any idea what's going on?

             

            Thanks,

            /Sinha

            • 3. Re: jBMP 5.2 on jboss-5.1.0.GA
              Sinha Bahu Newbie

              I figured it out.

               

              I had to comment the line for AS7 and uncomment the one for AS5 in installer/db/persistance.xml, run ant clean.demo and and ant install.demo.

               

                    <!-- for AS7 -->
                    <!-- property name="hibernate.transaction.manager_lookup_class" value="org.jbpm.integration.console.JBPMTransactionManager" / -->
                    <!-- for AS5 -->
                    <property name="hibernate.transaction.manager_lookup_class" value="org.hibernate.transaction.JBossTransactionManagerLookup" />

               

              Now I see the Evaluation example process in the console.

               

              /Sinha