Maybe you have 2 copies of javax.sql.DataSource loaded in different classloaders? Maybe Tomcat has one version and jboss has another? Is the code in a servlet or an ejb?
Thanks for the reply.
I will check into your suggestion and post a reply. Have you ever tried this combo (JBOSS 3.0 and Tomcat 4.0.2) and had a similar problem?