Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

reloading servlet revisited??

 
Eli Daum
Greenhorn
Posts: 12
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have tried restarting tomcat I have set reloadable to true, I have restarted the PC and Tomcat will not pick up the changes I make to my servlet??? HELP!
 
Bruce Jin
Ranch Hand
Posts: 672
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you restarted Tomcat (OR PC!) you will run the updated class.
You can check the time stamp of your servlet class to make sure that you did updated your class. also add some println for debugging.
 
Jeroen Wenting
Ranch Hand
Posts: 5093
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you probably (make that certainly) either didn't compile the servlet at all (ignored compiler errors maybe?) or placed the compiled classfile in the wrong directory.
 
Vijayendra V Rao
Ranch Hand
Posts: 195
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You don't need to re-start your PC for this!

Check the timestamp of the class file as soon as you compile it. If its latest and still your changes are not reflecting, then it simply means that the actual class file that the server is reading and the latest one with the modifications are different.

Why don't you give random SOPs and check if they are printing out to the console? This is the best way to check if your changes are being read by the server.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic