On Tue, Dec 14, 2010 at 6:42 AM, SOPANMISHRA <sopan.mis...@gmail.com> wrote:
> > 1. I have posted the exact tags that i'm using in my hibernate.cfg.xml > 2. regarding the BasicDataSource.getConnection in DBCP-1.2.2 ,I have not > mentioned username,password tag in my hibernate.cfg.xml so is there any > other bug? > I am not a hibernate expert, but the DBCP exception that you are getting is the result of the hibernate code calling getConnection(username,password), as opposed to getConnectio(). The former is not supported by DBCP. The pool creates connections using credentials provided in its configuration. These credentials, and the other JDBC connection properties, apply to all connections managed by the pool. You can't override them on individual getConnection requests and they must be provided in the conifg. Phil 3. Till now I have configured my files as asked by Chris & Mark > 4. I'm configuring application specific requirements in the > D:\apache-tomcat-6.0.26\conf\context.xml > 5. If the data source works out then I will configure META-INF\context.xml > for being project specific > 6. I tried removing <property name="connection.pool_size">10</property> > 7. The error still prevails-"Not supported by BasicDataSource" > > -- > View this message in context: > http://old.nabble.com/Not-supported-by-Basic-Datasource-tp30418811p30453889.html > Sent from the Tomcat - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > >