> From: Dhiren Bhatia [mailto:dhiren.for...@gmail.com]
> Subject: Re: Commons DBCP in Tomcat 6.x
> 
> <Context path="/myapp" docBase="myapp" debug="0"
> reloadable="true" crossContext="true">

<Context> elements should not be placed in server.xml:
http://tomcat.apache.org/tomcat-6.0-doc/config/context.html

> <Resource name="jdbc/myserver" auth="Container"
> type="javax.sql.DataSource" />

To re-emphasize Konstantin's comment:

> > > Note, that you have to specify className="..." explicitly.

> <ResourceParams name="jdbc/myserver">

This is completely wrong.  <ResourceParams> haven't been used in ages; you 
might try reading the documentation for the level of Tomcat you're using:
http://tomcat.apache.org/tomcat-6.0-doc/jndi-resources-howto.html
http://tomcat.apache.org/tomcat-6.0-doc/jndi-datasource-examples-howto.html

Looks like you're following some very, very out of date documentation or 
examples.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to