-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Exception while JNDI lookup......
PostPosted: Thu May 20, 2004 11:41 pm 
Newbie

Joined: Thu May 20, 2004 11:36 pm
Posts: 1
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)


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.