Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Accessing Websphere Datasource through Standalone jav program.  RSS feed

Shrikant Parimi
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I use a datasource created using websphere appication server to conncet to the database( using jndi ). I am able successfully access the datasource when through the websphere application server( version 3.5.5).
I also have a standalone java program that I need to run using the datasource. When ever I run the program, I get the following error
java.lang.NoClassDefFoundError: com/ibm/ejs/sm/beans/RepositoryObjectImpl
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass( Code))
at Code))
at Code))
at$1( Code))
at$ Code))
at Method)
at Code))
at java.lang.ClassLoader.loadClass( Code))
at sun.misc.Launcher$AppClassLoader.loadClass( Code))
at java.lang.ClassLoader.loadClass( Code))
at javax.naming.spi.NamingManager.getObjectInstance(
at javax.naming.InitialContext.lookup(
I have the following jar files in my classpath.
Do any one of you know how to resolve this issue ?. Any help/suggestion will be well appreciated

Thank you,
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!