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 Software Craftsman this week in the Agile 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

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