• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
------------------
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 **
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic