I am developping a web application with tomcat, i and don't want to manually copy and paste the context.xml into $TOMCAT/conf/catalina/loca
lhost/ any time i am deploying.
Where in my web application directory should i place this file in order for it to be automatically deployed to:
$TOMCAT/conf/catalina/loca
lhost/
=============sample contex.xml content==========
<?xml version='1.0' encoding='utf-8'?>
<Context path="/wptStrutsHib" docBase="wptStrutsHib" debug="5" reloadable="true" >
<Resource auth="Container" description="DB Connection" name="jdbc/wptStrutsHib" type="javax.sql.DataSource
"/>
<ResourceParams name="jdbc/wptStrutsHib">
<parameter>
<name>factory</name>
<value>org.apache.commons.
dbcp.Basic
DataSource
Factory</v
alue>
</parameter>
<parameter>
<name>url</name>
<value>jdbc:mysql://localh
ost/test?a
utoReconne
ct=true</v
alue>
</parameter>
<parameter>
......
....
Start Free Trial