Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Prevent SomeWords from being rendered as wiki links. That is done by prefixing them with a '!' character.

...

(3) Fix the Unix file permissions

  • Download the freeware BatChmod, a GUI wrapper around the Unix "chmod" command.

...

  • Drag and drop the entire Tomcat folder onto the BatChmod icon.
  • Check *all* the checkboxes.

...

  • Add a rule to do port-forwarding from port 80 to Tomcat's default port 8080. Type this in the Terminal:
    No Format
    sudo ipfw add 100 fwd 127.0.0.1,8080 tcp from any to any 80 in
    
    Or use this nifty program, another GUI wrapper around the ipfw command line, Simple Port Forwarder: http://www.4dresources.com/files/

The Sharing SysPref will get cranky when you add an ipfw rule behind its back; it disables its user interface. To use the Sharing SysPref again you'll have to clear that rule, the one we added and numbered 100. To delete a rule, either read the ipfw man page, or use Simple Port Forwarder again. Quit the System Preferences program, and re-launch it to re-enable its Firewall panel.

...

To have Tomcat 6.0.x launch on boot on Mac OS X 10.5.x, you need to add a LaunchDaemon. Create a file called org.apache.tomcat.plist in /Library/LaunchDaemons/ with the following content:

...

Inside this, create two files - Tomcat (script) and StartupParameters.plist. Again, make them writable only by root, and the script executable by everyone.

Contents of StartupParameters.plist:

No Format
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>Description</key>
	<string>Tomcat Server</string>
	<key>OrderPreference</key>
	<string>Late</string>
	<key>Provides</key>
	<array>
		<string>Tomcat</string>
	</array>
	</dict>
</plist>

...