Re: How to config the Tomcat 7.x JNDI datasource by using BoneCP ??

2012-06-06 Thread zuxiong lin
Hi ALL. Anybody help ? On Thu, May 3, 2012 at 10:00 PM, zuxiong lin linzuxiong1...@gmail.comwrote: Hei. Of course, I write the name in Resource element. But Tomcat 7's logs report it . Please to find others before this letter, and you will read the Tomcat's logs!

Re: How to config the Tomcat 7.x JNDI datasource by using BoneCP ??

2012-06-06 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Zuxiong, On 6/6/12 6:47 AM, zuxiong lin wrote: Hi ALL. Anybody help ? Filip asked for your startup logs and you never posted them. If you post them, perhaps we can help. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG/MacGPG2 v2.0.17

Re: How to config the Tomcat 7.x JNDI datasource by using BoneCP ??

2012-05-03 Thread Filip Hanik Mailing Lists
reading this on my phone, but does your Resource element have a name attribute? - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org

Re: How to config the Tomcat 7.x JNDI datasource by using BoneCP ??

2012-05-03 Thread Filip Hanik Mailing Lists
found it, check the logs at startup for the error and post it here. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org

Re: How to config the Tomcat 7.x JNDI datasource by using BoneCP ??

2012-05-03 Thread zuxiong lin
Hei. Of course, I write the name in Resource element. But Tomcat 7's logs report it . Please to find others before this letter, and you will read the Tomcat's logs! minConnectionsPerPartition=3 name=jdbc/SoftmgrV3 partitionCount=2 On Thu, May 3, 2012 at 9:24 PM, Filip Hanik Mailing Lists

Re: How to config the Tomcat 7.x JNDI datasource by using BoneCP ??

2012-05-02 Thread zuxiong lin
Actually , I have do it 5 times by different way. But Tomcat 7 tells me Exception! In Tomcat 7 , conf/server.xml - GlobalNamingResources !-- BoneCP datasource -- Resource acquireIncrement=2 auth=Container driverClass=com.mysql.jdbc.Driver * factory=com.jolbox.bonecp.BoneCPDataSource*

Re: How to config the Tomcat 7.x JNDI datasource by using BoneCP ??

2012-05-02 Thread zuxiong lin
Another example: 1.In Tomcat 7, conf/server.xml - GlobalNamingResources !-- BoneCP datasource -- Resource acquireIncrement=2 auth=Container *driverClass*=com.mysql.jdbc.Driver *driverClassName*=com.mysql.jdbc.Driver *factory*=* com.jolbox.bonecp.BoneCPDataSource*

Re: How to config the Tomcat 7.x JNDI datasource by using BoneCP ??

2012-05-02 Thread Pid
On 02/05/2012 02:12, zuxiong lin wrote: Hi, All. Any help ? Thanks? Perhaps you could read the following: http://www.catb.org/~esr/faqs/smart-questions.html and then rephrase your question? p -- [key:62590808] signature.asc Description: OpenPGP digital signature

Re: How to config the Tomcat 7.x JNDI datasource by using BoneCP ??

2012-05-02 Thread zuxiong lin
See appending mail. On Wed, May 2, 2012 at 4:23 PM, Pid p...@pidster.com wrote: On 02/05/2012 02:12, zuxiong lin wrote: Hi, All. Any help ? Thanks? Perhaps you could read the following: http://www.catb.org/~esr/faqs/smart-questions.html and then rephrase your question? p

Re: How to config the Tomcat 7.x JNDI datasource by using BoneCP ??

2012-05-02 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Zuxiong, On 5/2/12 3:09 AM, zuxiong lin wrote: In Tomcat 7 , conf/server.xml - GlobalNamingResources !-- BoneCP datasource -- Resource acquireIncrement=2 auth=Container driverClass=com.mysql.jdbc.Driver *

RE: How to config the Tomcat 7.x JNDI datasource by using BoneCP ??

