This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes change in class file not reflecting back until restarting server Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "change in class file not reflecting back until restarting server" Watch "change in class file not reflecting back until restarting server" New topic
Author

change in class file not reflecting back until restarting server

Mahajan Bhupendra
Ranch Hand

Joined: Dec 01, 2000
Posts: 118
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

<B>Bhupendra Mahajan</B>
Carl Trusiak
Sheriff

Joined: Jun 13, 2000
Posts: 3340
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


I Hope This Helps
Carl Trusiak, SCJP2, SCWCD
Mahajan Bhupendra
Ranch Hand

Joined: Dec 01, 2000
Posts: 118
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
 
subject: change in class file not reflecting back until restarting server
 
Similar Threads
newbie to Tomcat ??
Bufferring
question about servlet-mapping and auto redirecting URL
How to link Apache And Resin
How to create file on webserver