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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
