14 Replies Latest reply on Aug 7, 2005 6:38 AM by aaw_tom

    which version of jbpm is suitable for new web application

    aaw_tom

      Hi all,

      I want to create my application as web-based but I don't know which type of jbpm that I should download and install, jbpm, jbpm-stater kit, or starter kit with eclipse or others.

      What is the jbpm for developing new web application?

      I saw some post related about it http://sourceforge.net/forum/forum.php?thread_id=1313110&forum_id=240085

      1. create a sample processdefinition.xml

      Can I creat processdefinition.xml in eclipse?

      2. Make it as a Process Archive (*.par)

      How to do it?

      3. Deploy it using the ant task deploypar which is in the build.xml/ put in web context.

      How to deploy .par file by using ant task deploypar?

      4. Create JSP/Servlet/Struts/other to go thro' the process.

      How to do it? Do you have some example?

      5. build the jbpm.war and deploy it in the app server.

      How to do it?


      Now, I really want to know step 1-3 first and which jbpm downloaded for new web application. Could you please help me?


        • 1. Re: which version of jbpm is suitable for new web applicatio
          aaw_tom

          Have anyone help me, please?

          • 2. Re: which version of jbpm is suitable for new web applicatio
            kukeltje

            Read the documentation. It is all in there.

            Ronald

            • 3. Re: which version of jbpm is suitable for new web applicatio
              aaw_tom

              Hey,


              your document does not tell

              - deployment by ant for jbpm 3.0 like jbpm2.0 (ant deploy)
              - the exact location for putting we application (.par) and other .java folder (I think it should be put in exact location before modification of that application in build.xml)

              • 4. Re: which version of jbpm is suitable for new web applicatio
                kukeltje

                What you want to use is up to you and depending on what you want to achieve:
                - starterkit: out of the box runnning of processes, designing them in gpd and deploying them via gpd
                - jbpm.3 for development on jBPM or adapting existing webapp or something like that.

                Regarding the documents:

                ant uses build scripts. jBPM (the source edition, probably not the starterkit) contains 2. build.xml and build.deploy.xml

                The first contains:

                <target name="deploy.processes" depends="declare.jbpm.tasks" description="deploys the jbpm processes">
                 <ant antfile="build.xml" target="build.processes" inheritall="false" />
                 <deploypar properties="src/resources/hsqldb/create.db.hibernate.properties">
                 <fileset dir="build" includes="*.par" />
                 </deploypar>
                 </target>
                


                The latter contains:

                 <target name="deploy.processes" depends="declare.jbpm.tasks" description="deploys the jbpm processes">
                 <ant antfile="build.xml" target="build.processes" inheritall="false" />
                 <deploypar properties="src/resources/hsqldb/create.db.hibernate.properties">
                 <fileset dir="build" includes="*.par" />
                 </deploypar>
                 </target>
                


                Which to me looks like a a combination of what you need and something that can easilybe adapted

                • 5. Re: which version of jbpm is suitable for new web applicatio
                  aaw_tom

                  Oh, I get it but I still don't know

                  - Where can I put .par file before modify script in build.xml
                  - What is the command line to deploy it ? (like version 2.0, ant deploy)
                  - I use jboss 4.0.2 according to build.properties of jbpm-3.0, how to link between jbpm and jboss-4.0.2 (version-2.0 use command line, ant configure.jboss.3.2.+ for jboss 3.2.5. Now, I don't know what is the rifht version of jboss and what is the command line for deployment? Is it necessary to deploy my application by using command line (ant deploy) or just right click in gpd?

                  (jbpm-2.0 provides step by step for installation deployment and running as command line. When I download jbpm-3.0, I did not see anything like that. So, It make me confuse but I try to understand it because I know your system is flexible and it has high performance.)

                  I am so sorry that I ask again and again but I really want to use your system, could you please help me to get it? Thanks.

                  • 6. Re: which version of jbpm is suitable for new web applicatio
                    kukeltje

                     

                    "aaw_tom" wrote:
                    - Where can I put .par file before modify script in build.xml


                    It's up to you as long as it is into accordance what you put in the build.xml/build.deploy.xml

                    "aaw_tom" wrote:

                    - What is the command line to deploy it ? (like version 2.0, ant deploy)


                    Surprise:

                    ant -f build.deploy.xml deploy.processes

                    (sorry, I posted twice the same code in my last post. The first should have been the build.processes from the build.xml file

                    "aaw_tom" wrote:

                    - I use jboss 4.0.2 according to build.properties of jbpm-3.0, how to link between jbpm and jboss-4.0.2 (version-2.0 use command line, ant configure.jboss.3.2.+ for jboss 3.2.5.



                    Take a look at the build.xml and build.deploy.xml file and you'll see

                    "aaw_tom" wrote:

                    Now, I don't know what is the rifht version of jboss and what is the command line for deployment?

                    I mentioned that above
                    "aaw_tom" wrote:

                    Is it necessary to deploy my application by using command line (ant deploy) or just right click in gpd?
                    whatever you want
                    "aaw_tom" wrote:


                    (jbpm-2.0 provides step by step for installation deployment and running as command line. When I download jbpm-3.0, I did not see anything like that.

                    That's why we build the starterskit. It is even more simple then in jBPM 2.0
                    "aaw_tom" wrote:


                    So, It make me confuse but I try to understand it because I know your system is flexible and it has high performance.)

                    I am so sorry that I ask again and again but I really want to use your system, could you please help me to get it? Thanks.


                    aaw_tom, I get the impression that you know almost nothing about java, appservers, ant, etc.. I'd suggest to first get some knowledge about those concepts befor going further.



                    • 7. Re: which version of jbpm is suitable for new web applicatio
                      aaw_tom

                      Thank you very much. I know it is the hard task to explain to whoever don't know about them. So, Thank you very much that you try to reply me. I will do according your suggestion.

                      • 8. Re: which version of jbpm is suitable for new web applicatio
                        aaw_tom

                        I am so sorry that I post it again. I can not run webapp. When I create database, jbpm configuration, build.webappl, build.service.archive, and deploy.webapp according to build.deploy.xml, it 's ok, but when I deploy the service (ant -f build.deploy.xml deployservice.archive), it has some error,

                        C:\workspace\jbpm-3.0>ant -f build.deploy.xml deploy.service.archive
                        
                        Buildfile: build.deploy.xml
                        
                        build.service.archive:
                        
                        compile.jbpm:
                        
                        build.jbpm:
                         [jar] Building jar: C:\workspace\jbpm-3.0\build\jbpm-3.0.jar
                        
                        compile.identity:
                        
                        build.identity:
                         [jar] Building jar: C:\workspace\jbpm-3.0\build\jbpm-identity-3.0.jar
                        
                        build.service.archive:
                         [jar] Building jar: C:\workspace\jbpm-3.0\build\jbpm.sar.cfg.jar
                         [copy] Copying 3 files to C:\workspace\jbpm-3.0\build\jbpm.sar.dir
                         [jar] Building jar: C:\workspace\jbpm-3.0\build\jbpm.sar
                        
                        deploy.service.archive:
                         [get] Getting: http://localhost:8080/jmx-console/HtmlAdaptor?action=invoke
                        OpByName&name=jboss.system:service%3DMainDeployer&methodName=redeploy&argType=ja
                        va.net.URL&arg0=file://C:\workspace\jbpm-3.0/build/jbpm.sar
                         [get] Error opening connection java.io.IOException
                         [get] Error opening connection java.io.IOException
                         [get] Error opening connection java.io.IOException
                         [get] Can't get http://localhost:8080/jmx-console/HtmlAdaptor?action=invok
                        eOpByName&name=jboss.system:service%3DMainDeployer&methodName=redeploy&argType=j
                        ava.net.URL&arg0=file://C:\workspace\jbpm-3.0/build/jbpm.sar to C:\workspace\jbp
                        m-3.0\build\deployresult.html
                        
                        BUILD FAILED
                        C:\workspace\jbpm-3.0\build.deploy.xml:136: Can't get http://localhost:8080/jmx-
                         console/HtmlAdaptor?action=invokeOpByName&name=jboss.system:service%3DMainDeploy
                         er&methodName=redeploy&argType=java.net.URL&arg0=file://C:\workspace\jbpm-3.0/bu
                         ild/jbpm.sar to C:\workspace\jbpm-3.0\build\deployresult.html
                        Total time: 2 seconds
                        C:\workspace\jbpm-3.0>


                        So, I can not run websale example, It occure from what?how can I do?



                        • 9. Re: which version of jbpm is suitable for new web applicatio
                          kukeltje

                          Start JBoss server first

                          • 10. Re: which version of jbpm is suitable for new web applicatio
                            aaw_tom

                            Ok I got it but I don't show any application in start new process execution, including websale. How can I solve it?

                            • 11. Re: which version of jbpm is suitable for new web applicatio
                              aaw_tom

                              Ok, I can access http://localhost:8080/jbpm but It don't show any process (websale) in start new process execution. How ca I sovle it?

                              • 12. Re: which version of jbpm is suitable for new web applicatio
                                kukeltje

                                are the processes deployex?

                                • 13. Re: which version of jbpm is suitable for new web applicatio
                                  aaw_tom

                                  Hey, I remove all and try it again. I got it now. thanks.

                                  • 14. Re: which version of jbpm is suitable for new web applicatio
                                    aaw_tom

                                    Hi,

                                    I wonder that If I create my process by using designer tool and create action as java files. Where can I put these java files. In build.xml, it provides updated site for .par. Where can I put Test, Action, context, Task (java files)?