1 Reply Latest reply on Jul 20, 2002 1:36 PM by Dain Sundstrom

    Couldn't get DataSource

    yufu Newbie

      I'm using JBoss2.4.4+Tomcat4.0.1.

      I set up an Oracle DB pool, and can access the DataSource from EJBs without anyproblem. But when I use the same method to try to get DataSource in the bean of the WAR. I got this message:

      Problem making the connection:java.lang.ClassCastException: org.jboss.pool.jdbc.xa.XAPoolDataSource

      The code caused this problem was:
      DataSource ds = (DataSource)jndiContext.lookup("java:/OracleDb");

      Please help.