Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MQ Java error connecting in binding mode

Status
Not open for further replies.

anujpant2008

Programmer
Apr 29, 2008
1
I am using Windows Server 2003 SP2 Installed on C:\windows, Documentum 5.3 SP4 with JRE 1.4 D:\Program Files\Documentum and IBM MQ v6.0 90 day trial version Installed in D:\Program Files\IBM\

My environment variables are as follows
CLASSPATH
D:\Program Files\Documentum\dctm.jar;D:\Documentum\config;D:\Documentum\product\5.3\dctm-server.jar;D:\Program Files\Documentum\java\1.4.2_11\lib\tools.jar;D:\Program Files\Documentum\java\1.4.2_11\lib;D:\Program Files\IBM\WebSphere MQ\Tools\Java\base;D:\Program Files\IBM\WebSphere MQ\java\lib\com.ibm.mq.jar;D:\Program Files\IBM\WebSphere MQ\java\lib\com.mqjms.jar;D:\Program Files\IBM\WebSphere MQ\java\lib\connector.jar;D:\Program Files\IBM\WebSphere MQ\java\lib\jta.jar;D:\Program Files\IBM\WebSphere MQ\java\lib\jms.jar;D:\Program Files\IBM\WebSphere MQ\java\lib\providerutil.jar;D:\Program Files\IBM\WebSphere MQ\java\lib\fscontext.jar;D:\Program Files\IBM\WebSphere MQ\java\lib\commonservices.jar;D:\Program Files\IBM\WebSphere MQ\java\lib\rmm.jar;D:\Program Files\IBM\WebSphere MQ\Java\lib;

DM_HOME
D:\Documentum\product\5.3

DOCUMENTUM
D:\Documentum

JAVA_HOME
D:\Program Files\Documentum\java\1.4.2_11;

Lib
D:\Program Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\Lib\;

MQ_ JAVA _DATA_PATH
D:\Program Files\IBM\WebSphere MQ

MQ_JAVA_INSTALL_PATH
D:\Program Files\IBM\WebSphere MQ\Java

MQ_JAVA_LIB_PATH
D:\Program Files\IBM\WebSphere MQ\Java\lib

PATH
D:\Program Files\Documentum\Shared;D:\Documentum\product\5.3\bin;D:\Documentum\fulltext\fast40;C:\Program Files\Java\j2re1.4.2_06\bin;D:\Program Files\Documentum\java\1.4.2_11\bin;D:\Program Files\Documentum\java\1.4.2_11\jre\bin;D:\oracle\product\10.2.0\db_1\bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;D:\Documentum\product\5.3\fusion;D:\Program Files\IBM\WebSphere MQ\Java\lib;D:\Program Files\IBM\WebSphere MQ\bin;

PATHEXT
.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.DLL
(I added a DLL to this pathext)

All the sample programs including MQIVP sample run fine.

I wrote a simple code to open and put a message in Queue which ran fine from both command line and eclipse (after including com.ibm.mq.jar and other lib in the build path)

However, in DOCUMENTUM, in a simple component that I have coded, when I try to open a queue manager or do any other MQ specific operation, I get the following error

invokeMethod() failed while calling: FireMLI
no mqjbnd05 in java.library.path : no mqjbnd05 in java.library.path
no mqjbnd05 in java.library.path
Stack Trace:
java.lang.UnsatisfiedLinkError: no mqjbnd05 in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1517)
at java.lang.Runtime.loadLibrary0(Runtime.java:788)
at java.lang.System.loadLibrary(System.java:834)
at com.ibm.mq.MQSESSION.loadLib(MQSESSION.java:872)
at com.ibm.mq.server.MQSESSION$1.run(MQSESSION.java:228)
at java.security.AccessController.doPrivileged(Native Method)
at com.ibm.mq.server.MQSESSION.<clinit>(MQSESSION.java:222)
at com.ibm.mq.MQSESSIONServer.getMQSESSION(MQSESSIONServer.java:70)
at com.ibm.mq.MQSESSION.getSession(MQSESSION.java:492)
at com.ibm.mq.MQManagedConnectionJ11.<init>(MQManagedConnectionJ11.java:168)
at com.ibm.mq.MQBindingsManagedConnectionFactoryJ11._createManagedConnection(MQBindingsManagedConnectionFactoryJ11.java:179)
at com.ibm.mq.MQBindingsManagedConnectionFactoryJ11.createManagedConnection(MQBindingsManagedConnectionFactoryJ11.java:215)
at com.ibm.mq.StoredManagedConnection.<init>(StoredManagedConnection.java:84)
at com.ibm.mq.MQSimpleConnectionManager.allocateConnection(MQSimpleConnectionManager.java:168)
at com.ibm.mq.MQQueueManagerFactory.obtainBaseMQQueueManager(MQQueueManagerFactory.java:772)
at com.ibm.mq.MQQueueManagerFactory.procure(MQQueueManagerFactory.java:697)
at com.ibm.mq.MQQueueManagerFactory.constructQueueManager(MQQueueManagerFactory.java:657)
at com.ibm.mq.MQQueueManagerFactory.createQueueManager(MQQueueManagerFactory.java:153)
at com.ibm.mq.MQQueueManager.<init>(MQQueueManager.java:451)
at com.citibank.northstar.components.testmq.testmq.FireMLI(testmq.java:73)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.documentum.web.form.FormProcessor.invokeMethod(FormProcessor.java:1442)
at com.documentum.web.form.FormProcessor.fireActionEvent(FormProcessor.java:1151)
at com.documentum.web.form.RecallOperation.execute(RecallOperation.java:101)
at com.documentum.web.form.FormProcessor.processAction(FormProcessor.java:111)
at com.documentum.web.form.FormAction.processAction(FormAction.java:86)
at com.documentum.web.env.WDKController.doStartRequest(WDKController.java:190)
at com.documentum.web.env.WDKController.processRequest(WDKController.java:91)
at com.documentum.web.env.WDKController.doFilter(WDKController.java:82)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
at java.lang.Thread.run(Thread.java:534)

I have tried copying all the files including the dll files in the WEB_INF\lib folder.

The code for the java class of the component is below.
import java.io.IOException;
import java.util.ArrayList;

import com.documentum.web.common.ArgumentList;
import com.documentum.web.form.Control;
import com.documentum.web.form.control.Text;
import com.documentum.web.formext.component.Component;
import com.ibm.mq.MQException;
import com.ibm.mq.MQMessage;
import com.ibm.mq.MQQueueManager;
import com.citibank.northstar.util.*;

public class testmq extends Component
{
private static final long serialVersionUID = 1L;
public MQMessage putMsg;

public MQMessage getMsg;
private MQQueueManager qMgr;

public void FireMLI(Control ctrl, ArgumentList arg)
{
String strQManager="SGTEST";
try {
qMgr = new MQQueueManager(strQManager);
} catch (MQException e) {}

}

}

I can not open the connection in client mode. I have to open using Binding mode only. Also the same code works ok from command line.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top