New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Operating System General OS operation information and support

Unable to load Tomcat on boot


Post Reply New Thread Subscribe

 
Thread Tools
mperemsky

 
Member Since: Apr 13, 2010
Posts: 2
mperemsky is on a distinguished road

mperemsky is offline
I am trying to get Tomcat to start on my mac osx system when the machine boots. I have googled for an answer and the solution seems to lie somewhere in the plist world. But I cannot get it to load on startup.

I have followed several sites (3 or 4) that have given explicit directions as to what to do. One site wanted me to install Confluence and create a script to load Tomcat when the machine starts. But that fails when trying to create a log file (no permissions -but I do not know what is trying to create the file so I cannot grant permissions to it). Then I found that Confluence itself needs to be set to load on startup so that it can load tomcat on startup. OK, scratch confluence, too involved and too much crap to load on startup.

Next, create a plist for org.apache.tomcat and a small script and everything will be right with the world. OK, created the plist per the docs, using vi. It did not work, then I saw another post that said plist files are supposed to be binary files, sooo, use plutil to convert the text plist to a binary plist. It still does not load on startup. I do not know where to look for error messages, so I do not know why this is not starting up.

Then there was another thread that said to create shell scripts in the startupitems folder, but I believe that this folder and the items in it are defunct and should be shunned, so I have now shunned it (after not getting that to work either).

Does anyone know/have a link as to how to get Tomcat to start when the machine boots up. I am new to a Mac and when I see links to set this stuff up I do not know if they are for older versions and, hence, obsolete, or not.

My org.apache.tomcat.plist file

Code:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
        <key>Disabled</key>
        <false/>
        <key>EnvironmentVariables</key>
        <dict>
                <key>CATALINA_HOME</key>
                <string>/Tomcat</string>
                <key>JAVA_HOME</key>
                <string>/Library/Java/Home</string>
        </dict>
        <key>Label</key>
        <string>com.apache.tomcat</string>
        <key>ProgramArguments</key>
        <array>
                <string>/Tomcat/bin/startup.sh</string>
        </array>
        <key>RunAtLoad</key>
        <true/>
</dict>
</plist>
TIA
QUOTE Thanks

Post Reply New Thread Subscribe


« Mac osx 10.4.11 updated | Help with Screen Saver / Energy Saver stuff? »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
Freshly installed MBP with leopard now it takes 6 minutes to load / boot up! studio-steve OS X - Operating System 5 03-14-2010 12:13 PM
Can't load Service Pack 3 XP Pro / Boot Camp Graphicsguy Running Windows (or anything else) on your Mac 3 07-27-2009 01:19 PM
Unable to access Windows Boot Camp partition after erasing it Joey V Running Windows (or anything else) on your Mac 1 07-09-2009 10:56 PM
iMac G5 won't boot, won't load ext HDs photokaty Apple Desktops 0 06-14-2009 03:30 PM
OS Tiger Major Problem! Won't boot - I've tried everything! am2681 OS X - Operating System 5 03-14-2008 03:01 PM

All times are GMT -4. The time now is 12:53 AM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?