schnizlein
15 years agoContributor
[SOLVED]Connecting to Weblogic JMS Endpoint
I'm able to successfully send JMS messages (thanks for the help regarding BytesMessage!) to WebSphere queues, however I'm unable to connect to Weblogic queues.
First I modified the classpath on the 1.14 Hermes installation that SoapUI uses, which, when I opened Hermes (through the SoapUI interface) let me browse queues.
However, I'm still getting errors in SoapUI when I send to a Weblogic Queue:
Wed Mar 17 07:45:55 CDT 2010:ERROR:javax.jms.JMSException: Could not create InitialContext: Cannot instantiate class: weblogic.jndi.WLInitialContextFactory
javax.jms.JMSException: Could not create InitialContext: Cannot instantiate class: weblogic.jndi.WLInitialContextFactory
at com.eviware.soapui.impl.wsdl.submit.transports.jms.JMSConnectionHolder.(JMSConnectionHolder.java:77)
at com.eviware.soapui.impl.wsdl.submit.transports.jms.HermesJmsRequestSendReceiveTransport.execute(HermesJmsRequestSendReceiveTransport.java:36)
at com.eviware.soapui.impl.wsdl.submit.transports.jms.HermesJmsRequestTransport.sendRequest(HermesJmsRequestTransport.java:95)
at com.eviware.soapui.impl.wsdl.WsdlSubmit.run(WsdlSubmit.java:122)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)
I had the bright idea of adding weblogic.jar to the External library folder for SoapUI, which got me this error (on sending):
Wed Mar 17 07:42:12 CDT 2010:ERROR:javax.jms.JMSException: weblogic/kernel/KernelStatus
javax.jms.JMSException: weblogic/kernel/KernelStatus
at com.eviware.soapui.impl.wsdl.submit.transports.jms.JMSConnectionHolder.(JMSConnectionHolder.java:77)
at com.eviware.soapui.impl.wsdl.submit.transports.jms.HermesJmsRequestSendReceiveTransport.execute(HermesJmsRequestSendReceiveTransport.java:36)
at com.eviware.soapui.impl.wsdl.submit.transports.jms.HermesJmsRequestTransport.sendRequest(HermesJmsRequestTransport.java:95)
at com.eviware.soapui.impl.wsdl.WsdlSubmit.run(WsdlSubmit.java:122)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)
Any ideas?
First I modified the classpath on the 1.14 Hermes installation that SoapUI uses, which, when I opened Hermes (through the SoapUI interface) let me browse queues.
However, I'm still getting errors in SoapUI when I send to a Weblogic Queue:
Wed Mar 17 07:45:55 CDT 2010:ERROR:javax.jms.JMSException: Could not create InitialContext: Cannot instantiate class: weblogic.jndi.WLInitialContextFactory
javax.jms.JMSException: Could not create InitialContext: Cannot instantiate class: weblogic.jndi.WLInitialContextFactory
at com.eviware.soapui.impl.wsdl.submit.transports.jms.JMSConnectionHolder.
at com.eviware.soapui.impl.wsdl.submit.transports.jms.HermesJmsRequestSendReceiveTransport.execute(HermesJmsRequestSendReceiveTransport.java:36)
at com.eviware.soapui.impl.wsdl.submit.transports.jms.HermesJmsRequestTransport.sendRequest(HermesJmsRequestTransport.java:95)
at com.eviware.soapui.impl.wsdl.WsdlSubmit.run(WsdlSubmit.java:122)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)
I had the bright idea of adding weblogic.jar to the External library folder for SoapUI, which got me this error (on sending):
Wed Mar 17 07:42:12 CDT 2010:ERROR:javax.jms.JMSException: weblogic/kernel/KernelStatus
javax.jms.JMSException: weblogic/kernel/KernelStatus
at com.eviware.soapui.impl.wsdl.submit.transports.jms.JMSConnectionHolder.
at com.eviware.soapui.impl.wsdl.submit.transports.jms.HermesJmsRequestSendReceiveTransport.execute(HermesJmsRequestSendReceiveTransport.java:36)
at com.eviware.soapui.impl.wsdl.submit.transports.jms.HermesJmsRequestTransport.sendRequest(HermesJmsRequestTransport.java:95)
at com.eviware.soapui.impl.wsdl.WsdlSubmit.run(WsdlSubmit.java:122)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)
Any ideas?