Kbase 42386: java.lang.NoClassDefFoundError: javax/jms/Destination
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  10/05/1998 |
|
Solution ID: P12386
FACT(s) (Environment):
SonicMQ 4.x
SYMPTOM(s):
java.lang.NoClassDefFoundError: javax/jms/Destination
Servlet cannot execute 'msg.setJMSReplyTo' and publisher.publish
Servlet fails after upgrading from SonicMQ 3.5 to 4.02
CAUSE:
Classpath settings of servlet engine have not been updated
FIX:
The only thing to do to get it working is to recompile the <servlet_name>.java by referencing the SonicMQ 4.02 archives sonic_Client.jar , activation.jar and jndi.jar from within the lib directory SonicMQ 4.0 is located. As well need the settings of the servlet engine to be changed to use the SonicMQ 4.02 archives sonic_Client.jar , activation.jar and jndi.jar in it's classpath
instead of client.jar and jndi.jar from SonicMQ version 3.5. A change of the code it's self if having used the JMS neutral interfaces is not necessary.