1 2 Previous Next 17 Replies Latest reply on Oct 25, 2006 1:14 AM by cheng shouwu

    JBPM without starter kit

    Élvio Andrade Newbie

      Hi,

      I want to install JBPM on a already installed and configured jboss-4.0.3SP1. The server already has applications on and I just want to add JBPM so I can introduce new functionalities. Can anyone tell me what to do? Can I just copy the jbpm.sar directory into the deploy directory of jboss? I could not found information about this procedure.

      Best Regards

        • 1. Re: JBPM without starter kit
          Ronald van Kuijk Master

          look at the ant scripts in the sourcecode (they are also in the starter kit afaik) there are some nice ant tasks that deploy jbpm by making a copy of te default server. You can see there what needs to be done to run it in your own server. The main thing is indeed copying the sar file to the deploy directory. And the war file if you want some ui things.

          Ronald

          • 2. Re: JBPM without starter kit
            Daniel Brum Novice

            If you copy the .sar remember also to setup your database as per chapter 8 of the guide. Once you've done that everything should work - you will still need to write your own facade into the jBPM engine. There are no out of the box session beans provided.

            • 3. Re: JBPM without starter kit
              Élvio Andrade Newbie

              Yes, I will have to use chapter 8 knowledge in order to configure JBPM to use Oracle10g. I will also write some session beans that will trigger my workflows processes.

              thanks for your help

              Best regards

              • 4. Re: JBPM without starter kit
                Élvio Andrade Newbie

                Hi, it is me again,

                I have successfully configured the jboss server on the starter-kit to use my oracle DB, but when i try to make the same in my "standard" jboss it seems to fail, the startup process seems to block after this output :

                [SessionFactoryImpl] Checking 25 named queries

                I have copied the jbpm.sar directory into the deploy directory and everything seems to be equal but on the "standard" version of jboss something seems to be missing.

                Can anyone help me?

                best regards

                • 5. Re: JBPM without starter kit
                  Ronald van Kuijk Master

                  I did the same last night and did not encounter this behaviour. Are you using the same oracle driver?

                  • 6. Re: JBPM without starter kit
                    Élvio Andrade Newbie

                    Hi, I have checked and I am using the same oracle driver. This is the output that appears:

                    12:58:42,326 WARN [EhCacheProvider] Could not find configuration [org.jbpm.graph.def.Node]; using defaults.
                    12:58:42,493 WARN [EhCacheProvider] Could not find configuration [org.jbpm.instantiation.Delegation]; using defaults.
                    12:58:42,785 WARN [EhCacheProvider] Could not find configuration [org.jbpm.taskmgmt.def.Task]; using defaults.
                    12:58:43,065 WARN [EhCacheProvider] Could not find configuration [org.jbpm.graph.def.ProcessDefinition]; using defaults.
                    12:58:43,218 WARN [EhCacheProvider] Could not find configuration [org.jbpm.graph.def.ExceptionHandler]; using defaults.
                    12:58:43,235 WARN [EhCacheProvider] Could not find configuration [org.jbpm.module.def.ModuleDefinition]; using defaults.
                    12:58:43,677 WARN [EhCacheProvider] Could not find configuration [org.jbpm.graph.def.Action]; using defaults.
                    12:58:43,845 WARN [EhCacheProvider] Could not find configuration [org.jbpm.graph.def.Event]; using defaults.
                    12:58:44,046 WARN [EhCacheProvider] Could not find configuration [org.jbpm.context.def.VariableAccess]; using defaults.
                    12:58:44,277 WARN [EhCacheProvider] Could not find configuration [org.jbpm.graph.def.Transition]; using defaults.
                    12:58:44,575 WARN [EhCacheProvider] Could not find configuration [org.jbpm.taskmgmt.def.TaskController]; using defaults.
                    12:58:44,640 WARN [EhCacheProvider] Could not find configuration [org.jbpm.taskmgmt.def.TaskMgmtDefinition.tasks]; using defaults.
                    12:58:44,644 WARN [EhCacheProvider] Could not find configuration [org.jbpm.graph.node.ProcessState.variableAccesses]; using defaults.
                    12:58:44,645 WARN [EhCacheProvider] Could not find configuration [org.jbpm.graph.def.ProcessDefinition.events]; using defaults.
                    12:58:44,646 WARN [EhCacheProvider] Could not find configuration [org.jbpm.taskmgmt.def.Swimlane.tasks]; using defaults.
                    12:58:44,648 WARN [EhCacheProvider] Could not find configuration [org.jbpm.graph.def.Node.leavingTransitions]; using defaults.
                    12:58:44,649 WARN [EhCacheProvider] Could not find configuration [org.jbpm.taskmgmt.def.TaskController.variableAccesses]; using defaults.
                    12:58:44,651 WARN [EhCacheProvider] Could not find configuration [org.jbpm.graph.def.ProcessDefinition.exceptionHandlers]; using defaults.
                    12:58:44,653 WARN [EhCacheProvider] Could not find configuration [org.jbpm.graph.node.Decision.decisionConditions]; using defaults.
                    12:58:44,655 WARN [EhCacheProvider] Could not find configuration [org.jbpm.file.def.FileDefinition.processFiles]; using defaults.
                    12:58:44,661 WARN [EhCacheProvider] Could not find configuration [org.jbpm.graph.def.ProcessDefinition.actions]; using defaults.
                    12:58:44,662 WARN [EhCacheProvider] Could not find configuration [org.jbpm.graph.def.Transition.exceptionHandlers]; using defaults.
                    12:58:44,664 WARN [EhCacheProvider] Could not find configuration [org.jbpm.graph.def.ProcessDefinition.nodes]; using defaults.
                    12:58:44,665 WARN [EhCacheProvider] Could not find configuration [org.jbpm.graph.def.Node.arrivingTransitions]; using defaults.
                    12:58:44,666 WARN [EhCacheProvider] Could not find configuration [org.jbpm.graph.node.TaskNode.tasks]; using defaults.
                    12:58:44,667 WARN [EhCacheProvider] Could not find configuration [org.jbpm.graph.def.ProcessDefinition.definitions]; using defaults.
                    12:58:44,673 WARN [EhCacheProvider] Could not find configuration [org.jbpm.graph.def.Event.actions]; using defaults.
                    12:58:44,675 WARN [EhCacheProvider] Could not find configuration [org.jbpm.taskmgmt.def.Task.events]; using defaults.
                    12:58:44,676 WARN [EhCacheProvider] Could not find configuration [org.jbpm.graph.def.Node.events]; using defaults.
                    12:58:44,678 WARN [EhCacheProvider] Could not find configuration [org.jbpm.taskmgmt.def.TaskMgmtDefinition.swimlanes]; using defaults.
                    12:58:44,679 WARN [EhCacheProvider] Could not find configuration [org.jbpm.graph.def.SuperState.nodes]; using defaults.
                    12:58:44,680 WARN [EhCacheProvider] Could not find configuration [org.jbpm.graph.action.Script.variableAccesses]; using defaults.
                    12:58:44,681 WARN [EhCacheProvider] Could not find configuration [org.jbpm.graph.def.ExceptionHandler.actions]; using defaults.
                    12:58:44,682 WARN [EhCacheProvider] Could not find configuration [org.jbpm.taskmgmt.def.Task.exceptionHandlers]; using defaults.
                    12:58:44,683 WARN [EhCacheProvider] Could not find configuration [org.jbpm.graph.def.Node.exceptionHandlers]; using defaults.
                    12:58:44,686 WARN [EhCacheProvider] Could not find configuration [org.jbpm.graph.def.Transition.events]; using defaults.
                    12:58:45,313 INFO [SessionFactoryObjectFactory] Not binding factory to JNDI, no JNDI name configured
                    12:58:45,314 INFO [NamingHelper] JNDI InitialContext properties:{}
                    12:58:45,319 INFO [SessionFactoryImpl] Checking 25 named queries
                    


                    Although it seems to be stopped, it is possible to perform some unit tests on my ejb's and some of them using JBPM. I was having some problems because each time I tried to deploy a process definition, two version of the process were created. I then configured the jbpm.cfg.xml file with:

                    
                     <service name="persistence">
                     <factory>
                     <bean class="org.jbpm.persistence.db.DbPersistenceServiceFactory">
                     <field name="isTransactionEnabled">
                     <false />
                     </field>
                     </bean>
                     </factory>
                     </service>
                    


                    And the hibernate.cfg.xml file with:

                     <property name="hibernate.dialect">org.hibernate.dialect.Oracle9Dialect</property>
                     <property name="hibernate.connection.datasource">java:/jdbc/DefaultDS</property>
                     <property name="hibernate.transaction.factory_class">org.hibernate.transaction.CMTTransactionFactory</property>
                     <property name="hibernate.transaction.manager_lookup_class">org.hibernate.transaction.JBossTransactionManagerLookup</property>
                    


                    Now I am only deploying one version at the time and JBPM seems to be correctly configured to use oracle. The only problem that still persists is the fact of startup output of jBoss being freezed at that output.

                    best regards

                    • 7. Re: JBPM without starter kit
                      Ronald van Kuijk Master

                      What do you mean by

                      Now I am only deploying one version at the time and JBPM


                      I did not try this and it is a (probably stupid) wild guess, but how is your datasource configured? Do you have enough connections in the pool?

                      Ronald

                      • 8. Re: JBPM without starter kit
                        Élvio Andrade Newbie

                        Hi,

                        I guess I did not explain myself well. When I first deployed JBPM in my JBoss and after configuring the datasources, each time I tried to deploy a new process definition in the database, instead of only inserting one, two process definition were being inserted with the same name and diferent versions. That was being caused by bad transactional bahaviou and after doing the steps I referred in my previous post, the process definitions are now being correclty deployed and removed from the JBPM database.

                        So, basically my simple interactions with JBPM are working fine, I still have to start developing hard and test all JBPM functionalities, but now I can start doing it. The only problem is what I mentioned, the startup output of the JBoss AS stops at that line while. When using the AS that comes with the starter-kit, a lot more output lines are seen in the console and a periodic service seems to stay running. That is not happening with my JBoss.

                        thanks for your interest in helping me solving this problem

                        Best regards

                        • 9. Re: JBPM without starter kit
                          Ronald van Kuijk Master

                          The difference in the logging is probably due to a difference in the log4j config between the starterkit jboss instance and your instance. look at the log4j config in the resources dir of jbpm and compare it with the log4j of your own instance.

                          Regarding the 'hanging', we've seen/read this a couple of times in the forum but have not been able to reproduce it and nobody came with a solution. You might want to try and make a threaddump from the jdk to see if there is some explanation.

                          • 10. Re: JBPM without starter kit
                            Ricardo Viegas Newbie

                            Ive tried to do the steps described in here (with the .sar and the .war) and when I try to run the server I get the errorIllegalAcetssError.

                            I assume this is because I havent set up the database and in section 8 talks about the context.

                            Can anyone just give an hint

                            • 11. Re: JBPM without starter kit
                              Ricardo Viegas Newbie

                              Ive tried to do the steps described in here (with the .sar and the .war) and when I try to run the server I get the errorIllegalAcetssError.

                              I assume this is because I havent set up the database and in section 8 talks about the context.

                              Can anyone just give an hint

                              • 12. Re: JBPM without starter kit
                                Ricardo Viegas Newbie

                                 

                                "daniel.brum@jboss.com" wrote:
                                If you copy the .sar remember also to setup your database as per chapter 8 of the guide. Once you've done that everything should work - you will still need to write your own facade into the jBPM engine. There are no out of the box session beans provided.


                                Im geting the error jasperException: Cannot get value for expression "´{userBean.UserSelection}", is his related to chapter 8?

                                • 13. Re: JBPM without starter kit
                                  Brad O'Hearne Newbie

                                   

                                  "daniel.brum@jboss.com" wrote:
                                  If you copy the .sar remember also to setup your database as per chapter 8 of the guide. Once you've done that everything should work - you will still need to write your own facade into the jBPM engine. There are no out of the box session beans provided.


                                  Can you expound on how this is done? The examples I have looked at have for the most part addressed how to manually execute business processes, not invoke a business process in the jBPM engine. I would like to invoke business processes as the result of some user behavior -- I'm not quite sure what the proper way to do this is against the jBPM engine.

                                  Thanks,

                                  Brad

                                  • 14. Re: JBPM without starter kit
                                    Ronald van Kuijk Master

                                    Brado,

                                    Look at the webapp source code, there you can see how it is done.

                                    1 2 Previous Next