Win a copy of AWS Security this week in the Cloud/Virtualization forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

change in class file not reflecting back until restarting server

 
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I m using resin server..
if i wrote a servlet and didn't compiled it it's automatically getting compiled and showing output correctly..
next time if i change the contents of servlet it's not showing new contents. i tried to compile it manually but still it's not
displaying the new output.
i m getting the new output only after restarting server..
but in specs we read that if there is change in class file
server should automatically replace the old class file with new one..
do this have any remedy..
i also tried setting resin.conf
i made two changes..
1.<cache-mapping url-pattern='/' expires='0s'/>
2.<class-update-interval>0</class-update-interval>
Still no effect..
Thanx in advance..
Bhupendra
 
Sheriff
Posts: 3341
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You are using the wrong tags to set this. From Resin 2.0.2 Documentation for Trouble shooting:
"Resin doesn't update changed servlets and JSP pages"
Resin has a delay for testing updated servlets and JSP pages.
The configuration variable for both is 'class-update-interval' in
resin.conf. It's an application-level variable. The default is 15
seconds. So Resin will only check every 15 seconds for an updated
page. You can set this value to 0 for development work.

<http-config class-update-interval='0'>
...
</http-config>

If you want Resin to check servlets for updates every hour, your
resin.conf might look like:

<http-config class-update-interval='3600'>
...
</http-config>

------------------
I Hope This Helps
Carl Trusiak, SCJP2, SCWCD
 
Mahajan Bhupendra
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi carl,
Thanx for reply
i also read the documnetation and found the same thing...
but surprisingly in resin.config there is no such element..
<http-config class-update-interval='X'>
...
</http-config>
Do i need to add it..
if yes where??
forgot to mension i am using resin-cmp 1.0
Bhupendra

[This message has been edited by Mahajan Bhupendra (edited November 07, 2001).]
 
We should throw him a surprise party. It will cheer him up. We can use this tiny ad:
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic