We have an application that connects properly with
Tomcat 5.5, but when deployed on tomcat 6.0.32 it will only read one of the applications jdbcutil.properties files. i have tried creating a context.xml in the meta-inf folder catalina/localhost, server.xml, but nothing i do makes a difference. when i deploy more than one application, tomcat only reads the first applicatins dbcp connection information.
We make reference in the web.xml pointing to the path and jdbcutil.properties file which contains the database connection information.
here is a sample piece of web.xml and jdbcutil.properties file.
I'm sure it has to do with the updated
servlet 2.5 and
jsp 2.1
Any help greatly appreciated
<servlet>
<servlet-name>jdbc.pool.DBConnectionMgr</servlet-name>
<display-name>DBConnectionMgr</display-name>
<description>Connection Pool Servlet</description>
<servlet-class>jdbc.pool.DBConnectionMgr</servlet-class>
<init-param>
<param-name>jdbc.pool.property.file</param-name>
<param-value>D:\Tomcat\webapps\comfiqa896\WEB-INF\config\jdbcutil.properties</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
# Database Connection Pooling
# Specify the database pool provider - if line is commented out, then original comprizon pool will be used.
# DBCP is the Jakarta DBCP library.
jdbc.pool.provider=DBCP
# Configure the driver to use for connecting to the database
#
# Oracle: pool.driver=oracle.jdbc.driver.OracleDriver
pool.driver=oracle.jdbc.driver.OracleDriver
# Configure the connection
string for connecting to the database
#
# Oracle: driver.url=jdbc:oracle:thin:@127.0.01:1521:db_sid
driver.url=jdbc:oracle:thin:@127.0.0.1:1521:sid (connection information removed)
# Configure the username and password for connecting to the database
#
# --- ORGINAL BIZDOC ENCRYPTION ALGORITHM
driver.user=BFhEEA4EP27J2PIB
driver.password=l2GJNo-hoS8BUFGDbS
decrypt.class=jdbc.util.DecryptBizdoc
readonly.user=
readonly.password=