<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: META-INF/context.xml</title>
	<atom:link href="http://almaer.com/blog/meta-infcontextxml/feed" rel="self" type="application/rss+xml" />
	<link>http://almaer.com/blog/meta-infcontextxml</link>
	<description>blogging about life, the universe, and everything tech</description>
	<lastBuildDate>Sat, 08 Sep 2012 07:06:53 -0700</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Chris</title>
		<link>http://almaer.com/blog/meta-infcontextxml/comment-page-1#comment-46203</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Wed, 10 Feb 2010 17:21:05 +0000</pubDate>
		<guid isPermaLink="false">http://almaer.com/blog2/meta-infcontextxml#comment-46203</guid>
		<description>Does anyone know how to keep the context.xml file from being overwritten each time a new WAR file is deployed?  Here&#039;s the situation: our context.xml file contained in the WAR file is meant to be configured AFTER it is deployed.  For example, our client services team will fill in values like database connection strings and such.  However, when the WAR file is redeployed these values are overwritten, and they will have to fill in those values again.  I&#039;d like to know if anyone has a solution to this.

Thanks!</description>
		<content:encoded><![CDATA[<p>Does anyone know how to keep the context.xml file from being overwritten each time a new WAR file is deployed?  Here&#8217;s the situation: our context.xml file contained in the WAR file is meant to be configured AFTER it is deployed.  For example, our client services team will fill in values like database connection strings and such.  However, when the WAR file is redeployed these values are overwritten, and they will have to fill in those values again.  I&#8217;d like to know if anyone has a solution to this.</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve</title>
		<link>http://almaer.com/blog/meta-infcontextxml/comment-page-1#comment-46119</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Thu, 04 Feb 2010 16:17:34 +0000</pubDate>
		<guid isPermaLink="false">http://almaer.com/blog2/meta-infcontextxml#comment-46119</guid>
		<description>I&#039;m using Tomcat 6 and it works.  I added the JDBC details to a copy of the default context.xml and put it in the applications META-INF folder. *** Note. you must put it in the WAR file editing the expanded folder does not work ***</description>
		<content:encoded><![CDATA[<p>I&#8217;m using Tomcat 6 and it works.  I added the JDBC details to a copy of the default context.xml and put it in the applications META-INF folder. *** Note. you must put it in the WAR file editing the expanded folder does not work ***</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kiran</title>
		<link>http://almaer.com/blog/meta-infcontextxml/comment-page-1#comment-45893</link>
		<dc:creator>Kiran</dc:creator>
		<pubDate>Mon, 14 Dec 2009 15:43:17 +0000</pubDate>
		<guid isPermaLink="false">http://almaer.com/blog2/meta-infcontextxml#comment-45893</guid>
		<description>Hi Dion ,

I am able to resolve this issue finally , problem is with context path.

Regards</description>
		<content:encoded><![CDATA[<p>Hi Dion ,</p>
<p>I am able to resolve this issue finally , problem is with context path.</p>
<p>Regards</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kiran</title>
		<link>http://almaer.com/blog/meta-infcontextxml/comment-page-1#comment-45892</link>
		<dc:creator>Kiran</dc:creator>
		<pubDate>Sat, 12 Dec 2009 20:52:11 +0000</pubDate>
		<guid isPermaLink="false">http://almaer.com/blog2/meta-infcontextxml#comment-45892</guid>
		<description>Sorry guys , This was a bug in tomcat 5.0.27 . I did apply the fix and the issues was resolved

https://issues.apache.org/bugzilla/show_bug.cgi?id=29688

But now I am getting into another issue
Cannot create JDBC driver of class &#039;&#039; for connect URL &#039;null&#039;
I copied the required jar to Lib folder , But still getting this error , Can you please help me . am I missing any thing?

Regards</description>
		<content:encoded><![CDATA[<p>Sorry guys , This was a bug in tomcat 5.0.27 . I did apply the fix and the issues was resolved</p>
<p><a href="https://issues.apache.org/bugzilla/show_bug.cgi?id=29688" rel="nofollow">https://issues.apache.org/bugzilla/show_bug.cgi?id=29688</a></p>
<p>But now I am getting into another issue<br />
Cannot create JDBC driver of class &#8221; for connect URL &#8216;null&#8217;<br />
I copied the required jar to Lib folder , But still getting this error , Can you please help me . am I missing any thing?</p>
<p>Regards</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kiran</title>
		<link>http://almaer.com/blog/meta-infcontextxml/comment-page-1#comment-45891</link>
		<dc:creator>Kiran</dc:creator>
		<pubDate>Sat, 12 Dec 2009 19:54:46 +0000</pubDate>
		<guid isPermaLink="false">http://almaer.com/blog2/meta-infcontextxml#comment-45891</guid>
		<description>Hi Dion Or any one Please help me.

I am using tomcat version 5.0.27 and trying to deploy my war file with the context information , But having trouble . War file is expanding properly but it is  creating  kd.xml FOLDER under C:\tomcat\Tomcat 5.0\conf\Catalina\localhost  ( where kd is my war file name) , not sure why it is creating Folder with that name under conf\Catalina\localhost . The end result is exception in the log says &quot;java.io.IOException: java.io.FileNotFoundException: C:\tomcat\Tomcat 5.0\conf\Catalina\localhost\kd.xml (Access is denied)&quot;

My context.xml file below

        
  WEB-INF/web.xml
    META-INF/context.xml
      
 

  
    
     username
     root
    
    
     password
     
    
    
       driverClassName
       com.mysql.jdbc.Driver
    
    
      url      
      jdbc:mysql://localhost:3306/test
    
    

Thanks for your help</description>
		<content:encoded><![CDATA[<p>Hi Dion Or any one Please help me.</p>
<p>I am using tomcat version 5.0.27 and trying to deploy my war file with the context information , But having trouble . War file is expanding properly but it is  creating  kd.xml FOLDER under C:\tomcat\Tomcat 5.0\conf\Catalina\localhost  ( where kd is my war file name) , not sure why it is creating Folder with that name under conf\Catalina\localhost . The end result is exception in the log says &#8220;java.io.IOException: java.io.FileNotFoundException: C:\tomcat\Tomcat 5.0\conf\Catalina\localhost\kd.xml (Access is denied)&#8221;</p>
<p>My context.xml file below</p>
<p>  WEB-INF/web.xml<br />
    META-INF/context.xml</p>
<p>     username<br />
     root</p>
<p>     password</p>
<p>       driverClassName<br />
       com.mysql.jdbc.Driver</p>
<p>      url<br />
      jdbc:mysql://localhost:3306/test</p>
<p>Thanks for your help</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nalini</title>
		<link>http://almaer.com/blog/meta-infcontextxml/comment-page-1#comment-45735</link>
		<dc:creator>Nalini</dc:creator>
		<pubDate>Tue, 17 Nov 2009 12:21:16 +0000</pubDate>
		<guid isPermaLink="false">http://almaer.com/blog2/meta-infcontextxml#comment-45735</guid>
		<description>Thanks Adam Buckley .. ur idea was helpful.</description>
		<content:encoded><![CDATA[<p>Thanks Adam Buckley .. ur idea was helpful.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel</title>
		<link>http://almaer.com/blog/meta-infcontextxml/comment-page-1#comment-41566</link>
		<dc:creator>Daniel</dc:creator>
		<pubDate>Wed, 05 Aug 2009 10:16:44 +0000</pubDate>
		<guid isPermaLink="false">http://almaer.com/blog2/meta-infcontextxml#comment-41566</guid>
		<description>@Adam (comment 10)

The META-INF/context.xml &quot;trick&quot; works fine for war files and expanded directorie structures. It is not as trick. It is a normal configuration alternative.

I am using Tomcat-6.0.18.</description>
		<content:encoded><![CDATA[<p>@Adam (comment 10)</p>
<p>The META-INF/context.xml &#8220;trick&#8221; works fine for war files and expanded directorie structures. It is not as trick. It is a normal configuration alternative.</p>
<p>I am using Tomcat-6.0.18.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeyakumar</title>
		<link>http://almaer.com/blog/meta-infcontextxml/comment-page-1#comment-40419</link>
		<dc:creator>Jeyakumar</dc:creator>
		<pubDate>Wed, 25 Feb 2009 09:24:46 +0000</pubDate>
		<guid isPermaLink="false">http://almaer.com/blog2/meta-infcontextxml#comment-40419</guid>
		<description>hi Christian Menkens,

Same problem came for me also

Solution:
    i think , your are not included the mysql driver jar file inside your /WEB-INF/lib directory.
 
Check the mysql driver jar is placed in /WEB-INF/lib directory. if not include the 
jar then restart the tomcat.

for me it works fine ..</description>
		<content:encoded><![CDATA[<p>hi Christian Menkens,</p>
<p>Same problem came for me also</p>
<p>Solution:<br />
    i think , your are not included the mysql driver jar file inside your /WEB-INF/lib directory.</p>
<p>Check the mysql driver jar is placed in /WEB-INF/lib directory. if not include the<br />
jar then restart the tomcat.</p>
<p>for me it works fine ..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: The final solution</title>
		<link>http://almaer.com/blog/meta-infcontextxml/comment-page-1#comment-40359</link>
		<dc:creator>The final solution</dc:creator>
		<pubDate>Thu, 12 Feb 2009 18:38:52 +0000</pubDate>
		<guid isPermaLink="false">http://almaer.com/blog2/meta-infcontextxml#comment-40359</guid>
		<description>That didn&#039;t work

There are xml elements to add on your application&#039;s web.xml

view this page: http://www.oreillynet.com/cs/user/view/cs_msg/7193

hope this helps.</description>
		<content:encoded><![CDATA[<p>That didn&#8217;t work</p>
<p>There are xml elements to add on your application&#8217;s web.xml</p>
<p>view this page: <a href="http://www.oreillynet.com/cs/user/view/cs_msg/7193" rel="nofollow">http://www.oreillynet.com/cs/user/view/cs_msg/7193</a></p>
<p>hope this helps.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: The final solution</title>
		<link>http://almaer.com/blog/meta-infcontextxml/comment-page-1#comment-40358</link>
		<dc:creator>The final solution</dc:creator>
		<pubDate>Thu, 12 Feb 2009 18:37:10 +0000</pubDate>
		<guid isPermaLink="false">http://almaer.com/blog2/meta-infcontextxml#comment-40358</guid>
		<description>On your web.xml add the following elements


		Database Connection
		jdbc/ebackbay
		javax.sql.DataSource
		Container
		Shareable
	</description>
		<content:encoded><![CDATA[<p>On your web.xml add the following elements</p>
<p>		Database Connection<br />
		jdbc/ebackbay<br />
		javax.sql.DataSource<br />
		Container<br />
		Shareable</p>
]]></content:encoded>
	</item>
</channel>
</rss>
