https://issues.apache.org/bugzilla/show_bug.cgi?id=51396

--- Comment #3 from bmargulies <bimargul...@gmail.com> 2011-06-20 19:36:14 UTC 
---
Since bz won't let me edit, I will improve on my description down here.

1) I've written a class that uses the embedded API:

  org.apache.catalina.startup.Tomcat

2) My class calls Tomcat.addWebapp.

3) My class works fine on a webapp that contains JSP pages.

4) My class does NOT work for webapps that have <servlet> declarations that
name jsp pages.

5) The reason, which I have diagnosed, is the lack of the following servlet
declaration from the default web.xml:

 <servlet>
        <servlet-name>jsp</servlet-name>
        <servlet-class>org.apache.jasper.servlet.JspServlet</servlet-class>
        <init-param>
            <param-name>fork</param-name>
            <param-value>false</param-value>
        </init-param>
        <init-param>
            <param-name>xpoweredBy</param-name>
            <param-value>false</param-value>
        </init-param>
        <load-on-startup>3</load-on-startup>
    </servlet>

6) Tomcat.addWebapp does extra work to prevent the use of the default web.xml.

7) I can't find any test case in the tomcat hierarchy that looks like this
overall model, and in particular which supplies default web.xml content when
using the embedded Tomcat class. Though I may of course be missing something.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to