• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

java.lang.NoClassDefFoundError: com/ibm/ws/security/util/AccessController

 
Priyam Srivastava
Ranch Hand
Posts: 169
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am writing my first ever web-service calling code as a stand alone application first and then integrate with my application deployed on Weblogic. The code is something like this:



On running this through my Eclipse editor I am getting below error at this line


SERVICEFACTORY_PROPERTY::javax.xml.rpc.ServiceFactory
Exception in thread "main" java.lang.NoClassDefFoundError: com/ibm/ws/security/util/AccessController
at javax.xml.rpc.FactoryFinder.find(FactoryFinder.java:193)
at javax.xml.rpc.ServiceFactory.newInstance(ServiceFactory.java:120)
at com.xxxx.xxx.services.tools.internal.WebServiceInvoker.processRequest(WebServiceInvoker.java:211)
at com.xxxx.xxx.services.tools.internal.WebServiceInvoker.main(WebServiceInvoker.java:297)
Caused by: java.lang.ClassNotFoundException: com.ibm.ws.security.util.AccessController
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 4 more

What jar is needed for this or what am I missing ?

Thanks for help.
Priyam
 
Priyam Srivastava
Ranch Hand
Posts: 169
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Found the solution. Needed to add bootstrap.jar in my classpath.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic