xiaohan2012
xiaohan2012

Reputation: 10332

tomcat fail to update newly compiled java files

I am using tomcat 6 web server to do some jsp stuff.

If I made some changes to an associated java file and compile it, tomcat fail to reflect such changes.(if those changes are made to jsp file, it is ok)

However, if I restart the tomcat server, the changes are reflected and everything goes as I expect.

I doubt it is the server cache thing. How can I solve it?

Upvotes: 1

Views: 301

Answers (1)

trashgod
trashgod

Reputation: 205775

For convenience, you can use Tomcat's Manager to Reload An Existing Application.

Addendum: As @Paul comments, Executing Manager Commands With Ant provides a better long-term way to deal with this.

Upvotes: 3

Related Questions