users@glassfish.java.net

Error Connecting To MySQL

From: <glassfish_at_javadesktop.org>
Date: Tue, 12 Aug 2008 00:37:04 PDT

Hi,
I am new to glassfish and am trying to port my old application to it. I need to connect to MySQL database. I have configured a connection pool in glassfish and it is connecting to DB. Now when I try to access the connection pool from Java code I get the following error
[i]java.lang.ClassCastException: com.sun.gjc.spi.jdbc30.DataSource30
        at com.boltzmann.ecohols.InitDBConnection.init(InitDBConnection.java:32)
        at javax.servlet.GenericServlet.init(GenericServlet.java:254)[/i]
Could any one please help me out on this?
Any idea or suggestion would be greatly appreciated.

Thanks & Regards
[Message sent by forum member 'ajaych' (ajaych)]

http://forums.java.net/jive/thread.jspa?messageID=292783