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
  • 1.  Using java to call a service from Solaris

    Posted Wed January 19, 2011 08:05 AM

    I am certain that this should be straight forward but I am not able to get this to work.

    I have written a small java app based on what is generated in Developer that calls an IS service. I have successfully executed this app from my windows machine without any problems. After moving all the appropriate jars to a Solaris environment that is running the same version of java (1.6.0) and I keep getting the following exception.

    Exception in thread “main” java.lang.NoClassDefFoundError: iaik/x509/X509Certificate
    at com.wm.net.HttpURLConnection.getHttpURLConnection(HttpURLConnection.java:100)
    at com.wm.app.b2b.client.BaseContext.getURLConnection(BaseContext.java:446)
    at com.wm.app.b2b.client.Context.invoke(Context.java:946)
    at com.wm.app.b2b.client.Context.invoke(Context.java:896)
    at com.wm.app.b2b.client.Context.connect(Context.java:537)
    at com.wm.app.b2b.client.Context.connect(Context.java:491)
    at bcx.mdd.idw.AddMilestone.connectToServer(AddMilestone.java:86)
    at bcx.mdd.idw.AddMilestone.main(AddMilestone.java:28)
    Caused by: java.lang.ClassNotFoundException: iaik.x509.X509Certificate
    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)
    … 8 more

    I can’t find what jar the class iaik/x509/X509Certificate is supposed to be in particularly as all the jars that successfully run in windows are present in my execution of the same java class in Solaris.

    Does anyone know what it is that I’m doing wrong?


    #Integration-Server-and-ESB
    #webMethods
    #Flow-and-Java-services


  • 2.  RE: Using java to call a service from Solaris

    Posted Fri August 24, 2012 07:48 AM

    Did you find a solution for this? I’m facing the same problem…

    Best regards


    #Integration-Server-and-ESB
    #Flow-and-Java-services
    #webMethods


  • 3.  RE: Using java to call a service from Solaris

    Posted Thu August 30, 2012 07:51 AM

    My best guess is that your service is making a http call and is making use of certificates, that are installed on windows but not on solaris


    #Flow-and-Java-services
    #Integration-Server-and-ESB
    #webMethods


  • 4.  RE: Using java to call a service from Solaris

    Posted Thu August 30, 2012 08:14 AM

    Adding the enttoolkit.jar solve the problem


    #webMethods
    #Integration-Server-and-ESB
    #Flow-and-Java-services