IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.


#TechXchangePresenter
 View Only
Expand all | Collapse all

Error invoking service from java client: java.lang.NoClassDefFoundError: iaik/x509/X509Certificate

  • 1.  Error invoking service from java client: java.lang.NoClassDefFoundError: iaik/x509/X509Certificate

    Posted Fri August 24, 2012 05:14 AM

    Hi,

    I’m trying to invoke a webMethods service from a java client, but I’m getting a java.lang.NoClassDefFoundError.

    I can compile the java code, but I’m not able to run it…

    Exception in thread “main” java.lang.NoClassDefFoundError: iaik/x509/X509Certificate
    at com.wm.net.HttpURLConnection.getHttpURLConnection(HttpURLConnection.java:101)
    at com.wm.app.b2b.client.BaseContext.getURLConnection(BaseContext.java:457)
    at com.wm.app.b2b.client.Context.invoke(Context.java:950)
    at com.wm.app.b2b.client.Context.invoke(Context.java:900)
    at com.wm.app.b2b.client.Context.connect(Context.java:541)
    at Monitoring.main(Monitoring.java:37)
    Caused by: java.lang.ClassNotFoundException: iaik.x509.X509Certificate
    at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
    … 6 more

    Anyone any idea how to solve this?

    Best regards


    #webMethods
    #Integration-Server-and-ESB


  • 2.  RE: Error invoking service from java client: java.lang.NoClassDefFoundError: iaik/x509/X509Certificate

    Posted Fri August 24, 2012 11:07 AM

    Adding the enttoolkit.jar solved the problem in webMethods version 8.2.2


    #Integration-Server-and-ESB
    #webMethods