tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 50700] Context parameters are being overridden with parameters from the web application deployment descriptor
Date Tue, 08 Feb 2011 09:13:04 GMT

--- Comment #3 from 2011-02-08 04:12:56 EST ---
Sergey's explanation is good, but just in case any more detail is required in
how to reproduce it, here's the steps I take. Expand a tomcat distribution.
Edit the <tomcat_home>\webapps\root\WEB-INF\web.xml file to become

<web-app xmlns=""
  <display-name>Welcome to Tomcat</display-name>
     Welcome to Tomcat

then edit <tomcat_home>\conf\context.xml to become

    <Parameter name="initialDbPath" value="xyz" override="false"/>

then add a new file <tomcat_home>\webapps\ROOT\test.jsp which contains

<%@ page contentType="text/html; charset=UTF-8" %>
<br>initialDbPath is : ${initParam.initialDbPath}

The context.xml setting should override the web.xml setting, but this is not

Configure bugmail:
------- You are receiving this mail because: -------
You are the assignee for the bug.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message