Tuesday, 10 February 2009

Unresponsive Tomcat

Spring MVC webapp setup in Tomcat, but no requests are getting through to it.

  • Check in %CATALINA_HOME%/conf/Catalina/localhost
  • If there are any problems with the context file, then requests may silently fail.
  • Context file should be named context#path.xml (subpaths separated by #), and no path attribute should be present in the Context element.
  • http://tomcat.apache.org/tomcat-6.0-doc/config/context.html

e.g.

apps#mywebapp.xml


<Context docBase="C:\Data\ebdcportal\target\ebdcportal" reloadable="false">
<!-- See http://tomcat.apache.org/tomcat-6.0-doc/config/manager.html
pathname="" ensures that sessions are not saved/reloaded after
startup --
>
<Manager className="org.apache.catalina.session.StandardManager"
distributable="false"
pathname="" /
>
</Context>