Walter:<BR> check your META-INF/context.xml attribute useNaming="true"<BR>
http://tomcat.apache.org/tomcat-5.5-doc/config/context.html<BR> HTH<BR> Martin <BR> ______________________________________________ <BR> Disclaimer and confidentiality note Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission. > Date: Sat, 13 Sep 2008 14:38:15 -0700 > From: [EMAIL PROTECTED] > To: users@tomcat.apache.org > Subject: JNDI configuration in webapp/META-INF/context.xml > > > Hi all, > > I have tried setting up JNDI for my web application inside the applicaton's > WAR file itself to no avail. If I use the same configuration, but put it in > my server's context.xml, it works fine. > > Here is the configuration I am using: > [code] > <?xml version="1.0" encoding="US-ASCII"?> > <!-- > http://tomcat.apache.org/tomcat-6.0-doc/config/context.html Even > though this works inside of tomcat/conf/context.xml and the > documentation says it should work here, it doesn't > --> > <context reloadable="true"> > <WatchedResource>WEB-INF/web.xml</WatchedResource> > <WatchedResource>META-INF/context.xml</WatchedResource> > <Resource name="${jndi.URL}" auth="Container" > type="javax.sql.DataSource" > driverClassName="${jdbc.driverClassName}" url="${jdbc.url}" > username="${jdbc.username}" > password="${jdbc.password}" maxActive="100" maxIdle="30" > maxWait="10000" > /> > </context> > [/code] > > The parameters specified dynamically via ${} are filtered via > maven-resources-plugin, so that is not an issue. The issue is just with > this configuration placed inside my webapp, I can't get a JNDI connection, > but if it is in the server's context.xml, it works great. > > Walter > -- > View this message in context: > http://www.nabble.com/JNDI-configuration-in-webapp-META-INF-context.xml-tp19474901p19474901.html > Sent from the Tomcat - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > _________________________________________________________________ See how Windows connects the people, information, and fun that are part of your life. http://clk.atdmt.com/MRT/go/msnnkwxp1020093175mrt/direct/01/