File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Tomcat and the fly likes Problem executing a command after startup(OSX 10.7) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Problem executing a command after startup(OSX 10.7)" Watch "Problem executing a command after startup(OSX 10.7)" New topic
Author

Problem executing a command after startup(OSX 10.7)

Vadim Korotchenko
Greenhorn

Joined: Feb 29, 2012
Posts: 1
Hi, I am having some issues with tomcat on startup. In my program tomcat executes an Imagemagick command but it fails to do so right after startup,but if I either start tomcat manually or restart tomcat using(sudo shutdown.sh and startup.sh) everything works fine. I suspect it has something to do with the plist, but I hit a wall. This is what I have so far:

- my plist calls a script which is a launchd wrapper:



- the script starts tomcat





The only other thing I have found is that when I run "sudo ./launchd_wrapper.sh" the console displays:

sudo: <<USERNAME>> : TTY=ttys002 ; PWD=/Library/Tomcat/apache-tomcat-6.0.29/bin ; USER=root ; COMMAND=/Library/Tomcat/Home/bin/startup.sh

whereas if I run "sudo launchctl load -w /Library/LaunchDaemons/myplist.plist "

sudo: <<USERNAME>> : TTY=unknown ; PWD=/ ; USER=root ; COMMAND=/Library/Tomcat/Home/bin/startup.sh

Any thoughts or ideas will be greatly appreceiated
Thank you
-Vadim


 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem executing a command after startup(OSX 10.7)