2012-05-02 Thread Filip Hanik (mailing lists)
http://tomcat.apache.org/tomcat-7.0-doc/jdbc-pool.html -Original Message- From: zuxiong lin [mailto:linzuxiong1...@gmail.com] Sent: Wednesday, May 02, 2012 2:35 AM To: Tomcat Users List Subject: Re: How to config the Tomcat 7.x JNDI datasource by using BoneCP ?? See appending

Re: How to config the Tomcat 7.x JNDI datasource by using BoneCP ??

2012-05-02 Thread zuxiong lin
When I use BoneCP in per-web-app, it is OK with partitionCount . partitionCount is a property of BoneCP. MySQL Connector/J 5.1.19, I put it into both Tomcat's lib/ directory and my webapp's WEB-INF/lib directory . (I can have a try. I think it doesnot work : you'll need to have the JAR

Re: How to config the Tomcat 7.x JNDI datasource by using BoneCP ??

2012-05-02 Thread zuxiong lin
I have a try , but it does work. On Thu, May 3, 2012 at 12:54 AM, Filip Hanik (mailing lists) devli...@hanik.com wrote: http://tomcat.apache.org/tomcat-7.0-doc/jdbc-pool.html -Original Message- From: zuxiong lin [mailto:linzuxiong1...@gmail.com] Sent: Wednesday, May 02, 2012

Re: How to config the Tomcat 7.x JNDI datasource by using BoneCP ??

2012-05-02 Thread Christopher Schultz
-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/

Re: How to config the Tomcat 7.x JNDI datasource by using BoneCP ??

2012-05-02 Thread zuxiong lin
Don't do that: remove mysql-connector-j-5.1.9.jar from WEB-INF/lib. Also remove the JAR for BoneCP. I donot have a try now. This morning I received your mail ,UTC+8. Before I sent my mail for help , I just put the jar in both Tomcat/lib dir and webapp/WEB-INF/lib. And I found I am very confused

RE: How to config the Tomcat 7.x JNDI datasource by using BoneCP ??

2012-05-02 Thread Filip Hanik (mailing lists)
BoneCP doesn't have a JNDI factory AFAICT, and it's also missing a lot of critical features, like validation etc Filip -Original Message- From: zuxiong lin [mailto:linzuxiong1...@gmail.com] Sent: Wednesday, May 02, 2012 7:36 PM To: Tomcat Users List Subject: Re: How to config the

Re: How to config the Tomcat 7.x JNDI datasource by using BoneCP ??

2012-05-02 Thread zuxiong lin
com.jolbox.bonecp.BoneCPDataSource implements DataSource, *ObjectFactory , * *isnot it a JNDI factory ? * On Thu, May 3, 2012 at 10:30 AM, Filip Hanik (mailing lists) devli...@hanik.com wrote: BoneCP doesn't have a JNDI factory AFAICT, and it's also missing a lot of critical features, like

RE: How to config the Tomcat 7.x JNDI datasource by using BoneCP ??

2012-05-02 Thread Filip Hanik (mailing lists)
Aah, yes you are right. The specify Resource name=jdbc/DB factory=com.jolbox.bonecp.BoneCPDataSource type=javax.sql.DataSource .../ Filip -Original Message- From: zuxiong lin [mailto:linzuxiong1...@gmail.com] Sent: Wednesday, May 02, 2012 8:40 PM To: Tomcat Users List Subject: Re:

Re: How to config the Tomcat 7.x JNDI datasource by using BoneCP ??

2012-05-02 Thread zuxiong lin
So , why does tomcat report exception casued by commons.dbcp ...factory ? It is more like a bug... On Thu, May 3, 2012 at 10:42 AM, Filip Hanik (mailing lists) devli...@hanik.com wrote: Aah, yes you are right. The specify Resource name=jdbc/DB factory=com.jolbox.bonecp.BoneCPDataSource

How to config the Tomcat 7.x JNDI datasource by using BoneCP ??

2012-05-01 Thread zuxiong lin
Hi, All. Any help ? Thanks?