14 Replies Latest reply on Nov 23, 2012 4:13 AM by Thomas Hunt3r

    jBPM 5 Installation Guide

    Debojit Sinha Newbie

      Hi,

       

      I'm completely new to jBPM, and have tried to install it with ant install.demo from the full download package, but I'm not able to open any of the URLs mentioned the install.html file. All I get are HTTP 404 errors. Could someone please help me out with some newbie-friendly instructions?

       

      Actually, further down the line I'd like to be able to setup jBPM on an existing Jboss AppServer installation with MySQL db, since that is the project requirement, but considering the trouble I'm having now, I'd say it's really a long way down the line.

       

      Thanks in advance,

      Debojit

       

      UPDATE: I just remembered that the port 8080 was being used by my Tomcat installation, and I changed it to another port, but now all I get is "Unable to connect". Also, in the command line where I issued "ant start.demo.noeclipse", I see that the build has failed with the following message:

       

      C:\Tools\jbpm-installer>ant start.demo.noeclipse

      Buildfile: C:\Tools\jbpm-installer\build.xml

      download.h2.check:

           [echo] Checking h2 download ...

      download.h2:

      start.h2:

      start.jboss:

      check.jboss.version:

      start.jboss5:

      check.jboss.version:

      start.jboss7:

      BUILD FAILED

      C:\Tools\jbpm-installer\build.xml:725: The following error occurred while executing this line:

      C:\Tools\jbpm-installer\build.xml:749: JBoss AS7 did not start within 5 minutes

      Total time: 5 minutes 12 seconds

       

       

      Since I installed everything with "ant install.demo.noeclipse", I'm really not sure what I'm doing wrong.

       

      Message was edited by: Debojit Sinha

        • 1. Re: jBPM 5 Installation Guide
          joploya Newbie

          Hello,

           

          I advise you to download the full installer (it contains most of the libs the installer need.

          From what I remember, the jboss archive or eclipse archive are missing, you have to download them by yourself and add them to the folder lib. Then take care to the path use in the buid.xml file of the installer and to the version (jboss 7.0 and eclipse helios I believe).

           

          Regards,

          • 2. Re: jBPM 5 Installation Guide
            Debojit Sinha Newbie

            Hi,

             

            I'm using the installer ZIP archive named "jbpm-5.3.0.Final-installer-full.zip". Is this not the full installer?

             

            Thanks,

            • 3. Re: jBPM 5 Installation Guide
              Thomas Setiabudi Expert

              Hi Debojit Sinha,

               

              Yes you are using the full installer there.

               

              From your error, it seems like port 8080 is still in use. Or another error prevents the Jboss AS 7 to start on port 8080.

               

              usually the best solution is to delete the extracted folder and then unzip a new one from your jbpm-5.3.0.Final-installer-full.zip

              then do the ant install.demo again.

               

              this guide can be quite helpful:
              http://docs.jboss.org/jbpm/v5.3/userguide/ch.installer.html

               

               

              Regards,

              Thomas Setiabudi

              • 4. Re: jBPM 5 Installation Guide
                Debojit Sinha Newbie

                Hi,

                I've altered the port for Tomcat to 7001, and have deleted the jboss installation. This time "ant install.demo" completed successfully, but I'm still getting the same error. Also, the web page Thomas pointed out didn't have any instructions beyond the very basic demo setup which I'm aleady trying to do and failing miserably. Could some one please shed some light on the matter. I'm really quite cnfused as to what I've done wrong. Are there any pre-installation steps I need to perform, like path setting, etc.? I already have JAVA_HOME and ANT_HOME set and the corresponding bin folders in my Path variable. I'm using Oracle JDK 1.6 update 31 and Ant version 1.8.4 for my setup, and my OS is Windows 7 64 bit.

                 

                Thanks,

                Debojit

                • 5. Re: jBPM 5 Installation Guide
                  Thomas Setiabudi Expert

                  Hi,

                   

                  Looking at the default build.xml, seems like the jboss AS 7 fails to start on port 8080.

                   

                  For windows 7, can you run:

                   

                  netstat -aon

                   

                  in command prompt and verify that no process uses port 8080?

                   

                  Regards,

                  Thomas Setiabudi

                  • 6. Re: jBPM 5 Installation Guide
                    Debojit Sinha Newbie

                    Hi,

                    I ran "netstat -aon" and "netstat -aon|findStr 8080" and was unable to find any process listening on 8080. There were some processes listening on "80", though.

                     

                    Thanks,

                    Debojit

                    • 7. Re: jBPM 5 Installation Guide
                      Thomas Setiabudi Expert

                      Hi,

                       

                      Can you open the server.log in \jbpm-installer\jboss-as-7.0.2.Final\standalone\log\server.log ?

                       

                      Hopefully there are some entry that helps to figure out why the JBOSS AS 7 fails to start.

                       

                      Maybe its a good idea to delete all the content of server.log and then retry the "ant start.demo.noeclipse"

                       

                      to get a cleaner server.log

                       

                       

                      Regards,

                      Thomas Setiabudi

                      • 8. Re: jBPM 5 Installation Guide
                        Debojit Sinha Newbie

                        Hi,

                        The log folder doesn't exist at the specified location. Also, "ant start.demo.noeclipse" doesn't make any difference in the error. I have a lot of dev tools and softwar installed. Is there anything that might conflict with jboss?

                        Thanks,

                        Debojit

                        • 9. Re: jBPM 5 Installation Guide
                          Thomas Setiabudi Expert

                          hi,

                           

                          thats weird,

                           

                          after successful "ant install.demo" in C:\Tools\jbpm-installer\

                          you should have this folder:

                          C:\Tools\jbpm-installer\jboss-as-7.0.2.Final\standalone\

                           

                          but there is no log folder inside the standalone folder?

                           

                          I am not sure about the development tools that come in conflict with jboss AS.

                           

                          Regards,

                          Thomas Setiabudi

                           

                          • 10. Re: jBPM 5 Installation Guide
                            Debojit Sinha Newbie

                            Hi,

                             

                            I'm afraid that's what is happening. The standalone folder contains only the following folders:

                             

                            configuration

                            deployments

                            lib

                             

                            Thanks,

                            Debojit

                            • 11. Re: jBPM 5 Installation Guide
                              Viggo Navarsete Expert

                              I had an issue when trying to get things up and running, and it was caused by I having an existing environment variable for JBOSS_HOME pointing to a JBOSS installation I had installed earlier on /opt. By removing the JBOSS_HOME, reopen the terminal (I'm on linux..) I was able to get the jBPM Console up and running:) It might be the same problem for someone else?

                              1 of 1 people found this helpful
                              • 12. Re: jBPM 5 Installation Guide
                                Debojit Sinha Newbie

                                Hi,

                                 

                                I uninstalled the glassfish server lisening on 8080, and that did the trick. Thank you everyone for your help in resolving this issue.

                                 

                                Thanks,

                                Debojit

                                • 13. Re: jBPM 5 Installation Guide
                                  Thomas Hunt3r Newbie

                                  hi i also face same issue with u,i m using jbpm-5.3.0.Final-installer-full.zip,

                                  i look throught the ant script, the standalone.bat cant spawn out, so the only solution is manually run the standalone.bat in jboss7.0.2.

                                  We have to manually run ant script 1 by 1 which is

                                  1) ant start.h2

                                  2) Manually go invoke \User\jbpm-installer-5.3.0\jboss-as-7.1.1.Final\bin\standalone.bat

                                  3) ant start.eclipse

                                  4) ant start.human.task

                                   

                                  Beside this ant script so long no ppl fix this ant script bug also, hope community will help.

                                  1 of 1 people found this helpful
                                  • 14. Re: jBPM 5 Installation Guide
                                    Thomas Hunt3r Newbie

                                    I have found a solution without manually start ant script 1 by 1, u need to change the ant target jboss.start, hope it help.

                                     

                                         <target name="startjboss7" description="Start JBoss7">

                                              <exec dir="${jboss7.home}/bin" executable="cmd" osfamily="windows">

                                                <arg line="/c standalone.bat" />

                                            </exec>

                                        </target>

                                     

                                         <target name="stopjboss7" description="Start JBoss7">

                                              <exec dir="${jboss7.home}/bin" executable="cmd" osfamily="windows">

                                                <arg line="/c jboss-admin.bat" />

                                                  <arg value="--connect" />

                                                <arg value="command=:shutdown" />

                                            </exec>

                                        </target>