Re: Datasources in Spring-JPA-Tomcat 6.0.29

2012-03-15 Thread Steven Xiong
Hi Konstandin, It is due to incomplete cleanup: a stale copy with same user causes the issue. Thanks a lot Steven From: Konstantin Kolinko To: Tomcat Users List Sent: Thursday, March 15, 2012 9:27:51 AM Subject: Re: Datasources in Spring-JPA-Tomcat 6.0.29

Re: Datasources in Spring-JPA-Tomcat 6.0.29

2012-03-15 Thread Steven Xiong
Thanks Konstantin, Option 1) has been checked carefully, it is always clean/deploy. I will try option 2). From: Konstantin Kolinko To: Tomcat Users List Sent: Thursday, March 15, 2012 9:27:51 AM Subject: Re: Datasources in Spring-JPA-Tomcat 6.0.29 2012/3

Re: Datasources in Spring-JPA-Tomcat 6.0.29

2012-03-15 Thread Steven Xiong
Hi Stevo, I checked many times, the users are different in context.xml Thanks From: Stevo Slavić To: Tomcat Users List ; Steven Xiong Sent: Thursday, March 15, 2012 9:21:58 AM Subject: Re: Datasources in Spring-JPA-Tomcat 6.0.29 Hello Steven, Just a

Re: Datasources in Spring-JPA-Tomcat 6.0.29

2012-03-15 Thread Konstantin Kolinko
2012/3/15 Steven Xiong : > I have a Spring/JPA application running on Tomcat 6.0.29 accessing two > schemas of a single Oracle database. Each schema is configured as a seperate > datasource. If we config the datasources as spring beans of > "com.mchange.v2.c3p0.ComboPooledDataSource" type, the a

Re: Datasources in Spring-JPA-Tomcat 6.0.29

2012-03-15 Thread Stevo Slavić
Hello Steven, Just a wild guess, you're probably using same credentials/account in context.xml for both data sources, while you're using different credentials/account in each Spring datasource bean. Kind regards, Stevo. On Thu, Mar 15, 2012 at 2:12 PM, Steven Xiong wrote: > I have a Spring/JPA

Datasources in Spring-JPA-Tomcat 6.0.29

2012-03-15 Thread Steven Xiong
I have a Spring/JPA application running on Tomcat 6.0.29 accessing two schemas of a single Oracle database. Each schema is configured as a seperate datasource. If we config the datasources as spring beans of "com.mchange.v2.c3p0.ComboPooledDataSource" type, the app works correctly. However if w