Back Forum Reply New

warning: tomcat 5.5.9 + connection pooling

mons.dbcp.BasicDataSourceFactorylt;/valuegt;   lt;/parametergt;      lt;parametergt;     lt;namegt;driverClassNamelt;/namegt;     lt;valuegt;com.mysql.jdbc.Driverlt;/valuegt;   lt;/parametergt;
...
lt;/ResourceParamsgt;
lt;/Contextgt;
doesn't work. You need to put it in the format:
Code:

lt;Context path=quot;/appNamequot; docBase=quot;C#58;/Program Files/Apache Software Foundation/Tomcat 5.5/webapps/appNamequot; debug=quot;4quot; reloadable=quot;truequot;gt; lt;Logger className=quot;org.apache.catalina.logger.FileLoggerquot; verbosity=quot;4quot; prefix=quot;localhost_appName_log.quot; suffix=quot;.txtquot; timestamp=quot;truequot;/gt;   lt;!-- Define a database connection pool for MYSQL --gt; lt;Resource name=quot;jdbc/appNameMYSQLquot; auth=quot;Containerquot; type=quot;javax.sql.DataSourcequot; factory=quot;org.apache.commons.dbcp.BasicDataSourceFactoryquot; driverClassName=quot;com.mysql.jdbc.Driverquot; ... /gt;
I don't see this last issue documented - maybe it is a bug.

Anyway, I hope this helps others keep their hair on. Mine is in a pile around my chair.

John

Database connection pool in server.xml with tomcat 5.5:
tomcat/tom...les-howto.html

Hi pir8ped    Tahnk you . I also have a problem with the migration from tomcat 5.0.28 to 5.5.9. In my case datasourse is a bean defined in applicationcontext.xml. When I put the three jar files that you mentioned above to the classpath, my problem solved.....Thank you.....Tinu
¥
Back Forum Reply New