title: Individual XML files located in $CATALINA_HOME/conf/[enginename]/[hostname]/
body: <p>I'm developing java web application using <code>tomcat 7</code> <BR>
  I want to have <code>context.xml</code> file outside of my war with custom name. I have database resource defined in this file. <BR><BR>
  According to <a href="http://www.mulesoft.com/tomcat-context#.USyTy6IgdAI" rel="nofollow">tomcat documentation</a>, I put <code>context.xml.default</code> file in <code>CATALINA_HOME/conf/[enginename]/[hostname]/</code> directrory and I could get database configuration. </p>
  
  <p>Now, I want to rename <code>context.xml.default</code> and put custom file name,which matches my contextpath. If I do so, I can't get database configuration anymore and my appliction throws Exception:</p>
  
  <pre><code>org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'null'
  </code></pre>
  
  <p>Here is the content o my <code>context.xml.default</code> file:</p>
  
  <pre><code>&lt;Context
  crossContext="true"
  reloadable="true" &gt;
  
   &lt;Resource
      name="jdbc/myDS"
      auth="Container"
      driverClassName="oracle.jdbc.driver.OracleDriver"
      factory="com...encription.util.EncryptedDataSourceFactory"
      logAbandoned="true"
      maxActive="30"
      maxIdle="10"
      maxWait="1000"
      password="encryptedPass"
      removeAbandoned="true"
      removeAbandonedTimeout="60"
      type="javax.sql.DataSource"
      url="jdbc:oracle:thin:@myIP:myPort:FRONT"
      username="username" /&gt;
  </code></pre>
  
  <p></p>