Troubleshooting: WCBD utility error 'package com.ibm.mq does not exist'
WCBD build process fails if an EJB project has dependencies on IBM MQ.
You might encounter the following error
message:
12:37:13,341 INFO - [javac] /opt/IBM/wcbd/working/compile/global/src/com/performanceinc/util/MQFacade.java:16: error: package com.ibm.mq does not exist
12:37:13,341 INFO - [javac] import com.ibm.mq.MQException;
12:37:13,341 INFO - [javac] ^
12:37:13,341 INFO - [javac] /opt/IBM/wcbd/working/compile/global/src/com/performanceinc/util/MQFacade.java:17: error: package com.ibm.mq does not exist
12:37:13,341 INFO - [javac] import com.ibm.mq.MQGetMessageOptions;
12:37:13,341 INFO - [javac] ^
12:37:13,341 INFO - [javac] /opt/IBM/wcbd/working/compile/global/src/com/performanceinc/util/MQFacade.java:18: error: package com.ibm.mq does not exist
12:37:13,341 INFO - [javac] import com.ibm.mq.MQMessage;
12:37:13,341 INFO - [javac] ^
12:37:13,342 INFO - [javac] /opt/IBM/wcbd/working/compile/global/src/com/performanceinc/util/MQFacade.java:19: error: package com.ibm.mq does not exist
12:37:13,342 INFO - [javac] import com.ibm.mq.MQPutMessageOptions;
12:37:13,342 INFO - [javac] ^
12:37:13,342 INFO - [javac] /opt/IBM/wcbd/working/compile/global/src/com/performanceinc/util/MQFacade.java:20: error: package com.ibm.mq does not exist
12:37:13,342 INFO - [javac] import com.ibm.mq.MQQueue;
Problem
In the WCDE_installdir/wcbd/wcbd-build-shared-classpath.xml file, acompile.class.path
definition points to an IBM MQ RAR file that is included with
the WebSphere Application Server. The WCBD build process cannot access the JAR files that are needed
because the RAR file is double archived.Solution
- Open the WCDE_installdir/wcbd/wcbd-build-shared-classpath.xml file.
- Add the following
pathelement
configuration.- Locate the following
line.
<path id="compile.class.path">
- After this point in the file, add the following
pathelement
if it is not already present.<pathelement path="${was.home}/lib/WMQ/ra/wmq.jmsra.rar" />
- Save and close the file.
- Locate the following
line.
- Rerun the WCBD build process.