Hi Jake,

Thanks for getting back so quick. So the context file in META-INF should be
context.xml and not myapp.xml?

That is maybe where I have been going wrong, I read some previous posts on
this from Craig and I thought he said you name the context file with the
name of your app and a .xml extension. 

I'll try what you say.

Thanks

Jim.

> -----Original Message-----
> From: Jacob Kjome [mailto:[EMAIL PROTECTED]
> Sent: 21 March 2003 16:35
> To: Tomcat Users List
> Subject: Re: What to set docBase attribute to in an individual
> Context.xml fil e
> 
> 
> 
> First, the name of the context configuration file put into 
> META-INF should 
> be, very specifically, "context.xml".  The docBase needs to 
> be name of your 
> .war file.  So, if you your .war file is "MyWarFile.war", 
> then it should be 
> docBase="MyWarFile.war".
> 
> Jake
> 
> At 02:49 PM 3/21/2003 +0000, you wrote:
> >Hi,
> >
> >I am deploying my application using manager/deploy. In the META-INF
> >directory I have myapp.xml file. If I am deploying the app 
> using manager
> >does anyone know what I should set the docBase attribute to? 
> I am also
> >having problems reading an Environment property from the 
> context file.
> >
> >Here is my context file:
> >
> ><Context classname="org.apache.catalina.core.StandardContext"
> >         path="/myapp" debug="0" privileged="true">
> >
> >   <Environment name="Test" type="java.lang.String"
> >                 value="Test value"/>
> ></Context>
> >
> >In my code I try to do this:
> >
> >         _ic = new InitialContext();
> >         log.debug("Test look up = " +
> >(String)_ic.lookup("java:comp/env/Test"));
> >
> >But I get an error saying  "Name Test is not bound in this Context"
> >
> >If however I have this entry in the web.xml file it works:
> >
> >         <env-entry>
> >                 <description>
> >                         Test
> >                 </description>
> >                 <env-entry-name>Test</env-entry-name>
> >                         <env-entry-value>This is a 
> test</env-entry-value>
> >                 <env-entry-type>java.lang.String</env-entry-type>
> >         </env-entry>
> >
> >If anyone could shed any light on this it would be appreciated.
> >
> >Thanks
> >
> >Jim.
> >
> >
> >PLEASE READ: The information contained in this email is confidential
> >and intended for the named recipient(s) only. If you are not 
> an intended
> >recipient of this email you must not copy, distribute or take any
> >further action in reliance on it and you should delete it 
> and notify the
> >sender immediately. Email is not a secure method of communication and
> >Nomura International plc cannot accept responsibility for 
> the accuracy
> >or completeness of this message or any attachment(s). Please 
> examine this
> >email for virus infection, for which Nomura International plc accepts
> >no responsibility. If verification of this email is sought 
> then please
> >request a hard copy. Unless otherwise stated any views or opinions
> >presented are solely those of the author and do not 
> represent those of
> >Nomura International plc. This email is intended for informational
> >purposes only and is not a solicitation or offer to buy or sell
> >securities or related financial instruments. Nomura 
> International plc is
> >regulated by the Financial Services Authority and is a member of the
> >London Stock Exchange.
> >
> >
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> 


PLEASE READ: The information contained in this email is confidential
and intended for the named recipient(s) only. If you are not an intended
recipient of this email you must not copy, distribute or take any 
further action in reliance on it and you should delete it and notify the
sender immediately. Email is not a secure method of communication and 
Nomura International plc cannot accept responsibility for the accuracy
or completeness of this message or any attachment(s). Please examine this
email for virus infection, for which Nomura International plc accepts
no responsibility. If verification of this email is sought then please
request a hard copy. Unless otherwise stated any views or opinions
presented are solely those of the author and do not represent those of
Nomura International plc. This email is intended for informational
purposes only and is not a solicitation or offer to buy or sell
securities or related financial instruments. Nomura International plc is
regulated by the Financial Services Authority and is a member of the
London Stock Exchange.



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

Reply via email to