Hi

I'd like to use servlet 2.3 so from JBoss-2.4.3_Tomcat-3.2.3 I upgraded to
JBoss-2.4.4_Tomcat-4.0.1. With 2.4.4 I receive a ClassCastException when
I run the following simple piece of code:

DataSource ds = (DataSource)new InitialContext().lookup("java:/DefaultDS");

When I use the default settings (org.jboss.jdbc.XADataSourceLoader,
org.jboss.pool.jdbc.xa.wrapper.XADataSourceImpl) I receive:
java.lang.ClassCastException: org.jboss.pool.jdbc.xa.XAPoolDataSource

I tried to use non xa version too (org.jboss.jdbc.JDBCDataSourceLoader,
org.jboss.pool.jdbc.JDBCPoolDataSource), then I receive:
java.lang.ClassCastException: org.jboss.pool.jdbc.JDBCPoolDataSource

I use jboss with db2 (type 2 driver COM.ibm.db2.jdbc.app.DB2Driver) on
linux (debian 2.2, kernel 2.2.20) with ibm jdk 
java version "1.3.0"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0)
Classic VM (build 1.3.0, J2RE 1.3.0 IBM build cx130-20010626 (JIT enabled: jitc))

the same thing worked with all previous versions ...
I checked out the source of jboss from cvs (-r JBoss_2_4_4 jboss-all)
and both XADataSourceImpl and JDBCPoolDataSource implements DataSource
interface so I should not receive ClassCastException ...

any ideas ?

thanks

Gabor Dolla
Budapest, Hungary


_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to