----- Original Message -----
From: "Johnny Kewl" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <users@tomcat.apache.org>
Sent: Tuesday, June 24, 2008 4:21 PM
Subject: Re: Tomcat caching and deployment issues
----- Original Message -----
From: Steven Probetts
To: users@tomcat.apache.org
Sent: Tuesday, June 24, 2008 10:58 AM
Subject: Tomcat caching and deployment issues
Hi all,
I am running Tomcat 5.5.25 on MACOSX Server.
I seem to be having a problem with what seems to be caching through
deployments.
I deploy a newer version of my application (which uses Icefaces) or
make a change in the database and what appears to happen is that the
changes don't take effect until after i stop and restart the tomcat
instance. (I do this via launchd load and unload commands).
Resetting the browser caches doesn't seem to solve the problem, only
restarting tomcat.
My web app uses iceFaces (a plug in to JSF which I believe icefaces is
written in javascript).
I also have a suspicion that Tomcat was copied (or at least the
directories such as conf, temp, work and all the others) from another
machine....if this helps. A single binary of Tomcat is stored
elsewhere in the file system which (/opt/tomcat/).
Also we don't use the webapps directory. We put the war file into a
specially created wars dir and point to it from the context file (we
do this so that we can have one war file serve multiple sites, each
site having a different context file.). The native tomcat that
apparently comes with MACOSX server wasn't used, I'm not sure why.
The directory structure looks like:
/opt/tomcat/wars stores our war files These are pointed to from each
site's (instance's) context file
/opt/tomcat/instances/site-name1/ contains the conf, webapps (not
used), logs ....etc
Running version.sh returns:
Using CATALINA_BASE: /opt/tomcat
Using CATALINA_HOME: /opt/tomcat
Using CATALINA_TMPDIR: /opt/tomcat/temp
Using JRE_HOME: /System/Library/Frameworks/JavaVM.framework/
Versions/1.5/Home
Server version: Apache Tomcat/5.5.25
Server built: Aug 24 2007 05:33:50
Server number: 5.5.25.0
OS Name: Mac OS X
OS Version: 10.5.3
Architecture: i386
JVM Version: 1.5.0_13-b05-237
JVM Vendor: Apple Inc.
Any help would be appreciated. I'm fairly new to Tomcat, iceFaces etc
so I'm not sure what caches where etc.
Steve... if you want to redeploy an unpacked webapp, outside of TC, because
I dont thing auto detection of a WAR will work, you have to also run this
http://TheTC:8080/manager/deploy?config=file://path/to/context.xml&path=/TheContextWanted
and that context needs to have the correct docPath etc...
Your successor was probably up to something like that... and probably
because they trying to share static content or file uploads or something...
The rest you on your own, it looks like they also have Mac bundles sharing a
common TC binary... and inside those things one can make a whole virtual
machine.
So what they maybe up to is sharing static stuff... TC will detect a new
html file and images and JSP changes without a full redeploy.
So one TC uploads, the others can see it... probably something like that,
but TC will have to be told when you doing a full redeploy.
If they not sharing... then take the whole thing back to webapps, and even
think about load sharing with Apache, because then that will hold the static
content in one place and you have three TC's with one URL address... if they
sharing the same content on 3 TC's with no load sharing, then URI cant be
the same now.
Ok now done guessing ;) something like that must be happening... good luck
with your take over job ;)
---------------------------------------------------------------------------
HARBOR : http://www.kewlstuff.co.za/index.htm
The most powerful application server on earth.
The only real POJO Application Server.
See it in Action : http://www.kewlstuff.co.za/cd_tut_swf/whatisejb1.htm
---------------------------------------------------------------------------
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]