Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Tomcat questions

Tomcat questions
Thread Tools
Dedicated MacNNer
Join Date: Nov 2000
Location: Netherlands
Status: Offline
Reply With Quote
May 13, 2004, 12:02 PM
 
I've just installed Tomcat 5 on my Mac, and it works. Still I'm not sure where's the best place to put it. Now I've put it in /etc/jakarta-tomcat-5.0.24 but is that the best place? Does it matter?

Can I have Tomcat start up without logging in?

How do I set the JAVA_HOME variable best? I thought this variable was set by default by OSX, but "echo $JAVA_HOME" didn't return anything.

Is there a preference pane or some front-end GUI tool that can handle Tomcat settings, startup etc?
"Chance is irrelevant. We will succeed."
== 7 of 9 ==
     
Mac Elite
Join Date: Dec 2001
Location: Atlanta, GA, USA
Status: Offline
Reply With Quote
May 13, 2004, 12:23 PM
 
Originally posted by ervier:
I've just installed Tomcat 5 on my Mac, and it works. Still I'm not sure where's the best place to put it. Now I've put it in /etc/jakarta-tomcat-5.0.24 but is that the best place? Does it matter?

Can I have Tomcat start up without logging in?

How do I set the JAVA_HOME variable best? I thought this variable was set by default by OSX, but "echo $JAVA_HOME" didn't return anything.

Is there a preference pane or some front-end GUI tool that can handle Tomcat settings, startup etc?
You can put it wherever you like. Apple installs it in /Library/tomcat for the developer tools.

You can start it up without logging in by creating a StartupItem.

I set JAVA_HOME in my .bashrc to:

Code:
JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Home export JAVA_HOME
There are two tools on VersionTracker that purport to provide GUIs for Tomcat, but both of them seem pretty crappy to me.
Mac Pro 2x 2.66 GHz Dual core, Apple TV 160GB, two Windows XP PCs
     
Clinically Insane
Join Date: Nov 1999
Status: Offline
Reply With Quote
May 14, 2004, 04:32 AM
 
Theoretically it can go wherever you want, but /etc is usually for system configuration files, not programs. Out of curiosity, why did you put it there?
You are in Soviet Russia. It is dark. Grue is likely to be eaten by YOU!
     
Occasionally Useful
Join Date: Jun 2001
Location: Liverpool, UK
Status: Offline
Reply With Quote
May 14, 2004, 05:42 AM
 
i installed mine in /usr/local and made things a bit easier by making a symbolic link in my home directory, so i could just dump files in there, via Finder:
ln -s /usr/local/jakarta-tomcat-5.0.19/webapps/ROOT /users/username/Tomcat
"Have sharp knives. Be creative. Cook to music" ~ maxelson
     
Junior Member
Join Date: Sep 2000
Status: Offline
Reply With Quote
May 19, 2004, 05:32 AM
 
Originally posted by ervier:
I've just installed Tomcat 5 on my Mac, and it works. Still I'm not sure where's the best place to put it. Now I've put it in /etc/jakarta-tomcat-5.0.24 but is that the best place? Does it matter?

Can I have Tomcat start up without logging in?

How do I set the JAVA_HOME variable best? I thought this variable was set by default by OSX, but "echo $JAVA_HOME" didn't return anything.

Is there a preference pane or some front-end GUI tool that can handle Tomcat settings, startup etc?
I have it installed in my home directory, and run it as a user not root. Java home is some complex path in System/Library, frameworks... you can get it from Apples developer doc's. I have it set in my .tscrc file.

In terms of setup I don't know of any GUI for editing server.xml, but you could use any XML editor to get a 'nice' tree view. Its very much along the usual apache configuration lines.
Nobody made a greater mistake than
he who did nothing because he could only
do a little. Edmund Burke
     
   
Thread Tools
Forum Links
Forum 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 On
Top
Privacy Policy
All times are GMT -5. The time now is 06:31 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2