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

    Getting Oracle DataSource

    yufu Newbie

      Using JBoss2.4.4_Tomcat4.0.1.
      I set up an oracle DataSource. Have two package: project.jar (EJB) and project.war (WAR). After successfully deployed two packages. Same pieces of code for getting DataSource work in project.jar but not project.war programs. The code
      javax.sql.DataSource ds = (javax.sql.DataSource) aJNDIContext.lookup("java:/OracleDB");
      caused the exception (working fine in project.jar):
      Problem making the connection:java.lang.ClassCastException: org.jboss.pool.jdbc.xa.XAPoolDataSource

      Any help? Thanks.