Fitnesse try on Mac OS X
Downloaded FitNesse. I am on Mac OS X. Here are some of my quick reference notes on installing it and shutting down (See: StartingAndStoppingFitNesses)
Since I am running a local Apache on port 80 I opened run.sh file and put made it run on port 8080 like so:
java -cp fitnesse.jar fitnesse.FitNesse -p 8080 $1 $2 $3 $4 $5
and then I ran ’sh run.sh’ in terminal (I was in a folder were fitnesse was copied)
Terminal gaves me a message;
FitNesse (20050731) Started... port: 8080 root page: fitnesse.wiki.FileSystemPage at ./FitNesseRoot logger: none authenticator: fitnesse.authentication.PromiscuousAuthenticator html page factory: fitnesse.html.HtmlPageFactory page version expiration set to 14 days.
… and FitNesse server was runing on http://localhost:8080/
OK, now in terminal window let’s run ^Z to end. I am not sure if this was a desirable action. Perhaps a better way is to open another Terminal window nad run “java fitnesse.Shutdown” command. Or as I just found out a url “http://localhost:8080/?responder=shutdown”
Tried starting FitNesse again and instead got this message:
FitNesse cannot be started…
Port 8080 is already in use.
Use the -p <port#> command line argument to use a different port.
So perhaps I shouldn’t terminate the session like that
I then ran a url “http://localhost:8080/?responder=shutdown”. It looks from the tests there is a 100 delay (I guess it’s 100 seconds so let’s wait)
After few mintutes I ran ’sh run.sh’ command and got the same error message. I then ran “java fitnesses.Shutdown -p 8080″ and I got this error:
Exception in thread “main” java.lang.NoClassDefFoundError: fitnesse/Shutdown
This is strange. H.. Ah Yeah. I used wrong command: Here is the correct one.
java -cp fitnesse.jar fitnesse.Shutdown -p 8080
Now I am waiting and waiting and waiting and I never got the prompt back. System.exit didn’t happen. Not sure why. So I terminated the session window. Opened a new one and restarted the server. It went ok.
Is the trick to close the terminal window to end the session then?
Technorati Tags: Fitnesse
Add New Comment
Thanks. Your comment is awaiting approval by a moderator.
Do you already have an account? Log in and claim this comment.
Add New Comment