-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Thanx for the hints... what I still can't figure out is how to put the /conf/ directory in CATALINA_HOME instead of CATALINA_BASE .... or at least configure where it looks for it...

Mark Demma
Senior UNIX Systems Admin
PlanetOut Inc.

On 9 Feb 2006, at 0:14, abdurrahman sahin wrote:

you may try to manually run tomcat via a script, that may help you to assign
tomcat variables seperately
i run tomcat via a script (guistart.sh) containing that

CATALINA_HOME=$ARGELA_RUN_HOME/SANE_GUI_WEB/tomcat
export CATALINA_HOME
cd $CATALINA_HOME/bin
java -Dcatalina.base=$CATALINA_HOME -Dcatalina.home=$CATALINA_HOME - Djava.en
dorsed.dirs=$CATALINA_HOME/common/endorsed -Djava.
io.tmpdir=$CATALINA_HOME/temp -cp
$CATALINA_HOME/bin/bootstrap.jar:$JAVA_HOME/lib/tools.jar
org.apache.catalina.startup.Bootst
rap start

  -----Original Message-----
  From: Mark Demma [mailto:[EMAIL PROTECTED]
  Sent: Thursday, February 09, 2006 5:06 AM
  To: users@tomcat.apache.org
  Subject: Using Tomcat over NFS over multiple hosts, want to separate
locations of directories


  Hello folks


I am currently trying to convert from Resin Pro 3.0.17 to Tomcat 5.5. We have several Solaris 9 machines and we generally place applications in a NFS mounted "/usr/dist/" directory, which is RO for the web application servers.
I have a local link, /usr/resin -> /usr/dist/pkgs/resin
which points to /usr/dist/pkgs/resin/ -> vers/resin-pro-3.0.17 so that I can easily install a new version of resin by changing that link. I have my
RESIN_HOME=/usr/resin, which is the NFS mount and my
SERVER_ROOT=/usr/local/resin, which is a local directory. In my resin.conf,
I use
  <web-app-deploy path="/w/${mode}/warfiles"
expand-path="/usr/local/resin/webapps"/>
to have Resin look on another NFS mounted directory "/w" for its warfiles,
which it expands in the locally mounted /usr/local/resin.


  This setup allows me to have my resin config files, binaries, shared
libraries, etc, on a central NFS server, my warfiles on another NFS server and the only thing I need to have local is the webapps dir where it explodes the war files, and cache and session. I am thus able to turn a machine into a "resin server" by copying over one rc file, which when invoked creates the
/usr/local/resin dir and pulls everything else it needs off of NFS.


  I've been scouring the web for days trying to figure out how to make
Tomcat do the same thing, but can't for the life of me figure out how... the two main problems I run into is the inability to separate the web app deploy path, i.e. where it LOOKS for the warfiles and the expand path, where it expands them. The other problem is wanting to put the conf/ files in a different location from the webapp/ files. $CATALINA_BASE seems to be the extent to which you can separate things, and it wants to put conf, logs,
shared, webapps. work. temp together...


  So.... my question is how in Tomcat do I put the bin/ common/ conf/
server/ and shared/ directories in one location (NFS mounted RO) the temp/ webapps/ and work / locally ; logs/ (all of them, including catalina.out) in a sepate location NOT in $CATALINA_BASE or HOME; AND put the location
Tomcat looks for new .war files in another NFS mounted location.


I know I could do it all with sym-links, but god that would be messy. Any
suggestions?


  Mark Demma
  Senior UNIX Systems Admin
  PlanetOut Inc.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Darwin)

iD8DBQFD677rJMZqGyatjL8RAtYBAJ94OWxJWXk8Q0onIpG6pV1oxYfeygCfUVPB
pwD46mwBmrnfxIHf7p/Sgc4=
=kltC
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to