Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Jar file for com.ibm.websphere.naming.WsnInitialContextFactory

Tags:

websphere

I'm trying to connect to Websphere 8.0 (WAS)

I get exception

Exception occurred: javax.naming.NoInitialContextException: Cannot instantiate      
class:com.ibm.websphere.naming.WsnInitialContextFactory

when running my program.

my jndi.properties is

java.naming.factory.initial=com.ibm.websphere.naming.WsnInitialContextFactory
java.naming.factory.url.pkgs=com.ibm.ws.naming
java.naming.provider.url=iiop://<myip>:2810

May I know which jar should we use so that can connect successfully?

like image 474
tan chekban Avatar asked Dec 14 '25 02:12

tan chekban


1 Answers

You certainly need the WAS_ROOT/runtimes/com.ibm.ws.ejb.thinclient_8.0.0.jar in your classpath, where WAS_ROOT is the installation home of your WAS.

like image 155
trikelef Avatar answered Dec 16 '25 23:12

trikelef



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!