there are 2 context.xml : the global one at tomcat_home and the local one at the webapp. if you want a local one, create the folder META-INF outside WEB-INF, meaning that META-INF is not inside WEB-INF
if you're using eclipse wtp, you may put the META-INF under WebContent folder. undder folder web if you're using NB On 4/19/07, Avinash Kumar <[EMAIL PROTECTED]> wrote:
thanks, In my web application context .xml is under TOMCAT_HOME\conf\context.xml their is not META-INF so do i need to create a META-INF directoru nd shift the context.xml i can modify it from where it is.... On 4/19/07, Andre Prasetya <[EMAIL PROTECTED]> wrote: > > the one at TOMCAT_HOME\conf\context.xml is the one that is loaded for all > application, you ll wanna use that if you have a global environment > variable. for example you need a DataSource (connection pool) that is > shared > for all application. you can configure a context.xml inside META-INF of > your > web app. > > On 4/19/07, Avinash Kumar <[EMAIL PROTECTED]> wrote: > > > > Hi all, > > Thier is a file TOMCAT_HOME\conf\context.xml in tomcat 5.5 ,what we > have > > to write in this xml file and when is this file needed,i made two sample > > web > > application in jsp and servets ,i just deployed those in webapps ,i se > the > > java and tomcat home as required and these application are running ,i > > just > > want to know that when we have to configure this file. > > Thanks > > > > > > -- > -Andre- > > People see things the way they are and say "why ?" I see things that never > were and say "Why not ?" >
-- -Andre- People see things the way they are and say "why ?" I see things that never were and say "Why not ?"