You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Scott Purcell <sp...@vertisinc.com> on 2005/04/11 19:57:42 UTC

META-INF/context.xml question

Hello,
I am still configuring my Tomcat 5.5.7 on a PC. I am configuring a <Context element and would like to put it in the META-INF/context.xml for my webapp. The docs say this would be fine.

My question is, so I need anytype of doctype heading for this, since it is a xml file?

Or do I just create the context.xml in an editor, and start with my <Context elements?

Thanks,
Scott



                                                 

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: META-INF/context.xml question

Posted by lu...@chipcity.com.au.
 Hi,
 
 11Apr2005 @ 12:57 Scott Purcell thusly spake
 > My question is, so I need anytype of doctype heading for this, since it is a xml file?
 > Or do I just create the context.xml in an editor, and start with my <Context elements?
 
 Following is a version of a context.xml file that goes in the META-INF directory of a webapp.
 
 <?xml version="1.0" encoding="UTF-8"?>
 <Context path="/Ex12">
   <Logger className="org.apache.catalina.logger.FileLogger" prefix="Ex12." suffix=".log" timestamp="true"/>
   <Realm className="org.apache.catalina.realm.MemoryRealm" pathname="conf/myUsers.xml" />
 </Context>
 
 hth,
 
 L.
 
 -- 
 ............._
 :|  .| |.|/.|_
 :|__.|_|.|\.|_
 :0421 276 282.

-- 
............._
:|  .| |.|/.|_
:|__.|_|.|\.|_
:0421 276 282.

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org