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.
We have a new forum just for datasource configuration questions: Datasource Configuration. Please, ask your question there.