aspose file tools*
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


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
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
Author

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


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


"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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: java.lang.NoClassDefFoundError: com/ibm/ws/security/util/AccessController