jQuery in Action, 3rd edition
The moose likes Web Services and the fly likes java.lang.NoClassDefFoundError: com/ibm/ws/security/util/AccessController Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "java.lang.NoClassDefFoundError: com/ibm/ws/security/util/AccessController" Watch "java.lang.NoClassDefFoundError: com/ibm/ws/security/util/AccessController" New topic

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

Priyam Srivastava
Ranch Hand

Joined: Oct 29, 2006
Posts: 169
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

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.

"History would be kind to me, for I intend to write it."
Priyam Srivastava
Ranch Hand

Joined: Oct 29, 2006
Posts: 169
Found the solution. Needed to add bootstrap.jar in my classpath.
I agree. Here's the link: http://aspose.com/file-tools
subject: java.lang.NoClassDefFoundError: com/ibm/ws/security/util/AccessController
It's not a secret anymore!