> -----Original Message-----
> From: Keith Hankin [mailto:[EMAIL PROTECTED] 
> I am trying to specify init context parameters in the default 
> context in server.xml as follows:
>   <Context path="" docBase="ROOT" debug="0">
>       <Parameter name="configDir" value="C:\config" override="false"/>
>   </Context>

This is the ROOT context, not the default context. Hence your parameter will
only be available in the root context.

> This prints out: "configDir = null" rather than "configDir = 
> C:\config" as I would expect.
> 
> It only works if I specify the parameter in a more specific 
> context as follows:
>   <Context path="/mycontext" docBase="/mycontext" debug="0">
>       <Parameter name="configDir" value="C:\config" override="false"/>
>   </Context>
> I have tried this with Tomcat 4.1.30 and 5.0.19 with the same results.

Mark





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to