I don't know if this is necessary, but after unzipping the downloaded Jetty file, I drag and drop the resulting folder to the BatChmod app. I check all the checkboxes except 'Clear xattrs'.
You’ll see something like this:
I finally discovered how to start and stop Jetty on Mac OS X. It's easy. While Apache Tomcat has an explicit start and stop shell script (.sh files), Jetty uses a single shell script for both purposes. You pass the word 'start' or 'stop' without any quotes.
To start Jetty web server:
- Locate the shell script:
…/YourJettyFolder/bin/jetty.sh
- Drag and drop that script file to a terminal window in either Terminal.app or Path Finder.
- Type a space and the word 'start'. Press Return key.
Example:
/Users/basilbourque/jetty-distribution-8.0.0.v20110901/bin/jetty.sh start
You’ll see something like this:
Starting Jetty: STARTED Jetty Mon Sep 5 16:39:26 PDT 2011
To stop Jetty web server:
- Press the Up Arrow key to repeat the previous line at the command line.
- Press Backspace to replace the word 'start' with the word 'stop'.
- Press Return to execute that line.
You’ll see something like this:
Stopping Jetty: OK
To verify Jetty is running and verify its configuration, pass the word
check
rather than start
or stop
.Jetty defaults to port 8080. So to try it, point your web browser to:
http://localhost:8080/
To use port 80, see my other posts on port-forwarding.
I’m working on an Intel MacBook with Core 2 Duo running Mac OS X 10.6.7 with Java version "1.6.0_26" 64-bit.
Thanks for the help
ReplyDeleteThank you very much. This works a treat. 5 stars from me.
ReplyDelete