Getting this class cast exception when I try to get a Data Source that I set up in the jboss.jcml file running 2.4.4 and Catalina.
The setup is as follows in the jcml file
org.gjt.mm.mysql.Driver
...
This is what the code looks like...
Context ctx = new InitialContext();
javax.sql.DataSource ds = (javax.sql.DataSource)ctx.lookup("java:/GuiDS");
I think I must be crazy because nobody else has had this problem. The error implies that the pool being returned is not implement DataSource.
Any thoughts would be much appreciated...
Michael