Exception loading class: com.ibm.mq.MQQueueManager Exception: java.lang.NoClassDefFoundError:
 Technote (FAQ)
 
Problem
Problems connecting to WebSphere MQ® from WebSphere® Application Server for z/OS® V4.0.1 in J2EE. The connection works using the Local Redirector Plug-in but you cannot connect to MQ using WebSphere® Application Server J2EE application.
 
Cause
Connection management is not enabled in the System Management End User Interface (SMEUI)

Error received ClassLoadingServlet doPost
Exception loading class: com.ibm.mq.MQQueueManager Exception:
java.lang.NoClassDefFoundError:
javax/resource/ResourceException.java.lang.NoClassDefFoundError:
javax/resource/ResourceException..at java.lang.Class.forName1(Native
Method)

 
Solution
Enable Connection Management in the SMEUI. The reason you must enable WebSphere Connection Management to use WebSphere MQ from WebSphere Application Server V4 is because of the enforcement of classloader restrictions. This provides a J2EE™-1.2 compliant environment.


The class,javax/resource/ResourceException is defined in the Java™ Connector Architecture (JCA) specification which is not a part of J2EE-1.2.


To make all the necessary resources available to WebSphere Application Server, MQ and JMS programs, you must also code the following jar files on your classpath statement:

  1. com.ibm.mq.jar
  2. com.ibm.mqims.jar
  3. connector.jar
  4. jms.jar
  5. jndi.jar
  6. jta.jar
  7. providerutil.jar
  8. fscontext.jar
  9. ldap.jar

To review the Post Installation setup section of the WebSphere MQ Using Java manual, click:
http://www.ibm.com/software/integration/mqfamily/library/manualsa/manuals/crosslatest.html

To see WebSphere Application Server documentation in the Assembling J2EE Applications in Chapter 4 under Connectors, click: ftp://ftp.software.ibm.com/software/webserver/appserv/zos_os390/v401/bosc1mst.pdf

 
 
 


Document Information


Product categories: Software > Application Servers > Distributed Application & Web Servers > WebSphere Application Server for z/OS > DB Connections/Connection Pooling
Operating system(s): OS/390
Software version: 4.0.1
Software edition:
Reference #: 1174593
IBM Group: Software Group
Modified date: Mar 27, 2006