• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Java files in WEB-INF: update problems

 
Claudia Fontan
Greenhorn
Posts: 4
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everyone,

I'd like to know how Java classes in WEB-INF/classes are used by Tomcat: I changed a file and loaded remotely, but although I changed both .java and .class I see no changes. I even deleted the .class and it continued with the same behaviour, so how can I update the file??

Thanks to everyone in advance
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
They get loaded the first time they are used. You will need to restart Tomcat or reload your application via the Tomcat Manager app to have your new classes picked up.

You can also configure Tomcat to check for new versions and pick them up automatically. This generally isn't done on production machines though. There is a performance hit involved.
Look at the "reloadable" attribute:
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/context.html
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic