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:\Pr ogram 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\p roduct\10.2.0\db_1\bin;%SystemRoot%\system32;%Syst emRoot%;%SystemRoot%\System32\Wbem;D:\Documentum\p roduct\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;.D LL

(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:2 28)

at java.security.AccessController.doPrivileged(Native Method)

at com.ibm.mq.server.MQSESSION. (MQSESSION.java:222)

at com.ibm.mq.MQSESSIONServer.getMQSESSION(MQSESSIONS erver.java:70)

at com.ibm.mq.MQSESSION.getSession(MQSESSION.java:492 )

at com.ibm.mq.MQManagedConnectionJ11. (MQManagedConnectionJ11.java:168)

at com.ibm.mq.MQBindingsManagedConnectionFactoryJ11._ createManagedConnection(MQBindingsManagedConnectio nFactoryJ11.java:179)

at com.ibm.mq.MQBindingsManagedConnectionFactoryJ11.c reateManagedConnection(MQBindingsManagedConnection FactoryJ11.java:215)

at com.ibm.mq.StoredManagedConnection. (StoredManagedConnection.java:84)

at com.ibm.mq.MQSimpleConnectionManager.allocateConne ction(MQSimpleConnectionManager.java:168)

at com.ibm.mq.MQQueueManagerFactory.obtainBaseMQQueue Manager(MQQueueManagerFactory.java:772)

at com.ibm.mq.MQQueueManagerFactory.procure(MQQueueMa nagerFactory.java:697)

at com.ibm.mq.MQQueueManagerFactory.constructQueueMan ager(MQQueueManagerFactory.java:657)

at com.ibm.mq.MQQueueManagerFactory.createQueueManage r(MQQueueManagerFactory.java:153)

at com.ibm.mq.MQQueueManager.(MQQueueManager.java:451 )

at com.citibank.northstar.components.testmq.testmq.Fi reMLI(testmq.java:73)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.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.fireActionEv ent(FormProcessor.java:1151)

at com.documentum.web.form.RecallOperation.execute(Re callOperation.java:101)

at com.documentum.web.form.FormProcessor.processActio n(FormProcessor.java:111)

at com.documentum.web.form.FormAction.processAction(F ormAction.java:86)

at com.documentum.web.env.WDKController.doStartReques t(WDKController.java:190)

at com.documentum.web.env.WDKController.processReques t(WDKController.java:91)

at com.documentum.web.env.WDKController.doFilter(WDKC ontroller.java:82)

at org.apache.catalina.core.ApplicationFilterChain.in ternalDoFilter(ApplicationFilterChain.java:186)

at org.apache.catalina.core.ApplicationFilterChain.do Filter(ApplicationFilterChain.java:157)

at org.apache.catalina.core.StandardWrapperValve.invo ke(StandardWrapperValve.java:214)

at org.apache.catalina.core.StandardValveContext.invo keNext(StandardValveContext.java:104)

at org.apache.catalina.core.StandardPipeline.invoke(S tandardPipeline.java:520)

at org.apache.catalina.core.StandardContextValve.invo keInternal(StandardContextValve.java:198)

at org.apache.catalina.core.StandardContextValve.invo ke(StandardContextValve.java:152)

at org.apache.catalina.core.StandardValveContext.invo keNext(StandardValveContext.java:104)

at org.apache.catalina.core.StandardPipeline.invoke(S tandardPipeline.java:520)

at org.apache.catalina.core.StandardHostValve.invoke( StandardHostValve.java:137)

at org.apache.catalina.core.StandardValveContext.invo keNext(StandardValveContext.java:104)

at org.apache.catalina.valves.ErrorReportValve.invoke (ErrorReportValve.java:118)

at org.apache.catalina.core.StandardValveContext.invo keNext(StandardValveContext.java:102)

at org.apache.catalina.core.StandardPipeline.invoke(S tandardPipeline.java:520)

at org.apache.catalina.core.StandardEngineValve.invok e(StandardEngineValve.java:109)

at org.apache.catalina.core.StandardValveContext.invo keNext(StandardValveContext.java:104)

at org.apache.catalina.core.StandardPipeline.invoke(S tandardPipeline.java:520)

at org.apache.catalina.core.ContainerBase.invoke(Cont ainerBase.java:929)

at org.apache.coyote.tomcat5.CoyoteAdapter.service(Co yoteAdapter.java:160)

at org.apache.coyote.http11.Http11Processor.process(H ttp11Processor.java:799)

at org.apache.coyote.http11.Http11Protocol$Http11Conn ectionHandler.processConnection(Http11Protocol.jav a:705)

at org.apache.tomcat.util.net.TcpWorkerThread.runIt(P oolTcpEndpoint.java:577)

at org.apache.tomcat.util.threads.ThreadPool$ControlR unnable.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.