Couldn't get DataSource from a WAR file
0 posts in topic
Flat View  Flat View

Posted By:   Yufu_Huang
Posted On:   Wednesday, July 17, 2002 04:48 PM

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.

About | Sitemap | Contact