Using java to call a service from Solaris

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?

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

Best regards

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

Adding the enttoolkit.jar solve the problem