You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Mike Curwen <mi...@gb-im.com> on 2003/12/22 19:18:16 UTC
JSP not reloading
Hi everyone,
This has been covered before, I know. But there doesn't seem to be a
common agreement on what the problem (and therefore solution) is.
Our Tomcat 4.1.24 instance has spontaneously decided to no longer
recognize JSP changes! I say spontaneously, because we were running
fine, in production, a number of different sites. As it happens, a
couple of these sites are getting 'tweaked'.. and so there are a large
number of 'small changes' being made to the JSP pages. And as of
Thursday last week, here's what we're observing...
>From the 'ok' state, we can get away with making one change to a JSP
page. Then we click refresh in the browser, and see the change we made.
For every subsequent change to the JSP, the change is NOT reflected in
the browser. That page is now considered in the 'not ok' state. We go
for lunch, or come back the next day. If we make a change, it is
recognized. (So the page was back in the 'ok' state)... but like before
lunch, or yesterday, after that one change, it's back to the 'bad'
state.
This applies to JSPs invoked from the address bar, AND through a JSP
Include on the server-side. Even after 'touching' the parent JSP, the
'included' one still appears as the 'old' version.
The ugly hack: If my JSP is called foo.jsp, I edit foo.jsp for my
changes. Then in a command line window I type cp foo.jsp fooX.jsp
(where X is an ever increasing integer). And then I call fooX.jsp from
the browser.
To ugly fix: We must stop Tomcat, clear the work directory's folder for
that web app, and restart. Then we're back to every page in the 'ok'
state for just one change.
There have been *zero* configuration changes to any of httpd.conf,
workers.proprties and server.xml files in the timeframe of when it all
went south.
It's not the 4.1.27 reloading issue.
We're on the internal network, there is no proxy caching.
It's not browser caching.
It's not a server timestamp out of sync.
Here's one thing of interest: One of the contexts that is under
development has the reloadable=true in its Context entry. The other does
not. But that aside, BOTH of these web apps were reliably picking up
changes, up until last week. (Does reloadable have anything to do with
JSP's or just items under WEB-INF ?)
Slackware 9
Apache 2.0.45
Tomcat 4.1.24
JK (not sure of version)
Has anyone run into this behaviour?? Is there a FAQ or google page
covering this?
I know this little bug has been around in some form or another for quite
some time.
Here's one entry:
http://www.mail-archive.com/tomcat-user@jakarta.apache.org/msg99927.html
I'm thinking I'll have to try upgrading to 4.1.29.
-------------------------------------------
Mike Curwen 204-885-7733
Intermediate Programmer www.gb-im.com
-------------------------------------------
____ ____ ___ __ __
/ ___| | __ ) |_ _| | \/ |
| | _ | _ \ _____ | | | |\/| |
| |_| | | |_) | |_____| | | | | | |
\____| |____/ |___| |_| |_|
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
RE: JSP not reloading
Posted by Mike Curwen <mi...@gb-im.com>.
It is definitely NOT a client-side cache issue.
One a completely separate machine that has never loaded that page, I'll
get the 'old' output of the JSP. And regardless of this, this *did* work
up until last week, on one machine, using one browser (IE 6).
> -----Original Message-----
> From: MS [mailto:m.c.salomon@verizon.net]
> Sent: Tuesday, December 23, 2003 11:44 AM
> To: Tomcat Users List
> Subject: Re: JSP not reloading
>
>
> Which browser are you using? I've had some caching problems with IE.
>
> ----- Original Message -----
> From: "Mike Curwen" <mi...@gb-im.com>
> To: "'Tomcat Users List'" <to...@jakarta.apache.org>
> Sent: Tuesday, December 23, 2003 12:23 PM
> Subject: RE: JSP not reloading
>
>
> > Alright, I've tried upgrading to 4.1.29. The exact same
> behaviour is
> > occuring with this version as well!
> >
> > I'm kinda desperate here... developing under these conditions is
> > negative fun.
> >
> > Someone just give me a hint! Anything!! :)
> >
> >
> > > -----Original Message-----
> > > From: Mike Curwen [mailto:mikec@gb-im.com]
> > > Sent: Monday, December 22, 2003 12:18 PM
> > > To: tomcat-user@jakarta.apache.org
> > > Subject: JSP not reloading
> > >
> > >
> > > Hi everyone,
> > >
> > > This has been covered before, I know. But there doesn't seem
> > > to be a common agreement on what the problem (and therefore
> > > solution) is.
> > >
> > > Our Tomcat 4.1.24 instance has spontaneously decided to no
> > > longer recognize JSP changes! I say spontaneously, because we
> > > were running fine, in production, a number of different
> > > sites. As it happens, a couple of these sites are getting
> > > 'tweaked'.. and so there are a large number of 'small
> > > changes' being made to the JSP pages. And as of Thursday last
> > > week, here's what we're observing...
> > >
> > > >From the 'ok' state, we can get away with making one change to a
> > > >JSP
> > > page. Then we click refresh in the browser, and see the
> > > change we made. For every subsequent change to the JSP, the
> > > change is NOT reflected in the browser. That page is now
> > > considered in the 'not ok' state. We go for lunch, or come
> > > back the next day. If we make a change, it is recognized.
> > > (So the page was back in the 'ok' state)... but like before
> > > lunch, or yesterday, after that one change, it's back to the
> > > 'bad' state.
> > >
> > > This applies to JSPs invoked from the address bar, AND
> > > through a JSP Include on the server-side. Even after
> > > 'touching' the parent JSP, the 'included' one still appears
> > > as the 'old' version.
> > >
> > > The ugly hack: If my JSP is called foo.jsp, I edit foo.jsp
> > > for my changes. Then in a command line window I type cp
> > > foo.jsp fooX.jsp (where X is an ever increasing integer). And
> > > then I call fooX.jsp from the browser.
> > >
> > > To ugly fix: We must stop Tomcat, clear the work directory's
> > > folder for that web app, and restart. Then we're back to
> > > every page in the 'ok' state for just one change.
> > >
> > > There have been *zero* configuration changes to any of
> > > httpd.conf, workers.proprties and server.xml files in the
> > > timeframe of when it all went south.
> > >
> > > It's not the 4.1.27 reloading issue.
> > > We're on the internal network, there is no proxy caching.
> It's not
> > > browser caching. It's not a server timestamp out of sync.
> > >
> > > Here's one thing of interest: One of the contexts that is
> > > under development has the reloadable=true in its Context
> > > entry. The other does not. But that aside, BOTH of these web
> > > apps were reliably picking up changes, up until last week.
> > > (Does reloadable have anything to do with JSP's or just items
> > > under WEB-INF ?)
> > >
> > >
> > > Slackware 9
> > > Apache 2.0.45
> > > Tomcat 4.1.24
> > > JK (not sure of version)
> > >
> > >
> > > Has anyone run into this behaviour?? Is there a FAQ or
> > > google page covering this?
> > >
> > > I know this little bug has been around in some form or
> > > another for quite some time. Here's one entry:
> > > http://www.mail-archive.com/tomcat-user@jakarta.apache.org/msg
> > 99927.html
> >
> >
> > I'm thinking I'll have to try upgrading to 4.1.29.
> >
> >
> >
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: JSP not reloading
Posted by MS <m....@verizon.net>.
Which browser are you using? I've had some caching problems with IE.
----- Original Message -----
From: "Mike Curwen" <mi...@gb-im.com>
To: "'Tomcat Users List'" <to...@jakarta.apache.org>
Sent: Tuesday, December 23, 2003 12:23 PM
Subject: RE: JSP not reloading
> Alright, I've tried upgrading to 4.1.29. The exact same behaviour is
> occuring with this version as well!
>
> I'm kinda desperate here... developing under these conditions is
> negative fun.
>
> Someone just give me a hint! Anything!! :)
>
>
> > -----Original Message-----
> > From: Mike Curwen [mailto:mikec@gb-im.com]
> > Sent: Monday, December 22, 2003 12:18 PM
> > To: tomcat-user@jakarta.apache.org
> > Subject: JSP not reloading
> >
> >
> > Hi everyone,
> >
> > This has been covered before, I know. But there doesn't seem
> > to be a common agreement on what the problem (and therefore
> > solution) is.
> >
> > Our Tomcat 4.1.24 instance has spontaneously decided to no
> > longer recognize JSP changes! I say spontaneously, because we
> > were running fine, in production, a number of different
> > sites. As it happens, a couple of these sites are getting
> > 'tweaked'.. and so there are a large number of 'small
> > changes' being made to the JSP pages. And as of Thursday last
> > week, here's what we're observing...
> >
> > >From the 'ok' state, we can get away with making one change to a JSP
> > page. Then we click refresh in the browser, and see the
> > change we made. For every subsequent change to the JSP, the
> > change is NOT reflected in the browser. That page is now
> > considered in the 'not ok' state. We go for lunch, or come
> > back the next day. If we make a change, it is recognized.
> > (So the page was back in the 'ok' state)... but like before
> > lunch, or yesterday, after that one change, it's back to the
> > 'bad' state.
> >
> > This applies to JSPs invoked from the address bar, AND
> > through a JSP Include on the server-side. Even after
> > 'touching' the parent JSP, the 'included' one still appears
> > as the 'old' version.
> >
> > The ugly hack: If my JSP is called foo.jsp, I edit foo.jsp
> > for my changes. Then in a command line window I type cp
> > foo.jsp fooX.jsp (where X is an ever increasing integer). And
> > then I call fooX.jsp from the browser.
> >
> > To ugly fix: We must stop Tomcat, clear the work directory's
> > folder for that web app, and restart. Then we're back to
> > every page in the 'ok' state for just one change.
> >
> > There have been *zero* configuration changes to any of
> > httpd.conf, workers.proprties and server.xml files in the
> > timeframe of when it all went south.
> >
> > It's not the 4.1.27 reloading issue.
> > We're on the internal network, there is no proxy caching.
> > It's not browser caching.
> > It's not a server timestamp out of sync.
> >
> > Here's one thing of interest: One of the contexts that is
> > under development has the reloadable=true in its Context
> > entry. The other does not. But that aside, BOTH of these web
> > apps were reliably picking up changes, up until last week.
> > (Does reloadable have anything to do with JSP's or just items
> > under WEB-INF ?)
> >
> >
> > Slackware 9
> > Apache 2.0.45
> > Tomcat 4.1.24
> > JK (not sure of version)
> >
> >
> > Has anyone run into this behaviour?? Is there a FAQ or
> > google page covering this?
> >
> > I know this little bug has been around in some form or
> > another for quite some time. Here's one entry:
> > http://www.mail-archive.com/tomcat-user@jakarta.apache.org/msg
> 99927.html
>
>
> I'm thinking I'll have to try upgrading to 4.1.29.
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
RE: JSP not reloading
Posted by Mike Curwen <mi...@gb-im.com>.
Yes, to within a margin of error (in the seconds).
> -----Original Message-----
> From: Ben Souther [mailto:bsouther@fwdco.com]
> Sent: Tuesday, December 23, 2003 1:38 PM
> To: Tomcat Users List
> Subject: Re: JSP not reloading
>
>
> Is the date on the server right?
>
>
> On Tuesday 23 December 2003 02:29 pm, Mike Curwen wrote:
> > Our server is the one generating the class files (we only
> copy *.jsp
> > files), from a box that is aproximately one second behind
> the server.
> > So the generated class ought to be 'internally consistent'.
> >
> > Deleting class files (and generated source) from the work directory
> > seems to help the reloading, but I still don't understand
> why this is
> > suddenly a requirement.
> >
> >
> > FYI: I modified CATALINA_HOME/conf/web.xml and explicitly set
> > 'reloadable=true' and 'development=true' in the
> > org.apache.jasper.servlet.JSPServlet mapping. (no difference was
> > observed).
> >
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: JSP not reloading
Posted by Ben Souther <bs...@fwdco.com>.
Is the date on the server right?
On Tuesday 23 December 2003 02:29 pm, Mike Curwen wrote:
> Our server is the one generating the class files (we only copy *.jsp
> files), from a box that is aproximately one second behind the server. So
> the generated class ought to be 'internally consistent'.
>
> Deleting class files (and generated source) from the work directory
> seems to help the reloading, but I still don't understand why this is
> suddenly a requirement.
>
>
> FYI: I modified CATALINA_HOME/conf/web.xml and explicitly set
> 'reloadable=true' and 'development=true' in the
> org.apache.jasper.servlet.JSPServlet mapping. (no difference was
> observed).
>
> > -----Original Message-----
> > From: Ben Souther [mailto:bsouther@fwdco.com]
> > Sent: Tuesday, December 23, 2003 1:02 PM
> > To: Tomcat Users List
> > Subject: Re: JSP not reloading
> >
> >
> > One condition that can cause this is having class files with
> > a future date.
> > This can happen if the machine that you copied them from
> > didn't have it's
> > clock set properly.
> >
> > Since the date on the class files is higher than the JSP
> > file, jasper won't
> > recompile it.
> >
> > Zap all the class files in your work directory.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
--
Ben Souther
F.W. Davison & Company, Inc.
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
RE: JSP not reloading
Posted by Mike Curwen <mi...@gb-im.com>.
Our server is the one generating the class files (we only copy *.jsp
files), from a box that is aproximately one second behind the server. So
the generated class ought to be 'internally consistent'.
Deleting class files (and generated source) from the work directory
seems to help the reloading, but I still don't understand why this is
suddenly a requirement.
FYI: I modified CATALINA_HOME/conf/web.xml and explicitly set
'reloadable=true' and 'development=true' in the
org.apache.jasper.servlet.JSPServlet mapping. (no difference was
observed).
> -----Original Message-----
> From: Ben Souther [mailto:bsouther@fwdco.com]
> Sent: Tuesday, December 23, 2003 1:02 PM
> To: Tomcat Users List
> Subject: Re: JSP not reloading
>
>
> One condition that can cause this is having class files with
> a future date.
> This can happen if the machine that you copied them from
> didn't have it's
> clock set properly.
>
> Since the date on the class files is higher than the JSP
> file, jasper won't
> recompile it.
>
> Zap all the class files in your work directory.
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: JSP not reloading
Posted by Ben Souther <bs...@fwdco.com>.
One condition that can cause this is having class files with a future date.
This can happen if the machine that you copied them from didn't have it's
clock set properly.
Since the date on the class files is higher than the JSP file, jasper won't
recompile it.
Zap all the class files in your work directory.
On Tuesday 23 December 2003 12:23 pm, Mike Curwen wrote:
> Alright, I've tried upgrading to 4.1.29. The exact same behaviour is
> occuring with this version as well!
>
> I'm kinda desperate here... developing under these conditions is
> negative fun.
>
> Someone just give me a hint! Anything!! :)
>
> > -----Original Message-----
> > From: Mike Curwen [mailto:mikec@gb-im.com]
> > Sent: Monday, December 22, 2003 12:18 PM
> > To: tomcat-user@jakarta.apache.org
> > Subject: JSP not reloading
> >
> >
> > Hi everyone,
> >
> > This has been covered before, I know. But there doesn't seem
> > to be a common agreement on what the problem (and therefore
> > solution) is.
> >
> > Our Tomcat 4.1.24 instance has spontaneously decided to no
> > longer recognize JSP changes! I say spontaneously, because we
> > were running fine, in production, a number of different
> > sites. As it happens, a couple of these sites are getting
> > 'tweaked'.. and so there are a large number of 'small
> > changes' being made to the JSP pages. And as of Thursday last
> > week, here's what we're observing...
> >
> > >From the 'ok' state, we can get away with making one change to a JSP
> >
> > page. Then we click refresh in the browser, and see the
> > change we made. For every subsequent change to the JSP, the
> > change is NOT reflected in the browser. That page is now
> > considered in the 'not ok' state. We go for lunch, or come
> > back the next day. If we make a change, it is recognized.
> > (So the page was back in the 'ok' state)... but like before
> > lunch, or yesterday, after that one change, it's back to the
> > 'bad' state.
> >
> > This applies to JSPs invoked from the address bar, AND
> > through a JSP Include on the server-side. Even after
> > 'touching' the parent JSP, the 'included' one still appears
> > as the 'old' version.
> >
> > The ugly hack: If my JSP is called foo.jsp, I edit foo.jsp
> > for my changes. Then in a command line window I type cp
> > foo.jsp fooX.jsp (where X is an ever increasing integer). And
> > then I call fooX.jsp from the browser.
> >
> > To ugly fix: We must stop Tomcat, clear the work directory's
> > folder for that web app, and restart. Then we're back to
> > every page in the 'ok' state for just one change.
> >
> > There have been *zero* configuration changes to any of
> > httpd.conf, workers.proprties and server.xml files in the
> > timeframe of when it all went south.
> >
> > It's not the 4.1.27 reloading issue.
> > We're on the internal network, there is no proxy caching.
> > It's not browser caching.
> > It's not a server timestamp out of sync.
> >
> > Here's one thing of interest: One of the contexts that is
> > under development has the reloadable=true in its Context
> > entry. The other does not. But that aside, BOTH of these web
> > apps were reliably picking up changes, up until last week.
> > (Does reloadable have anything to do with JSP's or just items
> > under WEB-INF ?)
> >
> >
> > Slackware 9
> > Apache 2.0.45
> > Tomcat 4.1.24
> > JK (not sure of version)
> >
> >
> > Has anyone run into this behaviour?? Is there a FAQ or
> > google page covering this?
> >
> > I know this little bug has been around in some form or
> > another for quite some time. Here's one entry:
> > http://www.mail-archive.com/tomcat-user@jakarta.apache.org/msg
>
> 99927.html
>
>
> I'm thinking I'll have to try upgrading to 4.1.29.
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
--
Ben Souther
F.W. Davison & Company, Inc.
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: JSP not reloading
Posted by Ankur Shah <im...@comcast.net>.
Also, If you're still open to ideas, what happens when you do this with
your old/new server:
1. You make changes in a different (examples) context?
2. Do you get a 404 (File not found) error if you move foo.jsp to fooX.jsp?
Mike Curwen wrote:
>
>
>>-----Original Message-----
>>From: Ankur Shah [mailto:im2kul@comcast.net]
>>Sent: Tuesday, December 23, 2003 12:15 PM
>>To: Tomcat Users List
>>Subject: Re: JSP not reloading
>>
>>
>>A few things to try here:
>>1. What happens when you access your JSPs directly through
>>tomcat (port
>>8080?). Do you get the same result?
>>
>>
>
>same (bad) result
>
>
>
>>2. What happens when you do "$touch foo.jsp"? Does your server pick up
>>the changes, then?
>>
>>
>
>no
>
>
>
>>3. Did you try upgrading to 5.0.16? *duck*
>>
>>
>
>no, we're not wanting to use 5.0 until (probably) 5.1. There's nothing
>we need from the new servlet spec.
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: JSP not reloading
Posted by Ankur Shah <im...@comcast.net>.
Mike Curwen wrote:
>>3. Did you try upgrading to 5.0.16? *duck*
>>
>>
>
>no, we're not wanting to use 5.0 until (probably) 5.1. There's nothing
>we need from the new servlet spec.
>
>
>
I didn't mean for you to switch over to 5.x for good (If you didn't want
to, that is). I just wanted to see if you experienced the same problems
with 5.x, and if you did, then I'd bet the problem is with the settings
on your box and not directly related to Tomcat.You won't have to set
up the new server entirely, just unpack, start it with the default
configuration, and test it out with a simple JSP in the examples context.
-- Ankur
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
RE: JSP not reloading
Posted by Mike Curwen <mi...@gb-im.com>.
Actually , though the site is db-driven, the changes I'm making are as
simple as
change:
<table width="400">
to:
<table width="500">
This is the type of change that is not being reflected.
(and yes, I'm triple-sure that this is not a client-side cache issue)
> -----Original Message-----
> From: Justin Ruthenbeck [mailto:justinr@nextengine.com]
> Sent: Tuesday, December 23, 2003 1:57 PM
> To: Tomcat Users List
> Subject: RE: JSP not reloading
>
>
>
> Are you sure nothing changed on the DB side? Some seemingly inocuous
> performance tweak? Do you have some odd rouge connection
> holding a lock
> on the table(s) you're trying to update and your app is
> failing to report
> the problem? Stuff like this is almost always something "small" and
> almost always user error. Heaven knows I've made my share. ;)
>
> To isolate the problem, are you absolutely sure nothing is getting
> between your code and the conn pool? Have you tried a very simple
> version of an update (say a jsp that gets a connection, does
> a select,
> increments the selected number, and updates) to isolate the
> problem to
> Tomcat/DBPool? Have you tried hitting the same database from
> a different
> Tomcat app to see if you can update()?
>
> I know you want an explanation of what's going on -- sorry,
> can't help
> you there. I'd put money down that you'll find out it's
> something simple
> though.
>
> All I can offer is encouragment and ideas. :)
> justin
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
RE: JSP not reloading
Posted by Justin Ruthenbeck <ju...@nextengine.com>.
Are you sure nothing changed on the DB side? Some seemingly inocuous
performance tweak? Do you have some odd rouge connection holding a lock
on the table(s) you're trying to update and your app is failing to report
the problem? Stuff like this is almost always something "small" and
almost always user error. Heaven knows I've made my share. ;)
To isolate the problem, are you absolutely sure nothing is getting
between your code and the conn pool? Have you tried a very simple
version of an update (say a jsp that gets a connection, does a select,
increments the selected number, and updates) to isolate the problem to
Tomcat/DBPool? Have you tried hitting the same database from a different
Tomcat app to see if you can update()?
I know you want an explanation of what's going on -- sorry, can't help
you there. I'd put money down that you'll find out it's something simple
though.
All I can offer is encouragment and ideas. :)
justin
At 11:43 AM 12/23/2003, you wrote:
>Part of it's comfort as well. I *know* 4.1.x quite well. I've been
>using it for a while now, and been very satisified with it. And just
>because 5.x becomes the new 'production standard', doesn't automagically
>make all 4.1.x installs somehow break in odd and mysterious ways.
>
>If someone could *confirm* this is a 'known issue affecting 1.1% of
>installs' or some such... then for sure, I can try the move to 5.x
>today.
>
>What is most frustrating is that this was working last week, and ZERO
>changes have been made to config files. I don't think our box has even
>been rebooted in more than a month. The last config file change (aside
>from my mod to conf/web.xml today) was to server.xml on Dec 15, to
>remove some dead Contexts. It ran for several days after that, just
>fine, recognizing changes as I was developing all last week.
>
>I've even rolled that change back, and no dice.
>
>
> > -----Original Message-----
> > From: Remy Maucherat [mailto:remm@jboss.org]
> > Sent: Tuesday, December 23, 2003 1:31 PM
> > To: Tomcat Users List
> > Subject: Re: JSP not reloading
> >
> >
> > Mike Curwen wrote:
> > >>3. Did you try upgrading to 5.0.16? *duck*
> > >
> > > no, we're not wanting to use 5.0 until (probably) 5.1. There's
> > > nothing we need from the new servlet spec.
> >
> > You're free to do what you want, of course, but I'd like to point out
> > 5.0 should have been named 4.2. The major revision number
> > switch is only
> > because the specs were upgraded.
> >
> > If you were following tomcat-dev, you would have seen that there has
> > been no intention to start a 5.1 branch so far, unlike what
> > has occurred
> > in the past (4.1 was branched from 4.0.0 Final, and 5.0 was branched
> > from 4.1.7 Beta). So there may not be any major new release
> > until Tomcat
> > 6.0. We'll see :)
> > The future of the 4.1.x branch depends on the stability of the more
> > refined 5.0 branch, and from the reports from 5.0.16 testing,
> > it looks
> > like it may not live very long.
> >
> > --
> > xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> > Rémy Maucherat
> > Senior Developer & Consultant
> > JBoss Group (Europe) SàRL
> > xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> >
> >
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
______________________________________________
Justin Ruthenbeck
Software Engineer, NextEngine Inc.
justinr - AT - nextengine DOT com
Confidential. See:
http://www.nextengine.com/confidentiality.php
______________________________________________
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
RE: JSP not reloading
Posted by Mike Curwen <mi...@gb-im.com>.
Part of it's comfort as well. I *know* 4.1.x quite well. I've been
using it for a while now, and been very satisified with it. And just
because 5.x becomes the new 'production standard', doesn't automagically
make all 4.1.x installs somehow break in odd and mysterious ways.
If someone could *confirm* this is a 'known issue affecting 1.1% of
installs' or some such... then for sure, I can try the move to 5.x
today.
What is most frustrating is that this was working last week, and ZERO
changes have been made to config files. I don't think our box has even
been rebooted in more than a month. The last config file change (aside
from my mod to conf/web.xml today) was to server.xml on Dec 15, to
remove some dead Contexts. It ran for several days after that, just
fine, recognizing changes as I was developing all last week.
I've even rolled that change back, and no dice.
> -----Original Message-----
> From: Remy Maucherat [mailto:remm@jboss.org]
> Sent: Tuesday, December 23, 2003 1:31 PM
> To: Tomcat Users List
> Subject: Re: JSP not reloading
>
>
> Mike Curwen wrote:
> >>3. Did you try upgrading to 5.0.16? *duck*
> >
> > no, we're not wanting to use 5.0 until (probably) 5.1. There's
> > nothing we need from the new servlet spec.
>
> You're free to do what you want, of course, but I'd like to point out
> 5.0 should have been named 4.2. The major revision number
> switch is only
> because the specs were upgraded.
>
> If you were following tomcat-dev, you would have seen that there has
> been no intention to start a 5.1 branch so far, unlike what
> has occurred
> in the past (4.1 was branched from 4.0.0 Final, and 5.0 was branched
> from 4.1.7 Beta). So there may not be any major new release
> until Tomcat
> 6.0. We'll see :)
> The future of the 4.1.x branch depends on the stability of the more
> refined 5.0 branch, and from the reports from 5.0.16 testing,
> it looks
> like it may not live very long.
>
> --
> xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> Rémy Maucherat
> Senior Developer & Consultant
> JBoss Group (Europe) SàRL
> xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: JSP not reloading
Posted by Remy Maucherat <re...@jboss.org>.
Mike Curwen wrote:
>>3. Did you try upgrading to 5.0.16? *duck*
>
> no, we're not wanting to use 5.0 until (probably) 5.1. There's nothing
> we need from the new servlet spec.
You're free to do what you want, of course, but I'd like to point out
5.0 should have been named 4.2. The major revision number switch is only
because the specs were upgraded.
If you were following tomcat-dev, you would have seen that there has
been no intention to start a 5.1 branch so far, unlike what has occurred
in the past (4.1 was branched from 4.0.0 Final, and 5.0 was branched
from 4.1.7 Beta). So there may not be any major new release until Tomcat
6.0. We'll see :)
The future of the 4.1.x branch depends on the stability of the more
refined 5.0 branch, and from the reports from 5.0.16 testing, it looks
like it may not live very long.
--
xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Rémy Maucherat
Senior Developer & Consultant
JBoss Group (Europe) SàRL
xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
RE: JSP not reloading
Posted by Mike Curwen <mi...@gb-im.com>.
> -----Original Message-----
> From: Ankur Shah [mailto:im2kul@comcast.net]
> Sent: Tuesday, December 23, 2003 12:15 PM
> To: Tomcat Users List
> Subject: Re: JSP not reloading
>
>
> A few things to try here:
> 1. What happens when you access your JSPs directly through
> tomcat (port
> 8080?). Do you get the same result?
same (bad) result
> 2. What happens when you do "$touch foo.jsp"? Does your server pick up
> the changes, then?
no
> 3. Did you try upgrading to 5.0.16? *duck*
no, we're not wanting to use 5.0 until (probably) 5.1. There's nothing
we need from the new servlet spec.
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: JSP not reloading
Posted by Ankur Shah <im...@comcast.net>.
A few things to try here:
1. What happens when you access your JSPs directly through tomcat (port
8080?). Do you get the same result?
2. What happens when you do "$touch foo.jsp"? Does your server pick up
the changes, then?
3. Did you try upgrading to 5.0.16? *duck*
Mike Curwen wrote:
>Alright, I've tried upgrading to 4.1.29. The exact same behaviour is
>occuring with this version as well!
>
>I'm kinda desperate here... developing under these conditions is
>negative fun.
>
>Someone just give me a hint! Anything!! :)
>
>
>
>
>>-----Original Message-----
>>From: Mike Curwen [mailto:mikec@gb-im.com]
>>Sent: Monday, December 22, 2003 12:18 PM
>>To: tomcat-user@jakarta.apache.org
>>Subject: JSP not reloading
>>
>>
>>Hi everyone,
>>
>>This has been covered before, I know. But there doesn't seem
>>to be a common agreement on what the problem (and therefore
>>solution) is.
>>
>>Our Tomcat 4.1.24 instance has spontaneously decided to no
>>longer recognize JSP changes! I say spontaneously, because we
>>were running fine, in production, a number of different
>>sites. As it happens, a couple of these sites are getting
>>'tweaked'.. and so there are a large number of 'small
>>changes' being made to the JSP pages. And as of Thursday last
>>week, here's what we're observing...
>>
>>>>From the 'ok' state, we can get away with making one change to a JSP
>>page. Then we click refresh in the browser, and see the
>>change we made. For every subsequent change to the JSP, the
>>change is NOT reflected in the browser. That page is now
>>considered in the 'not ok' state. We go for lunch, or come
>>back the next day. If we make a change, it is recognized.
>>(So the page was back in the 'ok' state)... but like before
>>lunch, or yesterday, after that one change, it's back to the
>>'bad' state.
>>
>>This applies to JSPs invoked from the address bar, AND
>>through a JSP Include on the server-side. Even after
>>'touching' the parent JSP, the 'included' one still appears
>>as the 'old' version.
>>
>>The ugly hack: If my JSP is called foo.jsp, I edit foo.jsp
>>for my changes. Then in a command line window I type cp
>>foo.jsp fooX.jsp (where X is an ever increasing integer). And
>>then I call fooX.jsp from the browser.
>>
>>To ugly fix: We must stop Tomcat, clear the work directory's
>>folder for that web app, and restart. Then we're back to
>>every page in the 'ok' state for just one change.
>>
>>There have been *zero* configuration changes to any of
>>httpd.conf, workers.proprties and server.xml files in the
>>timeframe of when it all went south.
>>
>>It's not the 4.1.27 reloading issue.
>>We're on the internal network, there is no proxy caching.
>>It's not browser caching.
>>It's not a server timestamp out of sync.
>>
>>Here's one thing of interest: One of the contexts that is
>>under development has the reloadable=true in its Context
>>entry. The other does not. But that aside, BOTH of these web
>>apps were reliably picking up changes, up until last week.
>>(Does reloadable have anything to do with JSP's or just items
>>under WEB-INF ?)
>>
>>
>>Slackware 9
>>Apache 2.0.45
>>Tomcat 4.1.24
>>JK (not sure of version)
>>
>>
>>Has anyone run into this behaviour?? Is there a FAQ or
>>google page covering this?
>>
>>I know this little bug has been around in some form or
>>another for quite some time. Here's one entry:
>>http://www.mail-archive.com/tomcat-user@jakarta.apache.org/msg
>>
>>
>99927.html
>
>
>I'm thinking I'll have to try upgrading to 4.1.29.
>
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
RE: JSP not reloading
Posted by Mike Curwen <mi...@gb-im.com>.
Alright, I've tried upgrading to 4.1.29. The exact same behaviour is
occuring with this version as well!
I'm kinda desperate here... developing under these conditions is
negative fun.
Someone just give me a hint! Anything!! :)
> -----Original Message-----
> From: Mike Curwen [mailto:mikec@gb-im.com]
> Sent: Monday, December 22, 2003 12:18 PM
> To: tomcat-user@jakarta.apache.org
> Subject: JSP not reloading
>
>
> Hi everyone,
>
> This has been covered before, I know. But there doesn't seem
> to be a common agreement on what the problem (and therefore
> solution) is.
>
> Our Tomcat 4.1.24 instance has spontaneously decided to no
> longer recognize JSP changes! I say spontaneously, because we
> were running fine, in production, a number of different
> sites. As it happens, a couple of these sites are getting
> 'tweaked'.. and so there are a large number of 'small
> changes' being made to the JSP pages. And as of Thursday last
> week, here's what we're observing...
>
> >From the 'ok' state, we can get away with making one change to a JSP
> page. Then we click refresh in the browser, and see the
> change we made. For every subsequent change to the JSP, the
> change is NOT reflected in the browser. That page is now
> considered in the 'not ok' state. We go for lunch, or come
> back the next day. If we make a change, it is recognized.
> (So the page was back in the 'ok' state)... but like before
> lunch, or yesterday, after that one change, it's back to the
> 'bad' state.
>
> This applies to JSPs invoked from the address bar, AND
> through a JSP Include on the server-side. Even after
> 'touching' the parent JSP, the 'included' one still appears
> as the 'old' version.
>
> The ugly hack: If my JSP is called foo.jsp, I edit foo.jsp
> for my changes. Then in a command line window I type cp
> foo.jsp fooX.jsp (where X is an ever increasing integer). And
> then I call fooX.jsp from the browser.
>
> To ugly fix: We must stop Tomcat, clear the work directory's
> folder for that web app, and restart. Then we're back to
> every page in the 'ok' state for just one change.
>
> There have been *zero* configuration changes to any of
> httpd.conf, workers.proprties and server.xml files in the
> timeframe of when it all went south.
>
> It's not the 4.1.27 reloading issue.
> We're on the internal network, there is no proxy caching.
> It's not browser caching.
> It's not a server timestamp out of sync.
>
> Here's one thing of interest: One of the contexts that is
> under development has the reloadable=true in its Context
> entry. The other does not. But that aside, BOTH of these web
> apps were reliably picking up changes, up until last week.
> (Does reloadable have anything to do with JSP's or just items
> under WEB-INF ?)
>
>
> Slackware 9
> Apache 2.0.45
> Tomcat 4.1.24
> JK (not sure of version)
>
>
> Has anyone run into this behaviour?? Is there a FAQ or
> google page covering this?
>
> I know this little bug has been around in some form or
> another for quite some time. Here's one entry:
> http://www.mail-archive.com/tomcat-user@jakarta.apache.org/msg
99927.html
I'm thinking I'll have to try upgrading to 4.1.29.
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: JSP not reloading
Posted by Riaan Oberholzer <ri...@yahoo.com>.
Why not move to the more "traditional" way and deploy
your application as a .war and not as an expanded
directory with classes and jsp's in it.
In your ant build script (assuming you are using ant),
you can build your .war which also includes
precompiling your JSP's with jasper.
Then use the tomcat ant tasks to just reload the
application. You'll be sure that the latest compiled
version of the jsp is running. Also, that delay when
you first access a jsp (waiting for it to be compiled
on the fly) will be gone.
If it is absolutely required than the application must
ALWAYS be available, then this is probably not an
option, but the reload takes a few seconds.
--- Mike Curwen <mi...@gb-im.com> wrote:
> Hi everyone,
>
> This has been covered before, I know. But there
> doesn't seem to be a
> common agreement on what the problem (and therefore
> solution) is.
>
> Our Tomcat 4.1.24 instance has spontaneously decided
> to no longer
> recognize JSP changes! I say spontaneously, because
> we were running
> fine, in production, a number of different sites.
> As it happens, a
> couple of these sites are getting 'tweaked'.. and so
> there are a large
> number of 'small changes' being made to the JSP
> pages. And as of
> Thursday last week, here's what we're observing...
>
> From the 'ok' state, we can get away with making one
> change to a JSP
> page. Then we click refresh in the browser, and see
> the change we made.
> For every subsequent change to the JSP, the change
> is NOT reflected in
> the browser. That page is now considered in the
> 'not ok' state. We go
> for lunch, or come back the next day. If we make a
> change, it is
> recognized. (So the page was back in the 'ok'
> state)... but like before
> lunch, or yesterday, after that one change, it's
> back to the 'bad'
> state.
>
> This applies to JSPs invoked from the address bar,
> AND through a JSP
> Include on the server-side. Even after 'touching'
> the parent JSP, the
> 'included' one still appears as the 'old' version.
>
> The ugly hack: If my JSP is called foo.jsp, I edit
> foo.jsp for my
> changes. Then in a command line window I type cp
> foo.jsp fooX.jsp
> (where X is an ever increasing integer). And then I
> call fooX.jsp from
> the browser.
>
> To ugly fix: We must stop Tomcat, clear the work
> directory's folder for
> that web app, and restart. Then we're back to every
> page in the 'ok'
> state for just one change.
>
> There have been *zero* configuration changes to any
> of httpd.conf,
> workers.proprties and server.xml files in the
> timeframe of when it all
> went south.
>
> It's not the 4.1.27 reloading issue.
> We're on the internal network, there is no proxy
> caching.
> It's not browser caching.
> It's not a server timestamp out of sync.
>
> Here's one thing of interest: One of the contexts
> that is under
> development has the reloadable=true in its Context
> entry. The other does
> not. But that aside, BOTH of these web apps were
> reliably picking up
> changes, up until last week. (Does reloadable have
> anything to do with
> JSP's or just items under WEB-INF ?)
>
>
> Slackware 9
> Apache 2.0.45
> Tomcat 4.1.24
> JK (not sure of version)
>
>
> Has anyone run into this behaviour?? Is there a FAQ
> or google page
> covering this?
>
> I know this little bug has been around in some form
> or another for quite
> some time.
> Here's one entry:
>
http://www.mail-archive.com/tomcat-user@jakarta.apache.org/msg99927.html
>
>
> I'm thinking I'll have to try upgrading to 4.1.29.
>
> -------------------------------------------
> Mike Curwen 204-885-7733
> Intermediate Programmer www.gb-im.com
> -------------------------------------------
> ____ ____ ___ __ __
> / ___| | __ ) |_ _| | \/ |
> | | _ | _ \ _____ | | | |\/| |
> | |_| | | |_) | |_____| | | | | | |
> \____| |____/ |___| |_| |_|
>
>
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
> tomcat-user-help@jakarta.apache.org
>
__________________________________
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing.
http://photos.yahoo.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org