I am developing a Spring MVC and Hibernate application and deploying it on
Tomcat 5.5 running on a Windows XP machine. I am having several problems which I can't make any sense of (I've searched for hours for clues/answers), so I'm hoping someone here can shed some light.
1) I am building and deploying the WAR for this application using
Ant, which is being run from Eclipse. When the WAR is deployed to $TOMCAT_HOME/webapps it fails to explode properly, and all that is left in my application's directory after redeploy is WEB-INF/lib/ehcache-1.1.jar. However if I stop Tomcat, remove the application directory (but not the WAR), and then restart Tomcat then the WAR is properly exploded and all files and libraries are where they should be.
2) I have a
JSP page which is used as a view returned by a Spring MVC Controller. The page originally just displayed some text, but now uses JSTL tags to iterate over the model returned by the Controller. When I enter the URI which maps to the Controller I get one of two responses, apparently randomly. The most common is that the current JSP is processed, and Tomcat croaks with an error message telling me that the JSTL URI can't be resolved. At other times I get the previous version of the JSP, which just displays a dummy
string. This old version of the JSP is no longer present in the WAR or anywhere under the the $TOMCAT_HOME/webapps directory, so I can only assume that it is coming somehow from my browser's cache, even though I have repeatedly cleared the cache. The above happens when using both IE and Firefox. So this is actually two problems in one -- not being able to resolve the JSTL URI and sporadically displaying an out-of-date and nonexistent JSP.
Does any of the above point to a configuration issue in Tomcat? I have made no configuration changes at all since installing the fresh installation of Tomcat 5.5.
Thanks in advance for any suggestinos or insight!
--James