File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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(
at javax.xml.rpc.ServiceFactory.newInstance(
Caused by: java.lang.ClassNotFoundException:
at$ Source)
at Method)
at 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:
subject: java.lang.NoClassDefFoundError: com/ibm/ws/security/util/AccessController
It's not a secret anymore!