1 Reply Latest reply on Sep 26, 2011 4:37 AM by Shobhit Tyagi

    How to integrate jbpm4.4 into jboss5.1.0.GA?

    frh10 ff Newbie

      I install jbpm4.4 into jboss5 with the ant(build.xml):

      <?xml version="1.0" encoding="UTF-8"?>

      <!-- ====================================================================== -->
      <!--  jBPM: Workflow in Java                                                -->
      <!--                                                                        -->
      <!--  Distributable under LGPL license.                                     -->
      <!--  See terms of license at http://www.gnu.org.                           -->
      <!-- ====================================================================== -->

      <!-- $Id: build.xml 6507 2010-07-18 06:00:34Z alex.guizar@jboss.com $ -->

      <project name="jbpm.install">

        <!-- DEVELOPER SPECIFIC CONFIGURATIONS -->
        <property file="${user.home}/.jbpm4/build.properties" />

        <!-- USER CUSTOMIZABLE PROPERTIES -->
        <!-- {hsqldb | mysql | oracle | postgresql} -->
        <property name="database" value="mysql" />

        <!-- INTERNAL PROPERTY DEFAULTS -->
        <condition property="jbpm.home" value="${jbpm.parent.dir}/jbpm-4.x" else="${basedir}/..">
          <isset property="jbpm.parent.dir" />
        </condition>
        <property name="cfg.dest.dir" value="${jbpm.home}/install/generated/cfg" />
        <property name="install.src.dir" value="${jbpm.home}/install/src" />

        <property name="bind.address" value="localhost" />

        <property name="jdbc.properties.dir" value="${jbpm.home}/install/jdbc" />
        <property file="${jdbc.properties.dir}/${database}.properties" />

        <property name="examples.file" value="${jbpm.home}/examples/target/examples.jar" />

        <property name="tomcat.version" value="6.0.26" />
        <property name="tomcat.parent.dir" value="${jbpm.home}" />
        <property name="tomcat.home" value="${tomcat.parent.dir}/apache-tomcat-${tomcat.version}" />
        <property name="tomcat.filename" value="apache-tomcat-${tomcat.version}.zip" />
        <property name="tomcat.distro.dir" value="downloads" />
        <property name="tomcat.distro.url"
                  value="http://www.apache.org/dist/tomcat/tomcat-6/v${tomcat.version}/bin/${tomcat.filename}" />
        <property name="tomcat.distro.path" value="${tomcat.distro.dir}/${tomcat.filename}" />
        <property name="tomcat.lib.dir" value="${tomcat.home}/lib" />
        <property name="tomcat.webapps.dir" value="${tomcat.home}/webapps" />

        <property name="hsqldb.server.install.dir" value="${jbpm.home}/hsqldb-server" />
        <property name="hsqldb.server.source.dir" value="${jbpm.home}/install/src/hsqldb-server" />

        <property name="jboss.version" value="5.1.0.GA" />
        <property name="jboss.parent.dir" value="${jbpm.home}" />
        <property name="jboss.home" value="F:\jboss-5.1.0.GA" />
        <property name="jboss.filename" value="jboss-${jboss.version}.zip" />
        <property name="jboss.distro.dir" value="downloads" />
        <property name="jboss.distro.url"
                  value="http://downloads.sourceforge.net/jboss/${jboss.filename}" />
        <property name="jboss.distro.path" value="${jboss.distro.dir}/${jboss.filename}" />
        <property name="jboss.server.configuration" value="all-with-hornetq" />  
        <property name="jboss.server.config.dir"
                  value="${jboss.home}/server/${jboss.server.configuration}" />
      ..................

       

      the red parts are the modifications to fix my jboss and database,

       

      but when i start the jboss,it throw a error:

       

      2011-06-20 14:27:06,729 ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] (main) Error installing to Start: name=jboss.j2ee:module="jbpm-enterprise.jar",service=EjbModule state=Create mode=Manual requiredState=Installed

      org.jboss.deployment.DeploymentException: Error in jbosscmp-jdbc.xml : datasource-mapping MS SQLSERVER2005 not found

      at org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCEntityMetaData.<init>(JDBCEntityMetaData.java:517)

      at org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCApplicationMetaData.<init>(JDBCApplicationMetaData.java:327)

      at org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCXmlFileLoader.load(JDBCXmlFileLoader.java:80)

      at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.loadJDBCEntityMetaData(JDBCStoreManager.java:732)

      at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.initStoreManager(JDBCStoreManager.java:424)

      at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.start(JDBCStoreManager.java:368)

      at org.jboss.ejb.plugins.CMPPersistenceManager.start(CMPPersistenceManager.java:172)

      at org.jboss.ejb.EjbModule.startService(EjbModule.java:495)

      at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:376)

      at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:322)

      at sun.reflect.GeneratedMethodAccessor80.invoke(Unknown Source)

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

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

      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)

      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)

      at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)

      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)

      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)

      at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:189)

      at $Proxy38.start(Unknown Source)

      at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:42)

      at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:37)

      at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)

      at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)

      at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)

      at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)

      at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:286)

      at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)

      at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)

      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)

      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)

      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)

      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)

      at org.jboss.system.ServiceController.doChange(ServiceController.java:688)

      at org.jboss.system.ServiceController.start(ServiceController.java:460)

      at org.jboss.system.deployers.ServiceDeployer.start(ServiceDeployer.java:163)

      at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:99)

      at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:46)

      at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)

      at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)

      at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)

      at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)

      at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)

      at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1178)

      at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)

      at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)

      at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)

      at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)

      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)

      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)

      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)

      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)

      at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)

      at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:702)

      at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)

      at org.jboss.system.server.profileservice.repository.ProfileDeployAction.install(ProfileDeployAction.java:70)

      at org.jboss.system.server.profileservice.repository.AbstractProfileAction.install(AbstractProfileAction.java:53)

      at org.jboss.system.server.profileservice.repository.AbstractProfileService.install(AbstractProfileService.java:361)

      at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)

      at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)

      at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)

      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)

      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)

      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)

      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)

      at org.jboss.system.server.profileservice.repository.AbstractProfileService.activateProfile(AbstractProfileService.java:306)

      at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:271)

      at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:461)

      at org.jboss.Main.boot(Main.java:221)

      at org.jboss.Main$1.run(Main.java:556)

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

       

      How can i solve this problem?Thanks!

        • 1. Re: How to integrate jbpm4.4 into jboss5.1.0.GA?
          Shobhit Tyagi Master

          if you want to run your jbpm with jboss 5.1.0 and mysql, then only things you need to change are :

           

          1.the database parameter value to "mysql"

          2.Value of jboss.home is to be changed to the path of the server.

           

          Now the ant scripts to install jboss,install hsqldb server( and other hsqldb related scripts) should be ignored.

           

          If you also want to install the examples in your database, then the database parameter value should be changed to "mysql" in both the build files. One present in jBPM_HOME/install, and other in jBPM_HOME/examples.

           

          regards.