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 (Darwin

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 wrote: > Hei. Of course, I write the name in 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

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 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 < devl

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 Filip Hanik Mailing Lists
reading this on my phone, but does your 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-02 Thread zuxiong lin
rce" .../> > > Filip > > > -Original Message- > > From: zuxiong lin [mailto:linzuxiong1...@gmail.com] > > Sent: Wednesday, May 02, 2012 8:40 PM > > To: Tomcat Users List > > Subject: Re: How to config the Tomcat 7.x JNDI datasource by using > > Bo

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 Filip > -Original Message- > From: zuxiong lin [mailto:linzuxiong1...@gmail.com] > Sent: Wednesday, May 02, 2012 8:40 PM > To: Tomcat Users List > Subject: Re: How to config the Tomcat 7.x JNDI datasource by

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

2012-05-02 Thread zuxiong lin
> 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 Tomcat 7.x JNDI data

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

2012-05-02 Thread Filip Hanik (mailing lists)
ubject: Re: How to config the Tomcat 7.x JNDI datasource by using > BoneCP ?? > > > 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. > Be

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 confuse

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
; > 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 mail. > > > > On Wed, May 2, 2012 at 4:23 PM, Pid wrote: > > &

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 fi

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 >

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 driverClass="com.mysql.jdbc.Driver" * > factory="com.jolbox.bonecp.BoneCPDataSource"* > idleMaxAgeInMinutes="600" jdbcUrl="jdbc:mysql:// > 10.2

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 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 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
Another example: 1.In Tomcat 7, conf/server.xml -> GlobalNamingResources 2.my web app . META-INF/context.xml 3.my web app . web-inf/web.xml jdbc/SoftmgrV3 com.jolbox.bonecp.BoneCPDataSource 4.my code , spring jee: Tomcat expcetion tells me org.apache.naming.factory.ResourceEnvFac

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 In my Web App: META-INF/context.xml : web-inf/web.xml : jndi datasource jdbc/SoftmgrV3 com.jolbox.bonecp.BoneCPDataSource Container spring jee: *But