Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Virgo » JMS: Blueprint and DefaultMessageListener
JMS: Blueprint and DefaultMessageListener [message #1414243] Sat, 30 August 2014 18:41
Patrick Payer is currently offline Patrick PayerFriend
Messages: 4
Registered: August 2014
Junior Member
Hi!

I'm using Gemini Blueprint in Virgo and trying to connect to a JMS Queue on an Oracle Weblogic Server via Springframeworks DefaultMessageListener. But I'm getting "Bootstrap to: 127.0.0.1/127.0.0.1:7001' over: 't3' got an error or timed out".

I'm quite sure the problem lies somewhere in my bean-definitions.
If try to connect to the Queue thru my java implementation using javax.jms.QueueConnection it works perfectly fine.


Bean-definitions:
(had to replace www with ### because of forum restrictions)
<?xml version="1.0" encoding="UTF-8"?>
<blueprint xmlns="http://###.osgi.org/xmlns/blueprint/v1.0.0"
 xmlns:xsi="http://###.w3.org/2001/XMLSchema-instance"
 xsi:schemaLocation="http://###.osgi.org/xmlns/blueprint/v1.0.0 
      http://###.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd">

<bean id="jmsListener" class="at.invaris.observer.input.jmbsspring.JMSSpringListener" />

<bean id="jndiSOA" class="org.springframework.jndi.JndiTemplate">
 <property name="environment">
  <props>
   <prop key="java.naming.factory.initial">weblogic.jndi.WLInitialContextFactory</prop>
   <prop key="java.naming.provider.url">t3://127.0.0.1:7001</prop>
  </props>
 </property>
</bean>

<bean id="jmsQueueConnectionFactory" depends-on="jndiSOA" class="org.springframework.jndi.JndiObjectFactoryBean">
 <property name="jndiTemplate" ref="jndiSOA" />
 <property name="jndiName">
  <value>jms/TestConnectionFactory</value>
 </property>
</bean>

<bean id="receiveDestination" class="org.springframework.jndi.JndiObjectFactoryBean">
 <property name="jndiTemplate" ref="jndiSOA" />
 <property name="jndiName">
   <value>jms/TestJMSQueue</value>
 </property>
</bean>

<bean id="jmsContainer" class="org.springframework.jms.listener.DefaultMessageListenerContainer">
    <property name="concurrentConsumers" value="5" />
    <property name="connectionFactory" ref="jmsQueueConnectionFactory" />
    <property name="destination" ref="receiveDestination" />
    <property name="messageListener" ref="jmsListener" />
</bean>

</blueprint>


Error message:
diTemplate|egion-dm-1|20:18:43|DEBUG|  Looking up JNDI object with name [jms/TestConnectionFactory] 
eanFactory|egion-dm-1|20:19:44|INFO |  Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@76c1b53a: defining beans [jmsListener,jndiSOA,jmsQueueConnectionFactory,receiveDestination,jmsContainer,blueprintBundle,blueprintBundleContext,blueprintContainer,blueprintConverter]; root of factory hierarchy 
.localized|egion-dm-1|20:19:44|ERROR|  Application context creation failure for bundle 'DLA-LOADBALANCER-JMSSPRING' version '1.0.0'. org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'jmsQueueConnectionFactory' defined in OSGi resource[bundleentry://153.fwk994803842/OSGI-INF/blueprint/JMTest_wls.xml|bnd.id=153|bnd.sym=DLA-LOADBALANCER-JMSSPRING]: Invocation of init method failed; nested exception is javax.naming.CommunicationException [Root exception is java.
net.ConnectException: t3://127.0.0.1:7001: Bootstrap to: 127.0.0.1/127.0.0.1:7001' over: 't3' got an error or timed out]
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1420)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
	at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:563)
	at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)
	at org.eclipse.gemini.blueprint.context.support.AbstractDelegatedExecutionApplicationContext.access$1600(AbstractDelegatedExecutionApplicationContext.java:60)
	at org.eclipse.gemini.blueprint.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:325)
	at org.eclipse.gemini.blueprint.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)
	at org.eclipse.gemini.blueprint.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:290)
	at org.eclipse.gemini.blueprint.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:137)
	at org.eclipse.virgo.kernel.agent.dm.ContextPropagatingTaskExecutor$2.run(ContextPropagatingTaskExecutor.java:95)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
	at java.lang.Thread.run(Thread.java:745)
Caused by: javax.naming.CommunicationException: null
	at weblogic.jndi.internal.ExceptionTranslator.toNamingException(ExceptionTranslator.java:40)
	at weblogic.jndi.WLInitialContextFactoryDelegate.toNamingException(WLInitialContextFactoryDelegate.java:792)
	at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java:368)
	at weblogic.jndi.Environment.getContext(Environment.java:315)
	at weblogic.jndi.Environment.getContext(Environment.java:285)
	at weblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialContextFactory.java:117)
	at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:684)
	at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:307)
	at javax.naming.InitialContext.init(InitialContext.java:242)
	at javax.naming.InitialContext.<init>(InitialContext.java:216)
	at org.springframework.jndi.JndiTemplate.createInitialContext(JndiTemplate.java:136)
	at org.springframework.jndi.JndiTemplate.getContext(JndiTemplate.java:103)
	at org.springframework.jndi.JndiTemplate.execute(JndiTemplate.java:85)
	at org.springframework.jndi.JndiTemplate.lookup(JndiTemplate.java:152)
	at org.springframework.jndi.JndiTemplate.lookup(JndiTemplate.java:178)
	at org.springframework.jndi.JndiLocatorSupport.lookup(JndiLocatorSupport.java:95)
	at org.springframework.jndi.JndiObjectLocator.lookup(JndiObjectLocator.java:105)
	at org.springframework.jndi.JndiObjectFactoryBean.lookupWithFallback(JndiObjectFactoryBean.java:201)
	at org.springframework.jndi.JndiObjectFactoryBean.afterPropertiesSet(JndiObjectFactoryBean.java:187)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1477)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1417)
	... 17 common frames omitted
Caused by: java.net.ConnectException: t3://127.0.0.1:7001: Bootstrap to: 127.0.0.1/127.0.0.1:7001' over: 't3' got an error or timed out
	at weblogic.rjvm.RJVMFinder.findOrCreateInternal(RJVMFinder.java:216)
	at weblogic.rjvm.RJVMFinder.findOrCreate(RJVMFinder.java:170)
	at weblogic.rjvm.ServerURL.findOrCreateRJVM(ServerURL.java:165)
	at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java:353)
	... 35 common frames omitted
Caused by: java.rmi.ConnectException: Bootstrap to: 127.0.0.1/127.0.0.1:7001' over: 't3' got an error or timed out
	at weblogic.rjvm.ConnectionManager.bootstrap(ConnectionManager.java:365)
	at weblogic.rjvm.RJVMManager.findOrCreateRemoteInternal(RJVMManager.java:260)
	at weblogic.rjvm.RJVMManager.findOrCreate(RJVMManager.java:197)
	at weblogic.rjvm.RJVMFinder.findOrCreateRemoteServer(RJVMFinder.java:238)
	at weblogic.rjvm.RJVMFinder.findOrCreateInternal(RJVMFinder.java:200)
	... 38 common frames omitted


Any ideas?

Thanks in advance!
Previous Topic:Spring Framework 3.2.10.RELEASE - Bundlor and Eclipse EBR templates for generating OSGi metadata
Next Topic:eclipse and bundlor 'Bundle-Classpath File Detection Criteria'
Goto Forum:
  


Current Time: Thu Sep 20 06:28:06 GMT 2018

Powered by FUDForum. Page generated in 0.01456 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top