Hi All,
I have set up the VMware-converter-sdk-5.1.0-1087880 sample Java and run it based on java 1.6, and it keep throwing NoClassFound errors.
1. I have added javaMail.jar to fix the build.bat complains.
2. put rt.jar from JDK1.4.2 to fix the missing class error" sun.security.provider.Sun"
3. Now I hit the new error "com.sun.net.ssl.internal.ssl.Provider "
I am kind of give up for keep adding new jars, Anyone have an idea or hit the similar problem before?
If you have successfully run the Sample java, could you please let me know which version of Java you have used? Thanks very much for your help.
Java -verison: 1.6.0
Axis : 1.4
OS: windows 2003
If the solution will be grab a new rt.jar, could I just copy over the rt.jar instead of upgrade the java ? My other applications somehow need the java to stay in 1.6.0.
Update: add C:\j2sdk1.4.2_08\jre\lib\rt.jar to local classpath, which has the sun class, but show me the new missing class: com.sun.net.ssl.internal.ssl.Provider -_-
Anyone
Error message:
D:\VMware-converter-sdk-5.1.0-1087880\sdk\samples\Axis>java -cp %LOCALCLASSPATH%
SubmitWinP2VJob/Program submitwinp2vjob.properties
Exception in thread "main" java.lang.NoClassDefFoundError: sun.security.provider
.Sun
at java.lang.J9VMInternals.verifyImpl(Native Method)
at java.lang.J9VMInternals.verify(J9VMInternals.java:72)
at java.lang.J9VMInternals.verify(J9VMInternals.java:70)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:134)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
orAccessorImpl.java:41)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
onstructorAccessorImpl.java:39)
at java.lang.reflect.Constructor.newInstance(Constructor.java:515)
at org.apache.commons.discovery.tools.ClassUtils.newInstance(ClassUtils.
java:160)
at org.apache.axis.AxisProperties$1.run(AxisProperties.java:183)
at java.security.AccessController.doPrivileged(AccessController.java:202
)
at org.apache.axis.AxisProperties.newInstance(AxisProperties.java:166)
at org.apache.axis.components.net.SocketFactoryFactory.getFactory(Socket
FactoryFactory.java:75)
at org.apache.axis.transport.http.HTTPSender.getSocket(HTTPSender.java:1
87)
at org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.ja
va:404)
at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:138)
at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrateg
y.java:32)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
at org.apache.axis.client.Call.invoke(Call.java:2767)
at org.apache.axis.client.Call.invoke(Call.java:2443)
at org.apache.axis.client.Call.invoke(Call.java:2366)
at org.apache.axis.client.Call.invoke(Call.java:1812)
at com.vmware.converter.ConverterBindingStub.converterRetrieveServiceCon
tent(ConverterBindingStub.java:32608)
at SubmitWinP2VJob.ConverterConnection.connect(ConverterConnection.java:
70)
at SubmitWinP2VJob.Program.run(Program.java:73)
at SubmitWinP2VJob.Program.main(Program.java:48)
Caused by: java.lang.ClassNotFoundException: sun.security.provider.Sun
at java.lang.Throwable.<init>(Throwable.java:80)
at java.lang.ClassNotFoundException.<init>(ClassNotFoundException.java:7
6)
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:643)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:345)
at java.lang.ClassLoader.loadClass(ClassLoader.java:609)
... 29 more