This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes Tomcat and the fly likes Trouble launching Tomcat as daemon upon Mac startup Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Trouble launching Tomcat as daemon upon Mac startup" Watch "Trouble launching Tomcat as daemon upon Mac startup" New topic
Author

Trouble launching Tomcat as daemon upon Mac startup

Dave Alvarado
Ranch Hand

Joined: Jul 02, 2008
Posts: 436
Hi,

I'm using Tomcat 6.0.26 and Mac 10.6.3. I want to have Tomcat launch as a daemon upon system startup. Per this article -- http://www.malisphoto.com/tips/tomcatonosx.html#Anchor-MODJK, I created the file "org.apache.commons.jsvc.plist" in my /Library/LaunchDaemons folder. However, when I reboot my system, no Tomcat. I must run the script "sh $CATALINA_HOME/bin/startup.sh" for it to run. Here are the contents of my "org.apache.commons.jsvc.plist" file:



and the contents of the "/Library/Tomcat/Home/bin/Tomcat5.sh" file ...



Thanks for any help or additional troubleshooting tips, - Dave
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39544
    
  27
Not sure what's wrong with that, but this approach works fine for me.


Ping & DNS - updated with new look and Ping home screen widget
Dave Alvarado
Ranch Hand

Joined: Jul 02, 2008
Posts: 436
Yeah, not sure what that other method was but you're method worked for me. Thanks, -
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Trouble launching Tomcat as daemon upon Mac startup
 
Similar Threads
Tomcat startup problems
error starting up 2nd instance of tomcat
Problem executing a command after startup(OSX 10.7)
Tomcat unix daemon can't load jsvc tomcat-juli.jar
Tomcat unix daemon can't load jsvc tomcat-juli.jar