Tomcat won't recognize when I update (recompile) my classes, what do I do ?

There is an easy way to solve the problem of getting their JSP pages or servlets to recognize changes they make to their Java classes, and it doesn't require a JVM or Tomcat restart. To force the JSP pages to recognize your class changes, execute the following command on the unix shell (via SSH):

find ~ -name "*.jsp" -exec touch {} ;

In case you don't know what that does, it touches every JSP file in your directory structure. This will force Tomcat to think the JSP page has been modified and it will recompile the JSP page next time it is accessed. And, in the process of doing this, Tomcat will use any updated and recompiled classes when the JSP page is next accessed.

So what you can do is add this command as a line in your build.xml (if you use ANT), or your makefile (if you use make), or you can just run it at the command line after a compile of your java classes. This should solve the classes not reloading problem.

If you are having this problem with a Servlet, you will need to restart your Tomcat instance using the Tomcat Manager or we will need to restart the Tomcat server if you don't have access to the Tomcat Manager.

  • Email, SSL
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

What is the difference between shared SSL and private SSL?

A shared SSL displays as https://ip/~yourusername/. A private SSL would display as...

Why are my FrontPage extensions not working?

You must first make sure you have installed the extensions from going into your cpanel and...

Application Paths

Here are the applications paths. If you do not see what you are looking for, please email...

Custom error pages

To create a custom error page for your account you will need to upload a file with the...

How do I use SSL to setup my email?

Set your mail server to the host name for SMTP/POP3/IMAP (instead of and then make...