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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat on OS X
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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] smime.p7s Description: S/MIME cryptographic signature
Re: Tomcat on OS X
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 : [EMAIL PROTECTED] 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat on OS X
On Jan 30, 2004, at 2:55 PM, Mikaël VAILLANT wrote: 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. Hmmm, I seem to remember something like that. So maybe I need to add a user to the www group. This user should be the user that starts all applications in the StartupItems folder. Am I correct? If so then what is the user to add to this group? Kind regards Werner - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat on OS X
At 1:36 pm +0100 2004/01/30, Werner van Mook wrote: [...] StartService () { if [ ${TOMCAT:=-NO-} = -YES- ]; then ConsoleMessage Starting Jakarta Tomcat sh /usr/local/tomcat/bin/startup.sh fi } [...] take the off that line above. Giuliano -- H U M P H || ||| software Java C++ Server/Client/Human Interface applications on MacOS - MacOS X http://www.humph.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat and OS X Problem
I'm new to Tomcat. Just installed 4.1.12 on Mac OS X 10.2. The Tomcat Administration and Manager are working fine. Everything in Manager is running=true except the /examples. I cannot find an error message in the log files clear enough to aid me in resolving the problem. If I click on Start in Manager I get the message, FAIL - Application at context path /examples could not -- very helpful, eh? :) This is some log file info. I don't know what the previous error might be. The docs mention a possible error regarding a proxy and localhost. I'm not behind a proxy, so I don't think that's relevant. 2002-10-23 22:52:58 StandardContext[/examples]: Context startup failed due to pr evious errors 2002-10-23 22:52:58 ContextListener: attributeReplaced('org.apache.catalina.WELC OME_FILES', '[Ljava.lang.String;306677') 2002-10-23 22:52:58 ContextListener: attributeReplaced('org.apache.catalina.WELC OME_FILES', '[Ljava.lang.String;171523') 2002-10-23 22:52:58 ContextListener: attributeReplaced('org.apache.catalina.WELC OME_FILES', '[Ljava.lang.String;6cb599') 2002-10-23 22:52:58 SessionListener: contextDestroyed() 2002-10-23 22:52:58 ContextListener: contextDestroyed() Any suggestions would be appreciated. Thanks, Chris -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org