• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Java Web Server doesn't load fresh servlet, but from cache

 
Nilesh Soni
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am writing servlets and in the process i need to compile the servlet(.java) file many times as we get many errors. the problem is that the java web server doesnot take the fresh .class file but instead use the older .class file from cache.
In detail, suppose i started java web server, i ran a servlet, it works fine, then i make some changes in servlet(.java) file, compiles it, but server don't show changes version of servlet. if i restart the server it takes fresh copy. how to deal with this as it cosumes hell lot of time of mine and writing servlet becomes headach for me.
please help me out.
------------------
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13064
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you are using the old Java Web Server, you should probably update to the Tomcat server. It does provide for reloading servlets on changes and is also pretty quick to restart. The JRun server also does this well.
There is no servlet engine that will detect changes in support files so you will have to restart frequently during development anyway.
Bill
 
Nilesh Soni
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you william,
will you please tell me where i will get tomcat server (version no ?) to download, for windows 98. i have been told that tomcat server will run on nt server only and not on win 98. is it true?
nilesh
[This message has been edited by Nilesh Soni (edited May 22, 2001).]
 
Nilesh Soni
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I found the solution. actually i had set javawebserver's servlets folder in the class path, that's why it was not taking fresh copy. as soon as i remove it from classpath it started taking fresh copy.
 
Sophia Oscario
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I used Tomcat on Win 98 ...
For several weeks everything is going fine ...
But then problems started ...
The Tomcat server crashed everytime I accessed a JSP page.
I try to uninstall it then reinstalled it
But it's still the same.
In my other computer (Win NT), Tomcat works smoothly.
So I think I can take the conclusion : do not use Tomcat under Win 98 (based on my experience)

------------------
** Science belongs to the world **
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic