Issue Details (XML | Word | Printable)

Key: FABAN-20
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Minor Minor
Assignee: yaominchen
Reporter: zhenyun
Votes: 0
Watchers: 0

If you were logged in you would be able to see more operations.

master/bin/ has incorrect faban.war path

Created: 08/Dec/11 10:52 PM   Updated: 14/Dec/11 08:38 AM   Resolved: 14/Dec/11 08:38 AM
Component/s: None
Affects Version/s: None
Fix Version/s: None

Time Tracking:
Not Specified


Solaris 11

Tags: faban master startup
Participants: yaominchen and zhenyun

 Description  « Hide

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

root@pae-madrid-01:~# faban/master/bin/
Starting Faban Server ../webapps/faban.war (No such file or directory)
at Method)
Please point your browser to http://pae-madrid-01:9980/

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

yaominchen made changes - 09/Dec/11 01:21 AM
Field Original Value New Value
Assignee yaominchen [ yaominchen ]
yaominchen added a comment - 14/Dec/11 08:38 AM

Followed the steps in 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 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

yaominchen made changes - 14/Dec/11 08:38 AM
Status Open [ 1 ] Resolved [ 5 ]
Resolution Fixed [ 1 ]