tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mikaël VAILLANT <lea...@wanadoo.fr>
Subject Re: Tomcat on OS X
Date Fri, 30 Jan 2004 13:55:45 GMT
It's not a problem with Tomcat but with Mac OS X security. Only webusers can use port 80. Root
have all privilege so you don't have problem with it.

> Message du 30/01/04 13:44
> De : Werner van Mook 
> A : tomcat-user@jakarta.apache.org
> Copie à : 
> Objet : Tomcat on OS X
> Hi all,
> 
> I know this has to be asked before.
> I can't browse the mail history.
> 
> I want to automatically let tomcat start when starting my mac.
> I created a Tomcat directory in StartupItems in /Library.
> In this dir I created 2 files :
> StartupParameters.plist
> 
> {
> Description = "Tomcat web server";
> Provides = ("Web Container");
> Requires = ("DirectoryServices");
> Uses = ("Disks", "NFS");
> OrderPreference = "None";
> }
> 
> and a Tomcat file
> 
> #!/bin/sh
> 
> ##
> # Tomcat Web Server
> ##
> 
> . /etc/rc.common
> 
> StartService ()
> {
> if [ "${TOMCAT:=-NO-}" = "-YES-" ]; then
> ConsoleMessage "Starting Jakarta Tomcat"
> sh /usr/local/tomcat/bin/startup.sh &
> fi
> }
> 
> StopService ()
> {
> ConsoleMessage "Stopping Jakarta Tomcat"
> sh /usr/local/tomcat/bin/shutdown.sh
> }
> 
> RestartService ()
> {
> if [ "${TOMCAT:=-NO-}" = "-YES-" ];then
> ConsoleMessage "Restarting Jakarta Tomcat"
> StopService
> StartService
> else
> StopService
> fi
> }
> 
> RunService "$1"
> 
> 
> 
> in /etc/hostconfig I added at the bottom of the file :
> 
> Tomcat=-YES-
> 
> All files are owned by root.
> 
> When I restart my computer I get a message that tomcat is starting.
> 
> When my computer is completely booted I start Safari (or any other 
> browser)
> and surf to http://localhost.
> 
> I get the message that the server is not available......
> 
> 
> When doing startup.sh in a terminal window (I included the bin dir in 
> my path)
> and opening the catalina.out file I see a error message saying that I 
> do not have
> the permission to open port 80.
> 
> When I do startup.sh as root there is no problem.
> 
> I think that it will not start automatically because there is a 
> permission problem.
> But I can't find any log message that says so.
> 
> So who can shine his clever light on this?
> 
> 
> Werner van Mook
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> 
>
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message