Re: tomcat caching issue

2005-09-30 Thread Tim Funk
Based on everything written so far - there is no evidence tomcat would be 
chaching anything.


I'd suggest placing as much debug code in your code as possible via a logging 
pacakge such as log4j/commons-logging so the log information can be turned on 
via configuration directives.


-Tim

Santosh Asbe wrote:


Hi All,

I need your help for this problem very urgently.

I have tomcat 4.1.30 on Linux. It servers as a web server and contains only
JSP  Servlets. We make a remote call to Websphere Application Server ( on
AIX) using corbaloc like 'corbaloc::ip1:2809:ip2:2809'. Now when i one of my
App server fails, the other App Server server should take over. This work
when i use a simple java client on the Linux machine, the failover occurs.
But when i use my application in tomcat, this does not work.
I am using a Service locator ( singleton) which makes the initial call to
App Server and stores in the ip cache. initially we that the issue was with
the Service locator, but then even if i don't use this Service Locator, the
problem persists.

We have talked to IBM and they say that the tomcat does some caching and the
problem is not with the App Server. Has anyone faced this issue? Can anyone
help regarding this and how can i know how and where the caching is done?
Can this issue be resolved.

If any other information is required, i will be glad to provide with the
same.



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



Re: tomcat caching servlet conf directory?

2005-03-07 Thread Will Norris
okay... so disregard this.  It turns out the servlet was parsing the
configuration document into a static variable that was not being reset
between tests.  All is well with the world again.

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



RE: Tomcat Caching

2003-11-11 Thread Adam Dear
Schalk,

I added the following line to the server.xml file and restarted tomcat.
context path=/servlet docBase=servlet debug=0 reloadable=true /

That didn't work.  Can you tell what is wrong.  I have tomcat to load
servlets from the classes dir so that I access servlets like this:

http://mydomain.com:port#/servlet/File

Will this make a difference with what I am trying to do?

Thanks

