aspose file tools*
The moose likes Servlets and the fly likes Java Web Server doesn't load fresh servlet, but from cache Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Java Web Server doesn Watch "Java Web Server doesn New topic
Author

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

Nilesh Soni
Greenhorn

Joined: May 14, 2001
Posts: 21
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

Joined: Mar 22, 2000
Posts: 12806
    
    5
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

Joined: May 14, 2001
Posts: 21
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

Joined: May 14, 2001
Posts: 21
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

Joined: May 14, 2001
Posts: 22
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 **


** Science belongs to the world **
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Java Web Server doesn't load fresh servlet, but from cache