0 Replies Latest reply on Apr 11, 2002 12:13 PM by Michael Connor

    java.lang.ClassCastException: org.jboss.pool.jdbc.xa.XAPoolD

    Michael Connor Newbie

      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