-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Jean-François,

Jean-François Ménard wrote:
| Using Tomcat 6.0.13, I try to define some context parameters in my
| context file (in conf/Cataline/localhost/<app_name>.xml)

That should be conf/Catalina/localhost/<app_name>.xml

| as described in the documentation
| (http://tomcat.apache.org/tomcat-6.0-doc/config/context.html) but it
| simply doesn't work!  I can see the parameters defined in my web.xml,
| but not those defined in my context file.

http://tomcat.apache.org/tomcat-6.0-doc/config/context.html#Context+Parameters
indicates that <Parameter> in context.xml ought to be equivalent to
<context-param> in web.xml.

Have you defined the same parameter in both files? If so, you should
take care not to set override="false", or your web.xml version will not
be clobbered by the context.xml version.

| Shouldn't the parameter be visible by the servlet context? ex.
| context.getInitParameter("aParameterName")

Yes, it should. Could you provide a sample context.xml and servlet that
do not work together?

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkhzYP4ACgkQ9CaO5/Lv0PCqxgCfV9Alm+k6ccE9kfeEeaU5+K5R
7MkAnil85SMgKTkHNi8yFLYpHUOua9dF
=p/xO
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to