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

Lee Clemens <j...@leeclemens.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEEDINFO                    |NEW

--- Comment #2 from Lee Clemens <j...@leeclemens.net> 2009-12-24 09:29:06 UTC 
---
In the webapp's web.xml, have display-name and then description.  Before the
listener, include the snippet below(commented out).

Run an ANT script to precompile JSPs:

<import file="${tomcat.home}/bin/catalina-tasks.xml"/>
<jasper validateXml="false"
                uriroot="${work.core}"
                webXmlFragment="${jsp.generated.web.xml}"
                addWebXmlMappings="true"
                outputDir="${work.src}"/>

The resulting web.xml ${jsp.generated.web.xml} is malformed.

Here is the snippet from the web.xml before instructing jasper to
addWebXmlMappings.

  <!--
    <security-constraint>
        <web-resource-collection>
            <web-resource-name>Entire Application</web-resource-name>
            <url-pattern>/*</url-pattern>
        </web-resource-collection>
        <user-data-constraint>
            <transport-guarantee>CONFIDENTIAL</transport-guarantee>
        </user-data-constraint>
    </security-constraint>
    -->

    <!--<security-constraint>
        <web-resource-collection>
            <web-resource-name>Deny Direct Access</web-resource-name>
            <description>Deny direct access to JSPs. All such requests should
be
                handled by the Container in the protection domain
            </description>
            <url-pattern>*.jsp</url-pattern>
        </web-resource-collection>
        <auth-constraint>
            <role-name>NoOneCanAccess</role-name>
        </auth-constraint>
    </security-constraint>
    <security-role>
        <role-name>NoOneCanAccess</role-name>
    </security-role>-->


    <!-- modify in web.xml in tomcat/conf/
   <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>
       <init-param>
           <param-name>compilerSourceVM</param-name>
           <param-value>1.5</param-value>
       </init-param>
       <init-param>
           <param-name>compilerTargetVM</param-name>
           <param-value>1.5</param-value>
       </init-param>
       <load-on-startup>3</load-on-startup>
   </servlet> -->

-- 
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