Sunday, May 3, 2009

Enabling SSI in Apache Tomcat 6.0

I used the filter option for SSI in Tomcat 5.5. When I upgraded to Tomcat 6.0, I had to use the servlet option. When I used the filter option I received the error

SEVERE: Error filterStart

The web.xml file that I used had a comment about renaming a Jar file; however, it seems that the comment is left over from 5.5. There is no such Jar file in 6.0. The comment was also missing the instruction to uncomment the servlet mapping for the ssi servlet.

In summary, follow these steps to enable SSI in Tomcat 6.0

  1. Use the servlet, not the filter.
  2. Uncomment the servlet definition and servlet mapping for the ssi servlet in web.xml.
  3. Mark the context as privileged.

No comments:

Post a Comment

Followers