Advertisement

05.24.2008 at 05:54AM PDT, ID: 23429774
[x]
Attachment Details

tomcat applicationContext.xml location

Asked by komlaaa in Apache Tomcat Application Server

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/localhost/ 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/localhost/

=============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.BasicDataSourceFactory</value>
                  </parameter>
                  <parameter>
                  <name>url</name>
                  <value>jdbc:mysql://localhost/test?autoReconnect=true</value>
                  </parameter>
                        <parameter>
......
....Start Free Trial
[+][-]05.29.2008 at 12:14PM PDT, ID: 21672386

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Apache Tomcat Application Server
Sign Up Now!
Solution Provided By: girionis
Participating Experts: 1
Solution Grade: B
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628