-
Can't update Servlet in Tomcat (5 messages)
- Posted by: Parson Ho
- Posted on: February 07 2001 00:13 EST
Hi everybody,
I'm new in JSP,
My jsp file calls a servlet to connect to database,
I can load my jsp file in browser and return the my expected content.
But after I modified and complied my servlet again, my browser still return the same content to me.
Is it the servlet class is stored in server memory?
How to clear the memory automatically?
Thank in advance
Threaded Messages (5)
- Can't update Servlet in Tomcat by siva raman on February 07 2001 03:24 EST
- Can't update Servlet in Tomcat by Parson Ho on February 07 2001 03:30 EST
- Can't update Servlet in Tomcat by Christian Rauh on February 08 2001 09:58 EST
-
Can't update Servlet in Tomcat by Dmitry Shekhter on February 08 2001 01:27 EST
- Still the old java code executed after restart of tomcat by Oliver Fuchs on October 14 2010 07:29 EDT
- Can't update Servlet in Tomcat by Parson Ho on February 07 2001 03:30 EST
-
Can't update Servlet in Tomcat[ Go to top ]
- Posted by: siva raman
- Posted on: February 07 2001 03:24 EST
- in response to Parson Ho
The browsers will cache jsp files not servlet files. If you try reload,then jsp will be invoked again and you will get fresh output. If it is still not working then restart the server. -
Can't update Servlet in Tomcat[ Go to top ]
- Posted by: Parson Ho
- Posted on: February 07 2001 03:30 EST
- in response to siva raman
I cleared my browser cache and refreshed the page, also I set Tomcat 3.2 auto-reload in server.xml as follows:
<Context path="/examples"
docBase="webapps/examples"
crossContext="false"
debug="0"
reloadable="true" >
</Context>
However, the situation remain unchanged, the new compiled class is not being loaded. Does the tomcat auto-reload function reliable? Or any more i can config in tomcat?
Since I don't want to restart tomcat everytime I update my servlet.
-
Can't update Servlet in Tomcat[ Go to top ]
- Posted by: Christian Rauh
- Posted on: February 08 2001 09:58 EST
- in response to Parson Ho
Check if you are REALLY putting your new compiled classes on the right place. Then restart the server and clear the browser cache.
You should certainly have the new class running now.
Christian
-
Can't update Servlet in Tomcat[ Go to top ]
- Posted by: Dmitry Shekhter
- Posted on: February 08 2001 13:27 EST
- in response to Parson Ho
my experience with Tomcat has been that sometimes the automatic reloading doesn't work, and you have to restart the server manually, this happens once in a while.. if you restart manually and the proper version of the servlet still doesn't load, then you may be putting your servlet class files in the wrong dir -
Still the old java code executed after restart of tomcat[ Go to top ]
- Posted by: Oliver Fuchs
- Posted on: October 14 2010 07:29 EDT
- in response to Dmitry Shekhter
I have a servlet - more or less a hello world - running.
When I change just a text part - maybe hello world two - it will not appear!
Sometimes after restart of tomcat, sometimes after reboot of the whole linux mashine it works!
This can't be the right way! :-(
Any ideas how to force a real reload!? Even when I delete the class file, force a object not found, after recreating the class file, the old content will get displayed! :-((
Please help!
Cheers Oli