5 Replies Latest reply on May 1, 2006 4:19 PM by Alejandro Guizar

    jBPM on a Linux (debian) Box

    Bernhard Newbie

      hi,
      first of all, I'd like to excuse my english. I know, it is not good, but I'll try to explain my problem and hope somebody can understand and help me.

      I'll tryout jBPM on a Linux-box. I guess, it should work. But i cannot find any documentation, how to do this. In JbpmGettingStarted it is just explained, how to start in a windows-box. I tried to start run.sh. The result is, that the core-system could be startet but jboss-start failed with

      org.jboss.deployment.DeploymentException: url file:/srv/jboss/jbpm-server/server/default/conf/jboss-service.xml could not be opened, does it exist?
      


      Then I tried to start jBPM with run.sh -c jbpm. Some nullpointer-exceptions were thrown in this variant.

      Is it possible to run jBPM (starter-kit) wtihin linux (debian) and if yes - what must be done to get it work.

      Thanks.
      bernhard

        • 1. Re: jBPM on a Linux (debian) Box
          Ronald van Kuijk Master

          you are right btw, there is not start.sh like there is a start.bat

          run -c jbpm should work afaik

          what null-pointer exceptions were there?

          • 2. Re: jBPM on a Linux (debian) Box
            Bernhard Newbie

            the systems seems to poll something. is this right? the following sequence appears in minimum every second:

            17:37:50,068 DEBUG [JbpmContext] creating JbpmContext
            17:37:50,068 DEBUG [DbPersistenceServiceFactory] creating persistence service
            17:37:50,068 DEBUG [DbPersistenceService] creating hibernate session
            17:37:50,068 DEBUG [DbPersistenceService] beginning hibernate transaction
            17:37:50,069 DEBUG [SchedulerThread] checking for timers
            17:37:50,070 DEBUG [JbpmContext] closing JbpmContext
            17:37:50,070 DEBUG [Services] closing service 'persistence': org.jbpm.persistence.db.DbPersistenceService@1f8d0a4
            17:37:50,070 DEBUG [DbPersistenceService] committing hibernate transaction
            17:37:50,070 DEBUG [DbPersistenceService] closing hibernate session
            17:37:50,119 DEBUG [StaticNotifier] woke up
            17:37:50,119 DEBUG [JbpmContextInfo] creating jbpm context with service factories '[message, scheduler, logging, persistence, authentication]'
            17:37:50,119 DEBUG [JbpmContext] creating JbpmContext
            17:37:50,119 DEBUG [DbPersistenceServiceFactory] creating persistence service
            17:37:50,119 DEBUG [DbPersistenceService] creating hibernate session
            17:37:50,119 DEBUG [DbPersistenceService] beginning hibernate transaction
            17:37:50,120 DEBUG [JbpmContext] closing JbpmContext
            17:37:50,120 DEBUG [Services] closing service 'persistence': org.jbpm.persistence.db.DbPersistenceService@b8db77
            17:37:50,120 DEBUG [DbPersistenceService] committing hibernate transaction
            17:37:50,120 DEBUG [DbPersistenceService] closing hibernate session
            17:37:50,120 DEBUG [Services] closing service 'message': org.jbpm.msg.db.DbMessageService@507269
            17:37:50,120 DEBUG [CommandExecutorThread] waiting for more messages
            17:37:50,121 DEBUG [StaticNotifier] going to wait for (CMD_EXECUTOR, java.lang.Object@15fdf31)
            


            the nullpointer exception occured not more. therefor a lot of warnings:

            17:42:13,343 WARN [EhCacheProvider] Could not find configuration [org.jbpm.graph.def.Node]; using defaults.
            17:42:13,575 WARN [EhCacheProvider] Could not find configuration [org.jbpm.instantiation.Delegation]; using defaults.
            17:42:14,690 WARN [EhCacheProvider] Could not find configuration [org.jbpm.taskmgmt.def.Task]; using defaults.
            17:42:15,056 WARN [EhCacheProvider] Could not find configuration [org.jbpm.graph.def.ProcessDefinition]; using defaults.
            17:42:15,226 WARN [EhCacheProvider] Could not find configuration [org.jbpm.graph.def.ExceptionHandler]; using defaults.
            17:42:15,382 WARN [EhCacheProvider] Could not find configuration [org.jbpm.module.def.ModuleDefinition]; using defaults.
            17:42:16,599 WARN [EhCacheProvider] Could not find configuration [org.jbpm.graph.def.Action]; using defaults.
            17:42:17,618 WARN [EhCacheProvider] Could not find configuration [org.jbpm.graph.def.Event]; using defaults.
            17:42:19,780 WARN [EhCacheProvider] Could not find configuration [org.jbpm.context.def.VariableAccess]; using defaults.
            17:42:20,187 WARN [EhCacheProvider] Could not find configuration [org.jbpm.graph.def.Transition]; using defaults.
            17:42:21,407 WARN [EhCacheProvider] Could not find configuration [org.jbpm.taskmgmt.def.TaskController]; using defaults.
            17:42:21,512 WARN [EhCacheProvider] Could not find configuration [org.jbpm.taskmgmt.def.TaskMgmtDefinition.tasks]; using
            defaults.
            


            and at the beginning of starting the server the following errors are displayed:
            run.sh: Missing file: /lib/tools.jar
            run.sh: Unexpected results may occur. Make sure JAVA_HOME points to a JDK and not a JRE.
            

            where can i set the JAVA_HOME variable? and what ist /lib/tools.jar? where can i get it?

            Thanks
            Bernhard

            • 3. Re: jBPM on a Linux (debian) Box
              Bernhard Newbie

              thanks for the answer,
              after I've added the JAVA_HOME-variable in the run.sh it seemed to work but after a while (during startup) the script shows the following error and stops:

              ./run.sh: line 181: 7001 Killed "$JAVA" $JAVA_OPTS -Djava.endorsed.dirs="$JBOSS_ENDORSED_DIRS" -classpath "$JBOSS_CLASSPATH" org.jboss.Main "$@"
              


              I cannot imagine what happend there. line 181 is the last line within the script and is an "end" statement (the last line within the script).

              I don't know, what to do. please help.

              thanks
              bernhard

              • 4. Re: jBPM on a Linux (debian) Box
                Bernhard Newbie

                hi,
                i don't really know, what happend, but now the server runs. the only thing which looks curious is this "polling:

                18:47:13,687 DEBUG [StaticNotifier] woke up
                18:47:13,687 DEBUG [JbpmContextInfo] creating jbpm context with service factories '[message, scheduler, logging, persistence, authentication]'
                18:47:13,687 DEBUG [JbpmContext] creating JbpmContext
                18:47:13,687 DEBUG [DbPersistenceServiceFactory] creating persistence service
                18:47:13,687 DEBUG [DbPersistenceService] creating hibernate session
                18:47:13,687 DEBUG [DbPersistenceService] beginning hibernate transaction
                18:47:13,689 DEBUG [JbpmContext] closing JbpmContext
                18:47:13,689 DEBUG [Services] closing service 'persistence': org.jbpm.persistence.db.DbPersistenceService@938f0
                18:47:13,689 DEBUG [DbPersistenceService] committing hibernate transaction
                18:47:13,689 DEBUG [DbPersistenceService] closing hibernate session
                18:47:13,689 DEBUG [Services] closing service 'message': org.jbpm.msg.db.DbMessageService@1795327
                18:47:13,690 DEBUG [CommandExecutorThread] waiting for more messages
                18:47:13,690 DEBUG [StaticNotifier] going to wait for (CMD_EXECUTOR, java.lang.Object@13638d4)
                18:47:13,690 DEBUG [JbpmContextInfo] creating jbpm context with service factories '[message, scheduler, logging, persistence, authentication]'
                18:47:13,690 DEBUG [JbpmContext] creating JbpmContext
                18:47:13,690 DEBUG [DbPersistenceServiceFactory] creating persistence service
                18:47:13,690 DEBUG [DbPersistenceService] creating hibernate session
                18:47:13,690 DEBUG [DbPersistenceService] beginning hibernate transaction
                18:47:13,691 DEBUG [SchedulerThread] checking for timers
                18:47:13,691 DEBUG [JbpmContext] closing JbpmContext
                18:47:13,691 DEBUG [Services] closing service 'persistence': org.jbpm.persistence.db.DbPersistenceService@156c69c
                18:47:13,692 DEBUG [DbPersistenceService] committing hibernate transaction
                18:47:13,692 DEBUG [DbPersistenceService] closing hibernate session
                


                this sequense appears as I already mentioned in minimum every second. is this behaviour o.k or is something wrong?

                thanks
                bernhard

                • 5. Re: jBPM on a Linux (debian) Box
                  Alejandro Guizar Master

                  This is normal, see the topic Tips with jBPM server's console for more info.