faban
  1. faban
  2. FABAN-20

master/bin/startup.sh has incorrect faban.war path

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Labels:
      None
    • Environment:

      Solaris 11

      Description

      After deploying faban-kit.jar, the entire faban directory is created.
      Under ~faban/master/bin there is startup.sh, which is used to start the faban master.
      Running startup.sh, it complains that faban.war is not found.

      root@pae-madrid-01:~# faban/master/bin/startup.sh
      Starting Faban Server
      java.io.FileNotFoundException: ../webapps/faban.war (No such file or directory)
      at java.io.FileInputStream.open(Native Method)
      at java.io.FileInputStream.<init>(FileInputStream.java:128)
      at java.io.FileInputStream.<init>(FileInputStream.java:87)
      at sun.tools.jar.Main.run(Main.java:259)
      at sun.tools.jar.Main.main(Main.java:1177)
      Please point your browser to http://pae-madrid-01:9980/

      The cause is that startup.sh has an incorrect faban.war path (../webapps/faban.war), it should be changed to ../faban.war.

        Activity

        Hide
        yaominchen added a comment -

        Followed the steps in http://java.net/projects/faban/forums/faban-developers-forum/topics/30992-How-to-build-Faban-with-NetBeans to build faban-kit-121311.tar.gz. Unzip and untar the file to create the faban directory. The faban.war file is indeed under master/webapps.

        ~/www/nightly/faban/master/webapps$ ls
        balancer faban.war fenxi.war ROOT

        So it is the startup.sh issue.

        1. Since Faban uses root context, make sure it is unjarred before startup
          cd "$PRGDIR"/../webapps --> we are already inside webapps
        1. Avoid version conflicts - re-unjar faban.war before each start.
          rm -rf faban fenxi xanadu xanadu.war
          mkdir faban
          cd faban
          $JAVA_HOME/bin/jar xf ../webapps/faban.war --> the last parameter should be changed to ../faban.war

        commit a259cb594f89ccef771fca49a24314abf5aa0763
        faban-kit-121411.tar.gz

        Show
        yaominchen added a comment - Followed the steps in http://java.net/projects/faban/forums/faban-developers-forum/topics/30992-How-to-build-Faban-with-NetBeans to build faban-kit-121311.tar.gz. Unzip and untar the file to create the faban directory. The faban.war file is indeed under master/webapps. ~/www/nightly/faban/master/webapps$ ls balancer faban.war fenxi.war ROOT So it is the startup.sh issue. Since Faban uses root context, make sure it is unjarred before startup cd "$PRGDIR"/../webapps --> we are already inside webapps Avoid version conflicts - re-unjar faban.war before each start. rm -rf faban fenxi xanadu xanadu.war mkdir faban cd faban $JAVA_HOME/bin/jar xf ../webapps/faban.war --> the last parameter should be changed to ../faban.war commit a259cb594f89ccef771fca49a24314abf5aa0763 faban-kit-121411.tar.gz

          People

          • Assignee:
            yaominchen
            Reporter:
            zhenyun
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: