9 Replies Latest reply on Nov 18, 2009 1:09 PM by xalperte

    Jbpm 4 setup on existing JBOSS server

      Hi,

      Is there any guide on setting up Jbpm 4 (Jbpm console) on existing Jboss server. Current guides use scripts to deploy Jbpm and Jboss and integrate. This is good for user testing but i need to do the same steps in controlled manner on existing application.

      I use JBoss 5.0.1 GA with Spring 2.0.8 , Hibernate 3.3.0 and Maven. I need to integrate JBPM 4.0.1CR1 and create/deploy some business process model.

      Any help would be appreciated.

      Rocker Rocker

        • 1. Re: Jbpm 4 setup on existing JBOSS server

          Also to add, i use MySQL database and not default Jbpm database.

          • 2. Re: Jbpm 4 setup on existing JBOSS server

            I haven't faced issues with jboss & jbpm so far..


            My Config:

            Spring: 2.5.x
            Hibernate: 3.3.1 GA
            Jboss: 5.1.0 GS
            JBPM: 4.1
            


            • 3. Re: Jbpm 4 setup on existing JBOSS server
              kukeltje

              why use 4.0.1 CR1? it does not even exist. so I'd start with 4.2

              • 4. Re: Jbpm 4 setup on existing JBOSS server

                I have installed JBPM 4.2 on Jboss and can login as users and see different options.
                Now, i have my own application war file (deploying process using Spring hibernate and jsf). This process uses Java task and calls class - com.test.jbpm.MyClass

                When i start the process from jbpm console , i get classnotfound exception - javax.ws.rs.WebApplicationException: org.jbpm.pvm.internal.wire.JbpmClassNotFoundException: couldn't load class - since it does not have MyClass in classpath.

                How do i manage, my application war file having processes & Java class files thru JBPM console ??

                I dont want to merge my code into JBPM console code.

                • 5. Re: Jbpm 4 setup on existing JBOSS server
                  xalperte

                  I did a similar question few days ago in http://www.jboss.org/index.html?module=bb&op=viewtopic&t=163550

                  I'm not using the jBPM 4 Console, I'm using my own Console but maybe this approach could help you (it works for me): try making an EAR file and packing inside the jBPM4 Console and your WAR file.

                  • 6. Re: Jbpm 4 setup on existing JBOSS server

                    Thanks Xalperte

                    Can you send me details of your console

                    When you say - make ear file - wouldn't that mean i will have single web.xml , spring hibernate config files etc.

                    • 7. Re: Jbpm 4 setup on existing JBOSS server
                      xalperte

                      You do not need to merge your code with the console code.

                      Do something like that:

                      rockerrocker.ear

                      META-INF/application.xml
                      rockerrocker.war
                      rockerrocker.jar
                      jbpmconsole.war

                      NOTE: You need to put all your model/ejbs classes in a separated jar file in order to be accessed by the two war applications.

                      The application.xml should be something like that:

                      <?xml version="1.0" encoding="UTF-8"?>
                      <application xmlns="http://java.sun.com/xml/ns/javaee"
                       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                       xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/application_5.xsd"
                       version="5">
                       <description>RockerRocker Enterprise Application</description>
                       <display-name>RockerRocker Enterprise Application</display-name>
                       <module>
                       <web>
                       <web-uri>rockerrocker.war</web-uri>
                       <context-root>/rockerrocker</context-root>
                       </web>
                       </module>
                       <module>
                       <ejb>rockerrocker.jar</ejb>
                       </module>
                       <module>
                       <web>
                       <web-uri>jbpmconsole.war</web-uri>
                       <context-root>/jbpmconsole</context-root>
                       </web>
                       </module>
                      </application>
                      


                      NOTE: I'm using JBoss AS 4.3.2

                      • 8. Re: Jbpm 4 setup on existing JBOSS server

                        I will try this out. I dont have any EJBs , its just POJO beans handled by Spring.

                        Can you please send me the details on how to create new console. Any help wud be appreciated.

                        • 9. Re: Jbpm 4 setup on existing JBOSS server
                          xalperte

                          Sorry, I think I did not explained myself well.

                          The console I'm talking about is a console my company has built by itself. It's entirely different from the jBPM console and its fully integrated with our product.

                          By the way, are you using any configuration management tool like maven? If so, it can be very easy to create a JavaEE project (EAR) and test if that works.

                          My suggestion...

                          In order to do a "fast" test, you can create a maven j2ee simple project.

                          To do that you can run the following command:

                          maven archetype:generate


                          From the list of archetypes you can select the option maven-archetype-j2ee-simple.

                          Only for test, you can add the jbpm4 dependencies to the pom.xml file of the "primary-source" module, and create a custom EventListener (src/main/java/....). You must create also a "test-process.bar" to call the event listener.

                          The last step will be add the "gwt-console" dependencies to the pom.xml file of the"ear" module. I do not know how many dependencies you will need, maybe inspect the jbpm4 maven repository could help you.

                          After that you can generate the ear file and deploy it to the jboss deploy folder in order to test if everything runs well.

                          Well, I don't know if exists a more easily way to test that.

                          I hope that will help you!.