10 Replies Latest reply on Mar 29, 2006 9:20 PM by Won-seok Jang

    question about deployment

    tperrigo Newbie

      I'm having some trouble understanding how to deploy a process. I was able to create a jbpm service archive (using the steps outlined here: http://www.jboss.com/index.html?module=bb&op=viewtopic&t=74781. I then copied the jbpm.sar to the deployment directory of my server; it seemed to deploy successfully (though I'm not exactly sure how to test that).

      Now I've created a new process using the GPD. In my source directory, I have a "FirstTry.par" directory which contains the processdefinition.xml file for my process. How do I go about deploying this process? Is the process archive already in a "deployable" form, or is there something else I need to do? Where does the par get deployed? Do I just copy it into my server's deployment directory?

      I aplogize if these are rather basic questions; I'm just having a hard time fitting all the pieces of jBPM together. Any help would be greatly appreciated!

      Thanks,
      Tim

        • 1. Re: question about deployment
          Mark Milne Newbie

          The easiest way of deploying your par is using the eclispe plugin.

          The .par file is not actually deployed (like a .jar file), but its content is loaded into a ProcessDefinition and the ProcessDefinition is then persisted to your dB (via hibernate).

          If you use the eclipse plugin, you will need the jbpm.war as well, as this has a servlet which is used by the eclipse plugin.

          • 2. Re: question about deployment
            tperrigo Newbie

            Thanks for the reply. I will try deploying the war and using the Eclipse plugin. I'd like to also be able to deploy outside of Eclipse...how is this accomplished?

            Thanks again for your help,
            Tim

            • 3. Re: question about deployment
              tperrigo Newbie

              I built and tried to deploy the web app, but when I deployed it into my app server (to which I had previously deployed the jbpm.sar), it appeared to be attempting to access the default (hsql) database, rather than the PostgreSQL database which I had specified when building the service archive (by modifying the build.service.archive target in the jbpm build.xml file). How do I tell the web application to use the PostgreSQL database?

              I'd appreciate any suggestions...Thanks!

              Tim

              • 4. Re: question about deployment
                vasa bab Newbie

                Where did I get the jbpm.war for deployment?
                Also how eclispe plugin frefrence jbpm.war?
                Any body have idea let me know

                • 5. Re: question about deployment
                  Mark Milne Newbie

                  Tim,
                  It sounds like your jbpm.sar is not connecting to your PostgreSQL dB, as the war uses the connection sepecified by your sar, check: -

                  1) That your jbpm.sar/jbpm.sar.cfg.jar/hibernate.xfg.xml has the corrcet jdbc connection details.

                  2) That your jbpm.sar/META-INF/jboss-service.xml has the correct data source dependancy.

                  I use Oracle, so their might be something else going on, which I don't know about.


                  vas74,

                  Download the starterkit, and use this http://jboss.com/products/jbpm/downloads.
                  It uses the upload servlet in the war as a service, so you specify the machine and porty Jboss is running on and the servlet (it defaults to the normal local settings).

                  Mark

                  • 6. Re: question about deployment
                    Koen Aers Master

                    There is a chapter in the docs describing how to switch databases : http://docs.jboss.com/jbpm/v3/userguide/thejbpmdatabase.html#d0e2226

                    Regards,
                    Koen

                    • 7. Re: question about deployment
                      tperrigo Newbie

                      Mark,
                      You're right, the hibernate.cfg.xml in the jbpm.sar does not have the correct JDBC info. I followed the instructions in the thread: http://www.jboss.com/index.html?module=bb&op=viewtopic&t=74781, but apparently it did not work. How do I build the sar with the correct hibernate configuration? Do I have to manually modify the hibernate.cfg.xml file in the sar?

                      Thanks for your help!

                      Tim

                      • 8. Re: question about deployment
                        tperrigo Newbie

                        Ok, I think I finally got the service archive correctly built and deployed. I modified the hibernate.cfg.xml and jboss-service.xml files, then ran the build.service.archive ant target. The sar this created had the appropriate hibernate configuration for my PostgreSQL database. I was then able to execute the buld.webbapp and deploy.webapp ant targets (in the build.deploy.xml ant file) to create and deploy the web app. It appears that everything built and deployed without error...How can I reassure myself that this is the case? How can I test out the web app?

                        • 9. Re: question about deployment
                          Ronald van Kuijk Master

                          make sure your start state has a task in it. It will then show up in the default web app. Otherwise you'd have to use sql to check the db to see if every thing is deployed

                          Ronald

                          • 10. Re: question about deployment
                            Won-seok Jang Newbie

                             

                            "tperrigo" wrote:
                            I'm having some trouble understanding how to deploy a process. I was able to create a jbpm service archive (using the steps outlined here: http://www.jboss.com/index.html?module=bb&op=viewtopic&t=74781. I then copied the jbpm.sar to the deployment directory of my server; it seemed to deploy successfully (though I'm not exactly sure how to test that).

                            Now I've created a new process using the GPD. In my source directory, I have a "FirstTry.par" directory which contains the processdefinition.xml file for my process. How do I go about deploying this process? Is the process archive already in a "deployable" form, or is there something else I need to do? Where does the par get deployed? Do I just copy it into my server's deployment directory?

                            I aplogize if these are rather basic questions; I'm just having a hard time fitting all the pieces of jBPM together. Any help would be greatly appreciated!

                            Thanks,
                            Tim