Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

change in class file not reflecting back until restarting server

 
Mahajan Bhupendra
Ranch Hand
Posts: 118
  • 0
  • 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
 
Carl Trusiak
Sheriff
Posts: 3340
  • 0
  • 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
  • 0
  • 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).]
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic