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