tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: How to config the Tomcat 7.x JNDI datasource by using BoneCP ??
Date Thu, 03 May 2012 01:19:11 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Zuxiong,

On 5/2/12 9:13 PM, zuxiong lin wrote:
> When I use BoneCP in per-web-app,  it is OK with  partitionCount . 
> "partitionCount " is a property of BoneCP.

Okay, that's fine then.

> MySQL Connector/J  5.1.19,  I put it into both Tomcat's lib/ 
> directory and my webapp's WEB-INF/lib directory.

Don't do that: remove mysql-connector-j-5.1.9.jar from WEB-INF/lib.
Also remove the JAR for BoneCP.

> I can have a try. I think it doesnot work :

Did you try it or not?

>> you'll need to have the JAR files for MySQL Connector/J *and* 
>> BoneCP in Tomcat's lib/ directory and *not* in your webapp's 
>> WEB-INF/lib directory.

I thought it was clear: Tomcat needs these libraries. Your webapp does
not. If you put those .jar files into WEB-INF/lib, things will ber
seriously confused.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk+h3Q8ACgkQ9CaO5/Lv0PBItwCZAQ46/6hFozDCuQuzD6CzAsFg
CRAAoKLTCLFSoswkgvreSBUBYeShxM1R
=k9mT
-----END PGP SIGNATURE-----

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


Mime
View raw message