Posted: Fri Aug 09, 2002 6:54 am Post subject: Issue with classloader and the mqjbnd04.dll
Newbie
Joined: 17 Jul 2002 Posts: 5
I have MQ/Webpshere running together locally for development (via my app developer). I am not using JMS (have not set it up yet) but am running with the com.ibm.mq.* classes imported and getting mgrs, queues, messages, etc just fine... BUT when ever I make a change to the code I have to restart the server otherwise I get this error:
[02.08.09 10:06:38:818 CDT] 4cc7aba4 WebGroup X Servlet Error: Native Library C:\Program Files\MQSeries\Java\lib\mqjbnd04.dll already loaded in another classloader: java.lang.UnsatisfiedLinkError: Native Library C:\Program Files\MQSeries\Java\lib\mqjbnd04.dll already loaded in another classloader
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1434)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1358)
at java.lang.Runtime.loadLibrary0(Runtime.java:766)
at java.lang.System.loadLibrary(System.java:849)
at com.ibm.mq.server.MQSESSION$1.run(MQSESSION.java:179)
at java.security.AccessController.doPrivileged(Native Method)
at com.ibm.mq.server.MQSESSION.<clinit>(MQSESSION.java:175)
at com.ibm.mq.MQSESSIONServer.getMQSESSION(MQSESSIONServer.java:67)
at com.ibm.mq.MQSESSION.getSession(MQSESSION.java:329)
at com.ibm.mq.MQManagedConnectionJ11.<init>(MQManagedConnectionJ11.java:149)
at com.ibm.mq.MQBindingsManagedConnectionFactoryJ11._createManagedConnection(MQBindingsManagedConnectionFactoryJ11.java:139)
at com.ibm.mq.MQBindingsManagedConnectionFactoryJ11.createManagedConnection(MQBindingsManagedConnectionFactoryJ11.java:157)
at com.ibm.mq.StoredManagedConnection.<init>(StoredManagedConnection.java:80)
at com.ibm.mq.MQSimpleConnectionManager.allocateConnection(MQSimpleConnectionManager.java:150)
at com.ibm.mq.MQQueueManager.obtainBaseMQQueueManager(MQQueueManager.java:666)
at com.ibm.mq.MQQueueManager.construct(MQQueueManager.java:615)
at com.ibm.mq.MQQueueManager.<init>(MQQueueManager.java:392)
at graco.mqseries.beans.connect.MsgInBean.sendMsg(MsgInBean.java:60)
at graco.mqseries.beans.claims.NetPricingBean.sendMsg(NetPricingBean.java:470)
at graco.mqseries.beans.claims.NetPricingBean.doPriceRequest(NetPricingBean.java:507)
at graco.sql.servlets.claims.ProcessRepairParts.performTask(ProcessRepairParts.java:100)
at graco.sql.servlets.claims.ProcessRepairParts.doPost(ProcessRepairParts.java:21)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.ibm.servlet.engine.webapp.StrictServletInstance.doService(ServletManager.java:827)
at com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(StrictLifecycleServlet.java:159)
at com.ibm.servlet.engine.webapp.IdleServletState.service(StrictLifecycleServlet.java:286)
at com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(StrictLifecycleServlet.java:106)
at com.ibm.servlet.engine.webapp.ServletInstance.service(ServletManager.java:472)
at com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch(ServletManager.java:1012)
at com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch(ServletManager.java:913)
at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:499)
at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:278)
at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:105)
at com.ibm.servlet.engine.srt.WebAppInvoker.doForward(WebAppInvoker.java:67)
at com.ibm.servlet.engine.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:123)
at com.ibm.servlet.engine.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:67)
at com.ibm.servlet.engine.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:122)
at com.ibm.servlet.engine.oselistener.OSEListenerDispatcher.service(OSEListener.java:315)
at com.ibm.servlet.engine.http11.HttpConnection.handleRequest(HttpConnection.java:60)
at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:313)
at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:242)
at com.ibm.ws.util.CachedThread.run(ThreadPool.java:122)
I was wondering if this error is normal and if there is really nothing I can do except restart my server everytime I make a code change or is there something I am doing wrong to cause it? Also - would setting up JMS and using code that calls JMS prevent me from having to restart everytime there is a code change? It's really tedious to develop when I have to restart everytime.
If JMS is the way to go - anyone have a link to some instructions on setting up JMS for the single server version of WAS for use via the WAS application developer?
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum