tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tom Cherry <jcea...@mac.com>
Subject Re: Tomcat on OS X
Date Fri, 30 Jan 2004 14:28:28 GMT
Off the top of my head, I can not remember, but here is a link to the  
download on Apple's page to a .pkg that installs Tomcat.  You could  
hack what you need out of it (or use it).

http://www.apple.com/downloads/macosx/unix_open_source/ 
apachejakartaproject.html

--
End of line

On Jan 30, 2004, at 7:36 AM, Werner van Mook wrote:

> 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
View raw message