Guys...
I am trying to use the datasource bound to JNDI, and each time I do a look for the datasource I get the following exception.
Can anyone help me out as to what I am doing wrong, or am I missing some files from my classpath. I am using WSAD as the development environment and using the Testing Environment in WSAD to run the application.
Looking forward to some solution....
Thanks
Anshuman Nanda
JNDI InitialContext properties:{java.naming.provider.url=IIOP://localhost:2809/, java.naming.factory.initial=com.ibm.websphere.naming.WsnInitialContextFactory}
Could not find datasource: jdbc/APPLICATION
java.lang.ClassCastException: com.ibm.ws.naming.util.CacheableReference
at net.sf.hibernate.connection.DatasourceConnectionProvider.configure(DatasourceConnectionProvider.java:44)
at net.sf.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:83)
at net.sf.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:64)
at net.sf.hibernate.cfg.Configuration.buildSettings(Configuration.java:1132)
at net.sf.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:766)
at com.hibernate.category.HibernateUtil.<clinit>(HibernateUtil.java:17)
at HibernateTest.main(HibernateTest.java:21)
|