[jboss-user] [JNDI/Naming/Network] - Re: javax.naming.CommunicationException
tnine
do-not-reply at jboss.com
Tue Aug 7 18:15:13 EDT 2007
I'm also experiencing this. I'm using JBoss 4.0.5, and trying to look up a remote JMS Queue. I can start the server on my localhost, and use the following properties.
| java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
| java.naming.factory.url.pkgs= org.jboss.naming:org.jnp.interfaces
| java.naming.provider.url=jnp://localhost:1100
|
It works like a champ. I then copied the same JBoss installation over the Linux server, and changed my JDBC connection for the MQ data source. The server initializes so the data source is correct. When I change my properties to the following, everything fails. I've included my stack trace. I know the port is available, if I telnet using "telnet testjboss1 1100", I can connect to the socket and I get data in my window from JBoss.
| java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
| java.naming.factory.url.pkgs= org.jboss.naming:org.jnp.interfaces
| java.naming.provider.url=jnp://testjboss1:1100
|
Stacktrace
| org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'inputReader' defined in class path resource [reader-context.xml]: Cannot resolve reference to bean 'inputReaderTarget' while setting bean property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'inputReaderTarget' defined in class path resource [reader-context.xml]: Cannot resolve reference to bean 'dataHandler' while setting bean property 'dataHandler'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataHandler' defined in class path resource [reader-context.xml]: Cannot resolve reference to bean 'inputJmsTemplate' while setting bean property 'template'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'inputJmsTemplate' defined in class path resource [reader-context.xml]: Cannot resolve reference to bean 'inputQueueConnectionFactory' while setting bean property 'connectionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'inputQueueConnectionFactory' defined in class path resource [reader-context.xml]: Cannot resolve reference to bean 'remoteJMSQueue' while setting bean property 'targetConnectionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'remoteJMSQueue' defined in class path resource [reader-context.xml]: Invocation of init method failed; nested exception is javax.naming.CommunicationException [Root exception is java.rmi.RemoteException: Service unavailable.]
| Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'inputReaderTarget' defined in class path resource [reader-context.xml]: Cannot resolve reference to bean 'dataHandler' while setting bean property 'dataHandler'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataHandler' defined in class path resource [reader-context.xml]: Cannot resolve reference to bean 'inputJmsTemplate' while setting bean property 'template'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'inputJmsTemplate' defined in class path resource [reader-context.xml]: Cannot resolve reference to bean 'inputQueueConnectionFactory' while setting bean property 'connectionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'inputQueueConnectionFactory' defined in class path resource [reader-context.xml]: Cannot resolve reference to bean 'remoteJMSQueue' while setting bean property 'targetConnectionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'remoteJMSQueue' defined in class path resource [reader-context.xml]: Invocation of init method failed; nested exception is javax.naming.CommunicationException [Root exception is java.rmi.RemoteException: Service unavailable.]
| Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataHandler' defined in class path resource [reader-context.xml]: Cannot resolve reference to bean 'inputJmsTemplate' while setting bean property 'template'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'inputJmsTemplate' defined in class path resource [reader-context.xml]: Cannot resolve reference to bean 'inputQueueConnectionFactory' while setting bean property 'connectionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'inputQueueConnectionFactory' defined in class path resource [reader-context.xml]: Cannot resolve reference to bean 'remoteJMSQueue' while setting bean property 'targetConnectionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'remoteJMSQueue' defined in class path resource [reader-context.xml]: Invocation of init method failed; nested exception is javax.naming.CommunicationException [Root exception is java.rmi.RemoteException: Service unavailable.]
| Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'inputJmsTemplate' defined in class path resource [reader-context.xml]: Cannot resolve reference to bean 'inputQueueConnectionFactory' while setting bean property 'connectionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'inputQueueConnectionFactory' defined in class path resource [reader-context.xml]: Cannot resolve reference to bean 'remoteJMSQueue' while setting bean property 'targetConnectionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'remoteJMSQueue' defined in class path resource [reader-context.xml]: Invocation of init method failed; nested exception is javax.naming.CommunicationException [Root exception is java.rmi.RemoteException: Service unavailable.]
| Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'inputQueueConnectionFactory' defined in class path resource [reader-context.xml]: Cannot resolve reference to bean 'remoteJMSQueue' while setting bean property 'targetConnectionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'remoteJMSQueue' defined in class path resource [reader-context.xml]: Invocation of init method failed; nested exception is javax.naming.CommunicationException [Root exception is java.rmi.RemoteException: Service unavailable.]
| Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'remoteJMSQueue' defined in class path resource [reader-context.xml]: Invocation of init method failed; nested exception is javax.naming.CommunicationException [Root exception is java.rmi.RemoteException: Service unavailable.]
| Caused by: javax.naming.CommunicationException [Root exception is java.rmi.RemoteException: Service unavailable.]
| at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:707)
| at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:572)
| at javax.naming.InitialContext.lookup(InitialContext.java:351)
| at org.springframework.jndi.JndiTemplate$1.doInContext(JndiTemplate.java:123)
| at org.springframework.jndi.JndiTemplate.execute(JndiTemplate.java:85)
| at org.springframework.jndi.JndiTemplate.lookup(JndiTemplate.java:121)
| at org.springframework.jndi.JndiTemplate.lookup(JndiTemplate.java:146)
| at org.springframework.jndi.JndiLocatorSupport.lookup(JndiLocatorSupport.java:93)
| at org.springframework.jndi.JndiObjectLocator.lookup(JndiObjectLocator.java:105)
| at org.springframework.jndi.JndiObjectTargetSource.afterPropertiesSet(JndiObjectTargetSource.java:96)
| at org.springframework.jndi.JndiObjectFactoryBean$JndiObjectProxyFactory.createJndiObjectProxy(JndiObjectFactoryBean.java:276)
| at org.springframework.jndi.JndiObjectFactoryBean$JndiObjectProxyFactory.access$000(JndiObjectFactoryBean.java:265)
| at org.springframework.jndi.JndiObjectFactoryBean.afterPropertiesSet(JndiObjectFactoryBean.java:173)
| at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1202)
| at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1172)
| at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:428)
| at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251)
| at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:156)
| at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248)
| at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)
| at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:261)
| at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:109)
| at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1100)
| at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:862)
| at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:424)
| at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251)
| at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:156)
| at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248)
| at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)
| at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:261)
| at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:109)
| at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1100)
| at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:862)
| at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:424)
| at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251)
| at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:156)
| at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248)
| at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)
| at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:261)
| at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:109)
| at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1100)
| at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:862)
| at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:424)
| at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251)
| at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:156)
| at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248)
| at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)
| at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:261)
| at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:109)
| at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1100)
| at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:862)
| at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:424)
| at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251)
| at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:156)
| at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248)
| at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)
| at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:261)
| at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:109)
| at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1100)
| at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:862)
| at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:424)
| at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251)
| at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:156)
| at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248)
| at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)
| at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:284)
| at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:352)
| at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:91)
| at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:75)
| at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:65)
| at com.purdueefcu.statements.reader.Reader.readFile(Reader.java:50)
| at com.purdueefcu.statements.reader.Reader.main(Reader.java:107)
| Caused by: java.rmi.RemoteException: Service unavailable.
| at org.jboss.ha.framework.interfaces.HARMIClient.invokeRemote(HARMIClient.java:158)
| at org.jboss.ha.framework.interfaces.HARMIClient.invoke(HARMIClient.java:196)
| at $Proxy20.lookup(Unknown Source)
| at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:610)
| ... 71 more
|
|
|
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4071771#4071771
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4071771
More information about the jboss-user
mailing list