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?