ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ Java / JMS » java.lang.NoClassDefFoundError javax/net/ssl/HandshakeComple

Post new topic  Reply to topic
 java.lang.NoClassDefFoundError javax/net/ssl/HandshakeComple « View previous topic :: View next topic » 
Author Message
srvm
PostPosted: Thu Aug 26, 2004 7:31 am    Post subject: java.lang.NoClassDefFoundError javax/net/ssl/HandshakeComple Reply with quote

Apprentice

Joined: 18 Aug 2004
Posts: 43

Hi,
I am testing SSL support for MQ Series V5.3 CSD07 (Solaris v 2. and getting following error when I start a sample program.
The Client is running on the same box on which MQ QMgr is running. I am able to create all the certificates and install them I used gsk6smd to do certificate related stuff- so the environment and JVM is all setup correctly.

Here is the exception stack trace -
Exception in thread "main" java.lang.NoClassDefFoundError: javax/net/ssl/HandshakeCompletedListener
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:493)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:111)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:248)
at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286)
at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)
at com.ibm.mq.MQInternalCommunications.createSocketConnection(MQInternalCommunications.java:1355)
at com.ibm.mq.MQInternalCommunications.access$000(MQInternalCommunications.java:114)
at com.ibm.mq.MQInternalCommunications$1.run(MQInternalCommunications.java:498)
at java.security.AccessController.doPrivileged(Native Method)
at com.ibm.mq.MQInternalCommunications.<init>(MQInternalCommunications.java:494)
at com.ibm.mq.MQSESSIONClient.MQCONN(MQSESSIONClient.java:1316)
at com.ibm.mq.MQSESSIONClient.MQCONNX(MQSESSIONClient.java:1388)
at com.ibm.mq.MQSESSIONClient.spiConnect(MQSESSIONClient.java:4333)
at com.ibm.mq.MQManagedConnectionJ11.<init>(MQManagedConnectionJ11.java:211)
at com.ibm.mq.MQClientManagedConnectionFactoryJ11._createManagedConnection(MQClientManagedConnectionFactoryJ11.java:276)
at com.ibm.mq.MQClientManagedConnectionFactoryJ11.createManagedConnection(MQClientManagedConnectionFactoryJ11.java:296)
at com.ibm.mq.StoredManagedConnection.<init>(StoredManagedConnection.java:80)
at com.ibm.mq.MQSimpleConnectionManager.allocateConnection(MQSimpleConnectionManager.java:171)
at com.ibm.mq.MQQueueManager.obtainBaseMQQueueManager(MQQueueManager.java:754)
at com.ibm.mq.MQQueueManager.construct(MQQueueManager.java:688)
at com.ibm.mq.MQQueueManager.<init>(MQQueueManager.java:469)
at com.ibm.mq.MQSPIQueueManager.<init>(MQSPIQueueManager.java:52)
at com.ibm.mq.jms.MQConnection.createQM(MQConnection.java:2200)
at com.ibm.mq.jms.MQConnection.createQMNonXA(MQConnection.java:1701)
at com.ibm.mq.jms.MQQueueConnection.<init>(MQQueueConnection.java:144)
at com.ibm.mq.jms.MQQueueConnection.<init>(MQQueueConnection.java:54)
at com.ibm.mq.jms.MQQueueConnectionFactory.createQueueConnection(MQQueueConnectionFactory.java:106)

Please let me know any ideas/suggestions to correct this problem. Thank you. The java that came with gsk6cmd does not seem to have this class in the jar files. Do I need to point to another JVM ( higher version) ? But, per the doc from IBM i need to use the JAVA_HOME to be /opt/mqm/ssl. Do the /opt/mqm/ssl/lib/ect jar files have to be added to the classpath for this to work ( just guessing???).
Raj
Back to top
View user's profile Send private message Visit poster's website
techno
PostPosted: Mon Sep 06, 2004 11:50 am    Post subject: Reply with quote

Chevalier

Joined: 22 Jan 2003
Posts: 429

Did you set Java Home to mq's ssl dir?

Or, set PATH to jdk1.4's bin. Make sure that you are using jdk1.4
Back to top
View user's profile Send private message
srvm
PostPosted: Tue Sep 07, 2004 7:13 am    Post subject: Reply with quote

Apprentice

Joined: 18 Aug 2004
Posts: 43

As you can see that the JAVA_HOME should be set to /opt/mqm/ssl ( for solaris) - the JDK that comes with it is NOT 1.4. It is 1.3.1_0*.
Raj
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » java.lang.NoClassDefFoundError javax/net/ssl/HandshakeComple
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.