You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2003/01/23 20:37:20 UTC

DO NOT REPLY [Bug 16373] New: - context param from server.xml not read when application stopped and started from tomcat webmanager.

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16373>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16373

context param from server.xml not read when application stopped and started from tomcat webmanager.

           Summary: context param from server.xml not read when application
                    stopped and started from tomcat webmanager.
           Product: Tomcat 4
           Version: 4.1.12
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Webapps:Manager
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: kuchhal@yahoo.com


getServletContext().getInitParameter("helloworld") is getting the param value 
from web.xml when done like this
<context-param>
      <param-name>helloworld</param-name>
      <param-value>Hello World! How are you?</param-value>
</context-param>

but when given in server.xml as

<Context path="/test" docBase=".." debug="0"
                 crossContext="true" privileged="true" reloadable="true">
          <Parameter name="helloworld" value="Hello World! How are you" 
override="true"/>	
	</Context>
           it returns null when app is stopped and started again from Tomcat 
manager.

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>