Tomcat 6 / Mysql with connection Pool Error isValid Method

2010-11-25 Thread EmCpam

Hello, 

I've a problem when i use the  isValid method of Connection class with a
connection pool.
The java exception is:

javax.servlet.ServletException:
com.sun.jersey.api.container.ContainerException:
java.lang.AbstractMethodError:
org.apache.tomcat.dbcp.dbcp.PoolingDataSource$PoolGuardConnectionWrapper.isValid(I)Z

com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:346)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

org.cnamts.securite.filtres.FiltreSecurite.doFilter(FiltreSecurite.java:133)
org.cnamts.securite.filtres.FiltreCommun.doFilter(FiltreCommun.java:128)


I'm using tomcat 6.0.29 with java jdk 1.6 and netbeans 6.9. My jdbc
connector jar is mysql-connector-java-5.1.13-bin.jar, placed in tomcat lib
path.

The declaration of my ressource in web.xml is:

DB Connection
jdbc/connData
javax.sql.DataSource
Container

in my context.xml file:




Others methods for retrieve or update data works well. I've only a problem
with isValid.
What is wrong, or is there any other solution for checking my connection ?

Thanks a lot for your help.

Emmanuel
-- 
View this message in context: 
http://old.nabble.com/Tomcat-6---Mysql-with-connection-Pool--Error-isValid-Method-tp30306398p30306398.html
Sent from the Tomcat - Dev mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



Re: Tomcat 6 / Mysql with connection Pool Error isValid Method

2010-11-25 Thread EmCpam

Ok, sorry for the mistake, is it possible to move this subjet to the user
list ? If not, i will create a nex subject in the right list.

Thanks,
Emmanuel




markt-2 wrote:
> 
> On 25/11/2010 15:50, EmCpam wrote:
>> 
>> Hello, 
>> 
>> I've a problem when i use the  isValid method of Connection class with a
>> connection pool.
> 
> This question belongs on the users list, not the dev list.
> 
> Mark
> 
> -
> To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: dev-h...@tomcat.apache.org
> 
> 
> 

-- 
View this message in context: 
http://old.nabble.com/Tomcat-6---Mysql-with-connection-Pool--Error-isValid-Method-tp30306398p30307289.html
Sent from the Tomcat - Dev mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org