2 Replies Latest reply on Jul 26, 2010 4:36 AM by rebody

    jBPM-4.4 install script broken in windows platform

    rebody

      Hi guys,

       

      In windowXP platform, the jBPM 4.4 install script will break.  The 'start.tomcat' target will always fail with

       

      start.tomcat:
           [exec] The CATALINA_HOME environment variable is not defined correctly
           [exec] This environment variable is needed to run this program

       

      The workaround is change the line 650 of intall/build.xml to

       

      <exec executable="${tomcat.home}/bin/startup.bat" osfamily="windows" dir="${tomcat.home}/bin" spawn="true"/>

       

      The related 'stop.tomcat' target could be resovled by the same way.  change the line 664 of install/build.xml to

       

      <exec executable="${tomcat.home}/bin/shutdown.bat" osfamily="windows" dir="${tomcat.home}/bin" spawn="true"/>

       

      But the 'get.eclipse' target always get a html whose size is only 31KB.  Is there anybody know how to download eclipse by ant directly?  Any reply will be apprieciated.

        • 1. Re: jBPM-4.4 install script broken in windows platform
          jaikiran

          HuiSheng Xu wrote:

           


          But the 'get.eclipse' target always get a html whose size is only 31KB.  Is there anybody know how to download eclipse by ant directly?  Any reply will be apprieciated.

          That one's because the download URL points to the mirror selection page on eclipse.org http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/galileo/SR2/eclipse-java-galileo-SR2-linux-gtk.tar.gz (for example).

           

          On that mirror selection page, at the bottom, we see a "Main download site" link. So maybe the install script can be changed to (patch against current trunk):

           

          Index: build.xml
          ===================================================================
          --- build.xml    (revision 6531)
          +++ build.xml    (working copy)
          @@ -114,7 +114,7 @@
               <os name="Linux" arch="x86_64" /> 
             </condition> 
             <property name="eclipse.distro.url" 
          -            value="http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/galileo/SR2/${eclipse.filename}" /> 
          +            value="http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/galileo/SR2/${eclipse.filename}&amp;url=http://download.eclipse.org/technology/epp/downloads/release/galileo/SR2/${eclipse.filename}&amp;mirror_id=1" /> 
             <property name="eclipse.distro.dir" value="downloads" /> 
             <property name="eclipse.parent.dir" value="${jbpm.home}" /> 
             <property name="eclipse.distro.path" value="${eclipse.distro.dir}/${eclipse.filename}" />
          • 2. Re: jBPM-4.4 install script broken in windows platform
            rebody

            Thank you Jaikiran,  I will try it.