-Original Message-
From: Schalk [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 11, 2003 12:47 AM
To: 'Tomcat Users List'
Subject: RE: Tomcat Caching


Adam

In the Tomcat confide directory, there is a file called server.xml. Inside
here you can create a Context-Path and set reloadable=true.

Example:
Context path=/meccafemme docBase=meccafemme debug=0
reloadable=true /

Kind Regards
Schalk Neethling
Web Developer.Designer.Programmer.CEO
Volume4.Development.Multimedia.Branding
emotionalize.conceptualize.visualize.realize
Tel: +27125468436
Fax: +27125468436
email:[EMAIL PROTECTED]
web: www.volume4.co.za

This message contains information that is considered to be sensitive or
confidential and may not be forwarded or diclosed to any other party without
the permission of the sender. If you received this message in error, please
notify me immediately so that I can correct and delete the original email.
Thank you.

:: -Original Message-
:: From: Adam Dear [mailto:[EMAIL PROTECTED]
:: Sent: Saturday, October 11, 2003 7:36 AM
:: To: tomcat
:: Subject: Tomcat Caching
::
:: hello, I have just started using Tomcat to host my java servlets.  I want
to
:: know if there is anyway to turn off the caching for development purposes.
:: As it is now, when I make change to a servlet, I have to restart the
tomcat
:: server for the changes to take effect.  While this isn't hard, it is a
tad
:: bit annoying.  Please be specific as I know very little about tomcat.
::
:: Thanks
::
::
:: -
:: To unsubscribe, e-mail: [EMAIL PROTECTED]
:: For additional commands, e-mail: [EMAIL PROTECTED]



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



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



RE: Tomcat Caching

2003-11-11 Thread Schalk
Is your application directory within tomcat/webapps/ called servlet?

Kind Regards
Schalk Neethling
Web Developer.Designer.Programmer.CEO
Volume4.Development.Multimedia.Branding
emotionalize.conceptualize.visualize.realize
Tel: +27125468436
Fax: +27125468436
email:[EMAIL PROTECTED]
web: www.volume4.co.za
 
This message contains information that is considered to be sensitive or
confidential and may not be forwarded or diclosed to any other party without
the permission of the sender. If you received this message in error, please
notify me immediately so that I can correct and delete the original email.
Thank you. 

:: -Original Message-
:: From: Adam Dear [mailto:[EMAIL PROTECTED]
:: Sent: Saturday, October 11, 2003 8:35 AM
:: To: Tomcat Users List
:: Subject: RE: Tomcat Caching
:: 
:: Schalk,
:: 
:: I added the following line to the server.xml file and restarted tomcat.
:: context path=/servlet docBase=servlet debug=0 reloadable=true /
:: 
:: That didn't work.  Can you tell what is wrong.  I have tomcat to load
:: servlets from the classes dir so that I access servlets like this:
:: 
:: http://mydomain.com:port#/servlet/File
:: 
:: Will this make a difference with what I am trying to do?
:: 
:: Thanks
:: 
:: -Original Message-
:: From: Schalk [mailto:[EMAIL PROTECTED]
:: Sent: Tuesday, November 11, 2003 12:47 AM
:: To: 'Tomcat Users List'
:: Subject: RE: Tomcat Caching
:: 
:: 
:: Adam
:: 
:: In the Tomcat confide directory, there is a file called server.xml.
Inside
:: here you can create a Context-Path and set reloadable=true.
:: 
:: Example:
:: Context path=/meccafemme docBase=meccafemme debug=0
:: reloadable=true /
:: 
:: Kind Regards
:: Schalk Neethling
:: Web Developer.Designer.Programmer.CEO
:: Volume4.Development.Multimedia.Branding
:: emotionalize.conceptualize.visualize.realize
:: Tel: +27125468436
:: Fax: +27125468436
:: email:[EMAIL PROTECTED]
:: web: www.volume4.co.za
:: 
:: This message contains information that is considered to be sensitive or
:: confidential and may not be forwarded or diclosed to any other party
without
:: the permission of the sender. If you received this message in error,
please
:: notify me immediately so that I can correct and delete the original
email.
:: Thank you.
:: 
:: :: -Original Message-
:: :: From: Adam Dear [mailto:[EMAIL PROTECTED]
:: :: Sent: Saturday, October 11, 2003 7:36 AM
:: :: To: tomcat
:: :: Subject: Tomcat Caching
:: ::
:: :: hello, I have just started using Tomcat to host my java servlets.  I
want
:: to
:: :: know if there is anyway to turn off the caching for development
purposes.
:: :: As it is now, when I make change to a servlet, I have to restart the
:: tomcat
:: :: server for the changes to take effect.  While this isn't hard, it is a
:: tad
:: :: bit annoying.  Please be specific as I know very little about tomcat.
:: ::
:: :: Thanks
:: ::
:: ::
:: :: -
:: :: To unsubscribe, e-mail: [EMAIL PROTECTED]
:: :: For additional commands, e-mail: [EMAIL PROTECTED]
:: 
:: 
:: 
:: -
:: To unsubscribe, e-mail: [EMAIL PROTECTED]
:: For additional commands, e-mail: [EMAIL PROTECTED]
:: 
:: 
:: 
:: -
:: To unsubscribe, e-mail: [EMAIL PROTECTED]
:: For additional commands, e-mail: [EMAIL PROTECTED]



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



RE: Tomcat Caching

2003-11-11 Thread Adam Dear
I am using the servlet invoker.  The actual director is
tomcat/webapps/ROOT/WEB-INF/classes/.

-Original Message-
From: Schalk [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 11, 2003 1:43 AM
To: 'Tomcat Users List'
Subject: RE: Tomcat Caching


Is your application directory within tomcat/webapps/ called servlet?

Kind Regards
Schalk Neethling
Web Developer.Designer.Programmer.CEO
Volume4.Development.Multimedia.Branding
emotionalize.conceptualize.visualize.realize
Tel: +27125468436
Fax: +27125468436
email:[EMAIL PROTECTED]
web: www.volume4.co.za

This message contains information that is considered to be sensitive or
confidential and may not be forwarded or diclosed to any other party without
the permission of the sender. If you received this message in error, please
notify me immediately so that I can correct and delete the original email.
Thank you.

:: -Original Message-
:: From: Adam Dear [mailto:[EMAIL PROTECTED]
:: Sent: Saturday, October 11, 2003 8:35 AM
:: To: Tomcat Users List
:: Subject: RE: Tomcat Caching
::
:: Schalk,
::
:: I added the following line to the server.xml file and restarted tomcat.
:: context path=/servlet docBase=servlet debug=0 reloadable=true /
::
:: That didn't work.  Can you tell what is wrong.  I have tomcat to load
:: servlets from the classes dir so that I access servlets like this:
::
:: http://mydomain.com:port#/servlet/File
::
:: Will this make a difference with what I am trying to do?
::
:: Thanks
::
:: -Original Message-
:: From: Schalk [mailto:[EMAIL PROTECTED]
:: Sent: Tuesday, November 11, 2003 12:47 AM
:: To: 'Tomcat Users List'
:: Subject: RE: Tomcat Caching
::
::
:: Adam
::
:: In the Tomcat confide directory, there is a file called server.xml.
Inside
:: here you can create a Context-Path and set reloadable=true.
::
:: Example:
:: Context path=/meccafemme docBase=meccafemme debug=0
:: reloadable=true /
::
:: Kind Regards
:: Schalk Neethling
:: Web Developer.Designer.Programmer.CEO
:: Volume4.Development.Multimedia.Branding
:: emotionalize.conceptualize.visualize.realize
:: Tel: +27125468436
:: Fax: +27125468436
:: email:[EMAIL PROTECTED]
:: web: www.volume4.co.za
::
:: This message contains information that is considered to be sensitive or
:: confidential and may not be forwarded or diclosed to any other party
without
:: the permission of the sender. If you received this message in error,
please
:: notify me immediately so that I can correct and delete the original
email.
:: Thank you.
::
:: :: -Original Message-
:: :: From: Adam Dear [mailto:[EMAIL PROTECTED]
:: :: Sent: Saturday, October 11, 2003 7:36 AM
:: :: To: tomcat
:: :: Subject: Tomcat Caching
:: ::
:: :: hello, I have just started using Tomcat to host my java servlets.  I
want
:: to
:: :: know if there is anyway to turn off the caching for development
purposes.
:: :: As it is now, when I make change to a servlet, I have to restart the
:: tomcat
:: :: server for the changes to take effect.  While this isn't hard, it is a
:: tad
:: :: bit annoying.  Please be specific as I know very little about tomcat.
:: ::
:: :: Thanks
:: ::
:: ::
:: :: -
:: :: To unsubscribe, e-mail: [EMAIL PROTECTED]
:: :: For additional commands, e-mail: [EMAIL PROTECTED]
::
::
::
:: -
:: To unsubscribe, e-mail: [EMAIL PROTECTED]
:: For additional commands, e-mail: [EMAIL PROTECTED]
::
::
::
:: -
:: To unsubscribe, e-mail: [EMAIL PROTECTED]
:: For additional commands, e-mail: [EMAIL PROTECTED]



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



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



Re: Tomcat Caching

2003-11-11 Thread Kwok Peng Tuck
If I remember correctly, you probably need to provide a servlet mapping 
for your servlet.

Adam Dear wrote:

Schalk,

I added the following line to the server.xml file and restarted tomcat.
context path=/servlet docBase=servlet debug=0 reloadable=true /
That didn't work.  Can you tell what is wrong.  I have tomcat to load
servlets from the classes dir so that I access servlets like this:
http://mydomain.com:port#/servlet/File

Will this make a difference with what I am trying to do?

Thanks

-Original Message-
From: Schalk [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 11, 2003 12:47 AM
To: 'Tomcat Users List'
Subject: RE: Tomcat Caching
Adam

In the Tomcat confide directory, there is a file called server.xml. Inside
here you can create a Context-Path and set reloadable=true.
Example:
Context path=/meccafemme docBase=meccafemme debug=0
reloadable=true /
Kind Regards
Schalk Neethling
Web Developer.Designer.Programmer.CEO
Volume4.Development.Multimedia.Branding
emotionalize.conceptualize.visualize.realize
Tel: +27125468436
Fax: +27125468436
email:[EMAIL PROTECTED]
web: www.volume4.co.za
This message contains information that is considered to be sensitive or
confidential and may not be forwarded or diclosed to any other party without
the permission of the sender. If you received this message in error, please
notify me immediately so that I can correct and delete the original email.
Thank you.
:: -Original Message-
:: From: Adam Dear [mailto:[EMAIL PROTECTED]
:: Sent: Saturday, October 11, 2003 7:36 AM
:: To: tomcat
:: Subject: Tomcat Caching
::
:: hello, I have just started using Tomcat to host my java servlets.  I want
to
:: know if there is anyway to turn off the caching for development purposes.
:: As it is now, when I make change to a servlet, I have to restart the
tomcat
:: server for the changes to take effect.  While this isn't hard, it is a
tad
:: bit annoying.  Please be specific as I know very little about tomcat.
::
:: Thanks
::
::
:: -
:: To unsubscribe, e-mail: [EMAIL PROTECTED]
:: For additional commands, e-mail: [EMAIL PROTECTED]


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


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


 



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


RE: Tomcat Caching

2003-11-11 Thread Schalk
Adam

In the server.xml you will find the following lines. This is the context for
the ROOT. Just uncomment it and add reloadable=true

!-- Tomcat Root Context --
!--
Context path= docBase=ROOT debug=0/
--

Kind Regards
Schalk Neethling
Web Developer.Designer.Programmer.CEO
Volume4.Development.Multimedia.Branding
emotionalize.conceptualize.visualize.realize
Tel: +27125468436
Fax: +27125468436
email:[EMAIL PROTECTED]
web: www.volume4.co.za
 
This message contains information that is considered to be sensitive or
confidential and may not be forwarded or diclosed to any other party without
the permission of the sender. If you received this message in error, please
notify me immediately so that I can correct and delete the original email.
Thank you. 

:: -Original Message-
:: From: Adam Dear [mailto:[EMAIL PROTECTED]
:: Sent: Saturday, October 11, 2003 8:45 AM
:: To: Tomcat Users List
:: Subject: RE: Tomcat Caching
:: 
:: I am using the servlet invoker.  The actual director is
:: tomcat/webapps/ROOT/WEB-INF/classes/.
:: 
:: -Original Message-
:: From: Schalk [mailto:[EMAIL PROTECTED]
:: Sent: Tuesday, November 11, 2003 1:43 AM
:: To: 'Tomcat Users List'
:: Subject: RE: Tomcat Caching
:: 
:: 
:: Is your application directory within tomcat/webapps/ called servlet?
:: 
:: Kind Regards
:: Schalk Neethling
:: Web Developer.Designer.Programmer.CEO
:: Volume4.Development.Multimedia.Branding
:: emotionalize.conceptualize.visualize.realize
:: Tel: +27125468436
:: Fax: +27125468436
:: email:[EMAIL PROTECTED]
:: web: www.volume4.co.za
:: 
:: This message contains information that is considered to be sensitive or
:: confidential and may not be forwarded or diclosed to any other party
without
:: the permission of the sender. If you received this message in error,
please
:: notify me immediately so that I can correct and delete the original
email.
:: Thank you.
:: 
:: :: -Original Message-
:: :: From: Adam Dear [mailto:[EMAIL PROTECTED]
:: :: Sent: Saturday, October 11, 2003 8:35 AM
:: :: To: Tomcat Users List
:: :: Subject: RE: Tomcat Caching
:: ::
:: :: Schalk,
:: ::
:: :: I added the following line to the server.xml file and restarted
tomcat.
:: :: context path=/servlet docBase=servlet debug=0 reloadable=true
/
:: ::
:: :: That didn't work.  Can you tell what is wrong.  I have tomcat to load
:: :: servlets from the classes dir so that I access servlets like this:
:: ::
:: :: http://mydomain.com:port#/servlet/File
:: ::
:: :: Will this make a difference with what I am trying to do?
:: ::
:: :: Thanks
:: ::
:: :: -Original Message-
:: :: From: Schalk [mailto:[EMAIL PROTECTED]
:: :: Sent: Tuesday, November 11, 2003 12:47 AM
:: :: To: 'Tomcat Users List'
:: :: Subject: RE: Tomcat Caching
:: ::
:: ::
:: :: Adam
:: ::
:: :: In the Tomcat confide directory, there is a file called server.xml.
:: Inside
:: :: here you can create a Context-Path and set reloadable=true.
:: ::
:: :: Example:
:: :: Context path=/meccafemme docBase=meccafemme debug=0
:: :: reloadable=true /
:: ::
:: :: Kind Regards
:: :: Schalk Neethling
:: :: Web Developer.Designer.Programmer.CEO
:: :: Volume4.Development.Multimedia.Branding
:: :: emotionalize.conceptualize.visualize.realize
:: :: Tel: +27125468436
:: :: Fax: +27125468436
:: :: email:[EMAIL PROTECTED]
:: :: web: www.volume4.co.za
:: ::
:: :: This message contains information that is considered to be sensitive
or
:: :: confidential and may not be forwarded or diclosed to any other party
:: without
:: :: the permission of the sender. If you received this message in error,
:: please
:: :: notify me immediately so that I can correct and delete the original
:: email.
:: :: Thank you.
:: ::
:: :: :: -Original Message-
:: :: :: From: Adam Dear [mailto:[EMAIL PROTECTED]
:: :: :: Sent: Saturday, October 11, 2003 7:36 AM
:: :: :: To: tomcat
:: :: :: Subject: Tomcat Caching
:: :: ::
:: :: :: hello, I have just started using Tomcat to host my java servlets.
I
:: want
:: :: to
:: :: :: know if there is anyway to turn off the caching for development
:: purposes.
:: :: :: As it is now, when I make change to a servlet, I have to restart
the
:: :: tomcat
:: :: :: server for the changes to take effect.  While this isn't hard, it
is a
:: :: tad
:: :: :: bit annoying.  Please be specific as I know very little about
tomcat.
:: :: ::
:: :: :: Thanks
:: :: ::
:: :: ::
:: :: ::
-
:: :: :: To unsubscribe, e-mail: [EMAIL PROTECTED]
:: :: :: For additional commands, e-mail:
[EMAIL PROTECTED]
:: ::
:: ::
:: ::
:: :: -
:: :: To unsubscribe, e-mail: [EMAIL PROTECTED]
:: :: For additional commands, e-mail: [EMAIL PROTECTED]
:: ::
:: ::
:: ::
:: :: -
:: :: To unsubscribe, e-mail: [EMAIL PROTECTED]
:: :: For additional commands, e-mail: [EMAIL PROTECTED

RE: Tomcat Caching

2003-11-10 Thread Schalk
Adam

In the Tomcat confide directory, there is a file called server.xml. Inside
here you can create a Context-Path and set reloadable=true.

Example:
Context path=/meccafemme docBase=meccafemme debug=0
reloadable=true /

Kind Regards
Schalk Neethling
Web Developer.Designer.Programmer.CEO
Volume4.Development.Multimedia.Branding
emotionalize.conceptualize.visualize.realize
Tel: +27125468436
Fax: +27125468436
email:[EMAIL PROTECTED]
web: www.volume4.co.za
 
This message contains information that is considered to be sensitive or
confidential and may not be forwarded or diclosed to any other party without
the permission of the sender. If you received this message in error, please
notify me immediately so that I can correct and delete the original email.
Thank you. 

:: -Original Message-
:: From: Adam Dear [mailto:[EMAIL PROTECTED]
:: Sent: Saturday, October 11, 2003 7:36 AM
:: To: tomcat
:: Subject: Tomcat Caching
:: 
:: hello, I have just started using Tomcat to host my java servlets.  I want
to
:: know if there is anyway to turn off the caching for development purposes.
:: As it is now, when I make change to a servlet, I have to restart the
tomcat
:: server for the changes to take effect.  While this isn't hard, it is a
tad
:: bit annoying.  Please be specific as I know very little about tomcat.
:: 
:: Thanks
:: 
:: 
:: -
:: To unsubscribe, e-mail: [EMAIL PROTECTED]
:: For additional commands, e-mail: [EMAIL PROTECTED]



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



RE: tomcat caching jsp to working directory (not /work)

2003-10-24 Thread Yansheng Lin
What happens if you start tomcat using $CATALINA_HOME/bin/startup.sh instead? 
I think that should point tomcat to the right work directory. 



-Original Message-
From: Euan Guttridge [mailto:[EMAIL PROTECTED] 
Sent: October 24, 2003 4:57 AM
To: '[EMAIL PROTECTED]'
Subject: tomcat caching jsp to working directory (not /work)


When I start tomcat as root using /etc/init.d/tomcat start, which in turn
starts $CATALINA_HOME/bin/startup.sh as tomcat, tomcat attempts to cache all
jsps to the directory from which I ran /etc/init.d/tomcat start.. 

I can force jsps to cache to $CATALINA_HOME/work/... by setting SCRATCHDIR
in $CATALINA_HOME/conf/web.xml but this is a workaround not a resolution. 

Any ideas?


Thanks
Euan



_

From : /etc/init.d/tomcat

#!/bin/bash
#
# chkconfig:
# description: Startup script for Tomcat

# Source function lib
. /etc/init.d/functions

RETVAL=$?

case $1 in
  start)
if [ -f $CATALINA_HOME/bin/startup.sh ];
  then
echo $Starting Tomcat
/bin/su tomcat $CATALINA_HOME/bin/startup.sh
fi
;;
  stop)
if [ -f $CATALINA_HOME/bin/shutdown.sh ];
  then
echo $Stopping Tomcat
/bin/su tomcat $CATALINA_HOME/bin/shutdown.sh
fi
;;
  *)
echo $Usage: $0 {start|stop}
exit 1
;;
esac

exit $RETVAL

__
From : $CATALINA_HOME/bin/startup.sh

#!/bin/sh
#

-
# Start Script for the CATALINA Server
#
# $Id: startup.sh,v 1.2 2002/01/15 02:55:38 patrickl Exp $
#

-

# resolve links - $0 may be a softlink
PRG=$0

while [ -h $PRG ] ; do
  ls=`ls -ld $PRG`
  link=`expr $ls : '.*- \(.*\)$'`
  if expr $link : '.*/.*'  /dev/null; then
PRG=$link
  else
PRG=`dirname $PRG`/$link
  fi
done

PRGDIR=`dirname $PRG`
EXECUTABLE=catalina.sh

# Check that target executable exists
if [ ! -x $PRGDIR/$EXECUTABLE ]; then
  echo Cannot find $PRGDIR/$EXECUTABLE
  echo This file is needed to run this program
  exit 1
fi

exec $PRGDIR/$EXECUTABLE start $@


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


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



RE: tomcat caching jsp to working directory (not /work)

2003-10-24 Thread Euan Guttridge
Essentially that is exactly what I am doing - the /etc/init.d/tomcat script
just fires up $CATALINA_HOME/bin/startup.sh as tomcat user.


Thanks
Euan

-Original Message-
From: Yansheng Lin [mailto:[EMAIL PROTECTED] 
Sent: 24 October 2003 17:52
To: 'Tomcat Users List'
Subject: RE: tomcat caching jsp to working directory (not /work)


What happens if you start tomcat using $CATALINA_HOME/bin/startup.sh
instead? 
I think that should point tomcat to the right work directory. 



-Original Message-
From: Euan Guttridge [mailto:[EMAIL PROTECTED] 
Sent: October 24, 2003 4:57 AM
To: '[EMAIL PROTECTED]'
Subject: tomcat caching jsp to working directory (not /work)


When I start tomcat as root using /etc/init.d/tomcat start, which in turn
starts $CATALINA_HOME/bin/startup.sh as tomcat, tomcat attempts to cache all
jsps to the directory from which I ran /etc/init.d/tomcat start.. 

I can force jsps to cache to $CATALINA_HOME/work/... by setting SCRATCHDIR
in $CATALINA_HOME/conf/web.xml but this is a workaround not a resolution. 

Any ideas?


Thanks
Euan



_

From : /etc/init.d/tomcat

#!/bin/bash
#
# chkconfig:
# description: Startup script for Tomcat

# Source function lib
. /etc/init.d/functions

RETVAL=$?

case $1 in
  start)
if [ -f $CATALINA_HOME/bin/startup.sh ];
  then
echo $Starting Tomcat
/bin/su tomcat $CATALINA_HOME/bin/startup.sh
fi
;;
  stop)
if [ -f $CATALINA_HOME/bin/shutdown.sh ];
  then
echo $Stopping Tomcat
/bin/su tomcat $CATALINA_HOME/bin/shutdown.sh
fi
;;
  *)
echo $Usage: $0 {start|stop}
exit 1
;;
esac

exit $RETVAL

__
From : $CATALINA_HOME/bin/startup.sh

#!/bin/sh
#

-
# Start Script for the CATALINA Server
#
# $Id: startup.sh,v 1.2 2002/01/15 02:55:38 patrickl Exp $
#

-

# resolve links - $0 may be a softlink
PRG=$0

while [ -h $PRG ] ; do
  ls=`ls -ld $PRG`
  link=`expr $ls : '.*- \(.*\)$'`
  if expr $link : '.*/.*'  /dev/null; then
PRG=$link
  else
PRG=`dirname $PRG`/$link
  fi
done

PRGDIR=`dirname $PRG`
EXECUTABLE=catalina.sh

# Check that target executable exists
if [ ! -x $PRGDIR/$EXECUTABLE ]; then
  echo Cannot find $PRGDIR/$EXECUTABLE
  echo This file is needed to run this program
  exit 1
fi

exec $PRGDIR/$EXECUTABLE start $@


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


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

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



RE: tomcat caching jsp to working directory (not /work)

2003-10-24 Thread Yansheng Lin
Um, I think there is a difference.  Something to do with the way tomcat resolves
its relative path.
In my .bashrc file, I had to cd to $CATALINA_HOME/bin/startup.sh first before
start tomcat. Otherwise
I would get a problme similar to yours.
Try it and see what happens...


alias startTomcat='cd  $CATALINA_HOME/bin; ./startup.sh; cd -;'
alias stopTomcat=' $CATALINA_HOME/bin/shutdown.sh'


-Yan


-Original Message-
From: Euan Guttridge [mailto:[EMAIL PROTECTED] 
Sent: October 24, 2003 11:05 AM
To: 'Tomcat Users List'
Subject: RE: tomcat caching jsp to working directory (not /work)


Essentially that is exactly what I am doing - the /etc/init.d/tomcat script
just fires up $CATALINA_HOME/bin/startup.sh as tomcat user.


Thanks
Euan

-Original Message-
From: Yansheng Lin [mailto:[EMAIL PROTECTED] 
Sent: 24 October 2003 17:52
To: 'Tomcat Users List'
Subject: RE: tomcat caching jsp to working directory (not /work)


What happens if you start tomcat using $CATALINA_HOME/bin/startup.sh
instead? 
I think that should point tomcat to the right work directory. 



-Original Message-
From: Euan Guttridge [mailto:[EMAIL PROTECTED] 
Sent: October 24, 2003 4:57 AM
To: '[EMAIL PROTECTED]'
Subject: tomcat caching jsp to working directory (not /work)


When I start tomcat as root using /etc/init.d/tomcat start, which in turn
starts $CATALINA_HOME/bin/startup.sh as tomcat, tomcat attempts to cache all
jsps to the directory from which I ran /etc/init.d/tomcat start.. 

I can force jsps to cache to $CATALINA_HOME/work/... by setting SCRATCHDIR
in $CATALINA_HOME/conf/web.xml but this is a workaround not a resolution. 

Any ideas?


Thanks
Euan



_

From : /etc/init.d/tomcat

#!/bin/bash
#
# chkconfig:
# description: Startup script for Tomcat

# Source function lib
. /etc/init.d/functions

RETVAL=$?

case $1 in
  start)
if [ -f $CATALINA_HOME/bin/startup.sh ];
  then
echo $Starting Tomcat
/bin/su tomcat $CATALINA_HOME/bin/startup.sh
fi
;;
  stop)
if [ -f $CATALINA_HOME/bin/shutdown.sh ];
  then
echo $Stopping Tomcat
/bin/su tomcat $CATALINA_HOME/bin/shutdown.sh
fi
;;
  *)
echo $Usage: $0 {start|stop}
exit 1
;;
esac

exit $RETVAL

__
From : $CATALINA_HOME/bin/startup.sh

#!/bin/sh
#

-
# Start Script for the CATALINA Server
#
# $Id: startup.sh,v 1.2 2002/01/15 02:55:38 patrickl Exp $
#

-

# resolve links - $0 may be a softlink
PRG=$0

while [ -h $PRG ] ; do
  ls=`ls -ld $PRG`
  link=`expr $ls : '.*- \(.*\)$'`
  if expr $link : '.*/.*'  /dev/null; then
PRG=$link
  else
PRG=`dirname $PRG`/$link
  fi
done

PRGDIR=`dirname $PRG`
EXECUTABLE=catalina.sh

# Check that target executable exists
if [ ! -x $PRGDIR/$EXECUTABLE ]; then
  echo Cannot find $PRGDIR/$EXECUTABLE
  echo This file is needed to run this program
  exit 1
fi

exec $PRGDIR/$EXECUTABLE start $@


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


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

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


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



RE: Tomcat Caching after uploading new files

2002-07-23 Thread Durham David Cntr 805CSS/SCBE

Executing .java files??

Do you have  reloadable=true  in the Context / element for the app?



-Original Message-
From: Steve [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 23, 2002 1:26 PM
To: [EMAIL PROTECTED]
Subject: Tomcat Caching after uploading new files


Hi Everyone,

I am desperately stuck with a problem and the
developers are ripping me apart for it :)

The issue is that Tomcat seems to keep a cache of all
the of the .java files which have been previously
executed in the c:\tomcat4\work\localhost\
directory. So everytime a change is made I have to
manually go into the directory and delete all the
files.

I know this probably doesn't seem like much a problem,
but we are still in the production stage of an
application, and the developers are getting annoyed at
having to delete it everytime they upload new code.

This problem started occuring recently.

Is it a configuration issue? If it is where can I
look?

Im currently running Tomcat 4.0.3
On Windows 2000

Thank you!!

__
Do You Yahoo!?
Yahoo! Health - Feel better, live better
http://health.yahoo.com

--
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]




RE: Tomcat Caching problem

2000-11-07 Thread Ian Guthrie

I just went through this today myself : )

This is on the FAQ on the Jakarta page. . . just remove the servlet
directory from your CLASSPATH

The CLASSPATH cannot contain servlets one wants to reload. . . Even if
reload is set it will ignore it if so. . . .

[ Ian Guthrie  ][  Director of RD ][  Ezenet Inc. ]
[ http://www.ezenet.com ][ mailto:[EMAIL PROTECTED] ]


 -Original Message-
 From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
 Sent: November 07, 2000 12:27 PM
 To: [EMAIL PROTECTED]
 Subject: Re: Tomcat Caching problem
 
 
 "Sunny L.S.Chan" wrote:
 
  Hi all, does anynoe encountered this problem, where by 
 tomcat 3.1 standalone
  kept displaying a cached copy of the servlet file instead 
 of loading the
  servlet everytime it is executed?
 
  Apparently it won't grab the form values in my doGet, and 
 also everytime I
  recompile the servlet,  on re-load it gives me the previous 
 copy at which I
  have to restart tomcat to get the latest copy.
 
  I have included all these stuff below in my servlet:
 
res.setHeader("Cache-Control","no-cache");
res.setHeader("Pragma","no-cache");
res.setDateHeader ("Expires", 0); //prevents caching at 
 the proxy server
 
  I suppose these settings tell the browser not to cache that 
 page, also in my
  server.xml file I have set the reloadable="true" in the context path
  setting, but apparently tomcat still caches the page
 
  Any help is appreciated :)
 
 
 It's not going to be much comfort to you, but ... Tomcat 3.1 
 caches *no* static
 pages on it's own.
 
 If you modify a servlet, you will need to ensure that Tomcat 
 is restarted before
 the changes will be visible.  This can be done by manually 
 shutting it down and
 restarting it, or by marking this webapp as "reloadable" in 
 the server.xml file.
 
 WARNING:  Even if you make your webapp reloadable, Tomcat can 
 only pick up
 changes to servlets that are in the WEB-INF/classes or 
 WEB-INF/lib directories
 of your webapp.  If the classes are on the CLASSPATH, your 
 only option is to
 manually restart.
 
 
  Thankx
 
 Craig McClanahan