When I recompile and redeploy a Java class, and reload a JSP that uses that class, I sometimes get a "java.lang.ClassCastException" or a "java.lang.NoSuchMethod" error. Restart tomcat and the problem goes away. Is there a better solution?

Alex Chaffee

Sorry, you'll have to keep restarting Tomcat. This is an unfortunate consequence of Java not having a "unloadClass()" method. Since this will never happen on a live server (only a development box), it's not too big a deal.

0 Comments  (click to add your comment)
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

About | Sitemap | Contact