I am trying to post a message from OSB to openJMS Queue. I am able to post message to openJMSQueue using Java API.
I have created a Foreign Server and then a foreign connection factory.
I am able to see the connection factory in the JNDI Tree as below.
Binding Name:localConnectionFactory
Class:org.exolab.jms.client.JmsConnectionFactory
Hash Code:18168258
toString Results:org.exolab.jms.client.JmsConnectionFactory@11539c2
I have used the below URL in business service..
jms://localhost:17000/localConnectionFactory/openJMSQueue
But i am getting error as :
<Aug 22, 2012 11:28:19 AM IST> <Warning> <WliSbTransports> <BEA-381508> <Failed to check whether connection factory localConnectionFactory supports XA. Will assume it does not: javax.naming.NoInitialC
ontextException: Cannot instantiate class: org.exolab.jms.jndi.InitialContextFactory [Root exception is java.lang.ClassNotFoundException: org.exolab.jms.jndi.InitialContextFactory]
javax.naming.NoInitialContextException: Cannot instantiate class: org.exolab.jms.jndi.InitialContextFactory [Root exception is java.lang.ClassNotFoundException: org.exolab.jms.jndi.InitialContextFacto
ry]
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:657)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288)
at javax.naming.InitialContext.init(InitialContext.java:223)
at javax.naming.InitialContext.<init>(InitialContext.java:197)
at weblogic.deployment.jms.ForeignOpaqueReference.getReferent(ForeignOpaqueReference.java:190)
Truncated. see log file for complete stacktrace
Caused By: java.lang.ClassNotFoundException: org.exolab.jms.jndi.InitialContextFactory
at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:297)
at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:270)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:179)
Truncated. see log file for complete stacktrace
>
<Aug 22, 2012 11:28:19 AM IST> <Warning> <JMSPool> <BEA-169807> <There was an error while making the initial connection to the JMS resource named ALSB_JMS_SessionPool_1449855884 from within an EJB or
a servlet. The server will attempt the connection again later. The error was javax.jms.JMSException: [JMSPool:169803]JNDI lookup of the JMS connection factory localConnectionFactory failed: javax.nami
ng.NoInitialContextException: Cannot instantiate class: org.exolab.jms.jndi.InitialContextFactory [Root exception is java.lang.ClassNotFoundException: org.exolab.jms.jndi.InitialContextFactory]>
I have placed all the JARS of openJMS in the lib directory. The Jars are :
castor-0.9.5.jar
concurrent-1.3.4.jar
openjms-0.7.7-beta-1.jar
openjms-common-0.7.7-beta-1.jar
openjms-net-0.7.7-beta-1.jar
openjms-tools-0.7.7-beta-1.jar
spice-jndikit-1.2.jar
Any help on this would be much appreciated. My first try on foreign JMS provider connection.
Regards
Sesha