Am I the only one that is REALLY disturbed about that idea of REQUIRING two identical files to run an app? One in the war file and one in the conf directory? If the only in the conf directory takes priority, why the one in the war file needed at all? I am just hoping this isn't in tomcat 6.0.. The idea of relying on the server to use the correct version of possibly different files in a production server makes me VERY nervous.
--Angus Mezick -----Original Message----- From: Robert Dietrick [mailto:[EMAIL PROTECTED] Sent: Thursday, August 14, 2008 2:22 PM To: Tomcat Users List Subject: Re: where to place context configuration I would very much prefer to use only the one in mywebapp/META-INF/contex.xml, as this is much less invasive (does not require changing/adding anything to tomcat's global config directories). But this doesn't seem to work. I can leave it as is (and am becoming resigned to the fact that this is my only option), but this is sort of a maintenance nightmare since the two files need to be kept in sync. Plus, it just seems idiotic to need to declare the context and its resources in two locations. Does either of these files need a 'docBase' or 'path' parameter? It doesn't seem to make a difference either way. -rob On Thu, Aug 14, 2008 at 11:00 AM, Mark Thomas <[EMAIL PROTECTED]> wrote: > Robert Dietrick wrote: >> Hi, >> >> I just noticed that I had a <Context> definition in both >> $CATALINA_HOME/conf/Catalina/localhost/mywebapp.xml and in >> $CATALINA_HOME/webapps/mywebapp.war/META-INF/context.xml. In both of >> these context definitions, I define a JNDI database connection pool >> with the same name and identical parameters. This was working fine, >> but it is confusing, redundant, and runs contrary to the >> recommendations in the official documentation. >> >> However, if i remove either one of these files, I get the dreaded >> "Cannot create JDBC driver of class '' for connect URL 'null'" error. >> Can anyone offer any advice? > > Just leave it as is? > > The one in conf will take priority. > > Mark > > > --------------------------------------------------------------------- > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]