Re: ClassCastException : javax.naming.Reference JNDI Datasource
Posted By:
Nitin_H
Posted On:
Tuesday, December 2, 2003 04:59 PM
Solution :
1. Make sure the programming JRE is the same as the server JRE that your program will run on
WSAD ->Windows -> Preferences -> Java -> Installed JREs . typically websphere v5 JRE.
2. Make sure you have these libraries in your application classpath
cmImpl.jar
j2cImpl.jar
j2ee.jar
jmxx.jar
naming.jar
namingclient.jar
namingserver.jar
securityImpl.jar
txPrivate.jar
webContainer.jar
JRE system library (variable)
WAS_V5_IMPL_FACTORY_PROP (predefined folder)
some of the above libraries may not be necessary, but I did not investigate further. Those are the libraries currently being used by my program.
-Nitin (self- answered) ;)