aspose 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
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)
 
Similar Threads
Need help with Tomcat on OSX...
Trouble figuring out why Tomcat isn't launching on startup
Trouble launching Tomcat as daemon upon Mac startup
Multiple instances of Tomcat 6, class loading experiencing problems for each instance
Why is Fedora 14 64 bit Tomcat from yum install superior to the Tomcat from Apache's website?