There are two scenarios you have to consider: running one Tomcat with multiple Contexts, with each user having their own Context with appropriate permissions, and running multiple Tomcats with single (or multiple) Contexts, with each user having their own instance of Tomcat and their own Contexts.
If #1, you don't need CATALINA_BASE. If #2, you need CATALINA_BASE. You would set CATALINA_BASE to be equal to the directory that each user uses for their applications and code. CATALINA_HOME in scenario #2 would be equal to CATALINA_HOME in #1. The advantages of #1 are centralized control. The disadvantages are that a problem with one user's application may cause problems with the others, for example, if Tomcat has to be restarted, all applications would be stopped instead of a particular user's application. The advantages of #2 are centralized but specific control. Each user's Tomcat could be stopped, started, and managed without affecting any of the others. The disadvantages of #2 are increased administration. We use #2. Each user (client) has their own server.xml, their own Tomcat work directory, their own startup and shutdown scripts (like startup-user1.sh and shutdown-user2.sh) and their own webapps directory. Tomcat can be managed, stopped, and started for each user without changing or effecting anything on the others. There is only one CATALINA_HOME/bin directory, and only one CATALINA_HOME/lib directory. John > -----Original Message----- > From: Rolf Borgen Guescini [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, December 04, 2002 5:21 PM > To: Tomcat Users List > Subject: RE: Mutliuser setup > > > Thanks both to you and David Brown for the quick response ! : ) > > As this was my first posting to this mailing list, and since > I don't have > any experience with posting on such lists, I see that I > expressed myself a > little bit inexact. But Jeremy's idea of reading the > RUNNING.txt is quit > to the point: > > "In many circumstances, it is desirable to have a single copy > of a Tomcat 4 > binary distribution shared among multiple users on the same server. " > > This is what I would like to do: > the os is sparc-sun-solaris2.5 on a sun box - i don't know > more about it, > I'm sorry.. > My plan was to have the administrator > create a group that would have access to a directory on the > server where > each user in that group had their own directories which I > could set up as > contexts in server.xml > > What I would like to know then is where the best place would > be to place > Tomcat since the administrator wants control startups and shutdowns. > > the next thing the RUNNING.txt says is: > > you must configure a CATALINA_BASE environment variable (in > addition to CATALINA_HOME as described above) that points to > a directory > that is unique to your instance > > what would be a directory that is unique to my instance ? > > could the user directory that the administrator creates be > that directory? > > since > When you do this, Tomcat 4 will calculate all relative references for > files in the following directories based on the value for > CATALINA_BASE > instead of CATALINA_HOME: > > * conf - Server configuration files (including server.xml) > > * logs - Log and output files > > * webapps - Automatically loaded web applications > > * work - Temporary working directories for web applications > > Whould this solve my task or have I completely gotten it wrong? > > Maybe also what David Brown wrote about adresses what might become a > future problem: the service won't be public with a lot of > traffic on it, > but the pages would be openly acessible. Since there have been several > attacks on our different servers, security is a hot issue > these days, and > I have a hard time finding out how to solve the problem of > having to bug > the administrator each time we need the server reset. It > would be great if > there was a solution to this problem. > > I am grateful for all help I can get in learning this ! : ) > > Rolf > ~\\|//~ > -(o o)- > ************oOOOo**(_)**oOOOo************ > * Rolf Borgen Guescini * > * ----------------------- * > * * > * [EMAIL PROTECTED] * > * [EMAIL PROTECTED] * > * http://folk.uio.no/rolfbg * > * * > * * > * .oooO Oooo. * > **************( )***( )************** > \ ( ) / > \_) (_/ > > On Wed, 4 Dec 2002, Jeremy Joslin wrote: > > > Start out by looking at #4 on the list here: > > http://jakarta.apache.org/tomcat/tomcat-4.0-doc/RUNNING.txt > > > > Jeremy > > > > > -----Original Message----- > > > From: Rolf Borgen Guescini [mailto:[EMAIL PROTECTED]] > > > Sent: Wednesday, December 04, 2002 8:13 AM > > > To: [EMAIL PROTECTED] > > > Subject: Mutliuser setup > > > > > > Does anybody know what to do when setting up tomcat on a UNIX > > environment > > > for more than one user? > > > > > > Is the best way to define a directory owned by a group > where all the > > users > > > belong,and then make contexts in server.xml? > > > > > > Or is there another way of doing it? > > > > > > RBG > > > > > > ~\\|//~ > > > -(o o)- > > > ************oOOOo**(_)**oOOOo************ > > > * Rolf Borgen Guescini * > > > * ----------------------- * > > > * * > > > * [EMAIL PROTECTED] * > > > * [EMAIL PROTECTED] * > > > * http://folk.uio.no/rolfbg * > > > * * > > > * * > > > * .oooO Oooo. * > > > **************( )***( )************** > > > \ ( ) / > > > \_) (_/ > > > > > > > > > -- > > > To unsubscribe, e-mail: <mailto:tomcat-user- > > > [EMAIL PROTECTED]> > > > For additional commands, e-mail: <mailto:tomcat-user- > > > [EMAIL PROTECTED]> > > > > > > > > -- > > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> > > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
