0 Replies Latest reply on Jul 18, 2002 1:40 PM by yufu

    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.