We have a serious problem when performing a lookup to a JNDI lookup on a TopicConnectionFactory resource defined as a WASTopicConnectionFactory using MQ Simulator for
JAVA developers. There is a class cast exception from com.ibm.ejs.jms.JMSTopicConnectionFactoryHandle to the
javax.jms.TopicConnectionFactory. However as far as I can tell these 2 items should be compatible. Any pointers?
We have tried all the usual suspects - delete the definitions and redo them.
Cheers in advance,
P
[11/08/04 12:00:59:299 BST] 403d38c7 ExceptionUtil E CNTR0020E: Non-application exception occurred while processing method "modifyCustomer" on bean "BeanId(XstaticEAR#XstaticEJB.jar#CustomerSession, null)". Exception data: java.lang.ClassCastException: com.ibm.ejs.jms.JMSTopicConnectionFactoryHandle
at com.hvb.core.j2ee.util.ServiceLocator.getTopicConnectionFactory(ServiceLocator.java:128)
at com.hvb.xstatic.ejb.session.CustomerSessionBean.initializeForUpdate(CustomerSessionBean.java:337)
at com.hvb.xstatic.ejb.session.CustomerSessionBean.modifyCustomer(CustomerSessionBean.java:193)
at com.hvb.xstatic.ejb.session.EJSRemoteStatelessCustomerSession_0a01ebb9.modifyCustomer(EJSRemoteStatelessCustomerSession_0a01ebb9.java:294)
at com.hvb.xstatic.ejb.session._CustomerSession_Stub.modifyCustomer(_CustomerSession_Stub.java:382)
at com.hvb.xstatic.service.delegate.CustomerDelegate.modifyCustomer(CustomerDelegate.java:78)
at com.hvb.xstatic.web.struts.action.UpdateCustomerAction.execute(UpdateCustomerAction.java:184)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313)
at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:283)
at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:983)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:564)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:200)
at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:119)
at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:276)
at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71)
at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:182)
at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:334)
at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56)
at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:618)
at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:443)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:672)