JMS Cluster deployment problem java.net.ConnectException:Connection refused; No available Router to destination

Source: Internet
Author: User

1: The local spring configuration is as follows

<!--jnditemplate -      <BeanID= "Jnditpl"class= "Org.springframework.jndi.JndiTemplate">          < Propertyname= "Environment">              <Props>                  <propKey= "Java.naming.factory.initial">Weblogic.jndi.WLInitialContextFactory</prop>                  <propKey= "Java.naming.provider.url">t3://localhost:9401</prop>            </Props>          </ Property>      </Bean> 

There is no problem with the local server test, deploy to the cluster server, and report the following error:

[Root exception is java.net.ConnectException:t3://localhost:9401:destination unreachable; Nested exception is:Java.net.ConnectException:Connection refused; No available router to destination] at Org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolv Ereference (Beandefinitionvalueresolver.java:359) at Org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary ( Beandefinitionvalueresolver.java:108) at Org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues ( Abstractautowirecapablebeanfactory.java:1481) at Org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean ( Abstractautowirecapablebeanfactory.java:1226) at Org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean ( Abstractautowirecapablebeanfactory.java:543) at Org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean ( Abstractautowirecapablebeanfactory.java:482) at org.springframework.beans.factory.support.abstractbeanfactory$1. GetObject (Abstractbeanfactory.java:305) at Org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton ( Defaultsingletonbeanregistry.java: the) at Org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean (Abstractbeanfactory.java:301) at Org.springframework.beans.factory.support.AbstractBeanFactory.getBean (Abstractbeanfactory.java:196) at Org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons ( Defaultlistablebeanfactory.java:772) at Org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization ( Abstractapplicationcontext.java:835) at Org.springframework.context.support.AbstractApplicationContext.refresh (Abstractapplicationcontext.java: 537) at Org.springframework.web.servlet.FrameworkServlet.configureAndRefreshWebApplicationContext ( Frameworkservlet.java:668) at Org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext (Frameworkservlet.java: 633) at Org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext (Frameworkservlet.java: 681) at Org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext (Frameworkservlet.java:552) at Org.springframework.web.servlet.FrameworkServlet.initServletBean (Frameworkservlet.java:493) at Org.springframework.web.servlet.HttpServletBean.init (Httpservletbean.java:138) at Javax.servlet.GenericServlet.init (Genericservlet.java:242) at Weblogic.servlet.internal.stubsecurityhelper$servletinitaction.run (Stubsecurityhelper.java:283) at Weblogic.security.acl.internal.AuthenticatedSubject.doAs (Authenticatedsubject.java:321) at Weblogic.security.service.SecurityManager.runAs (Securitymanager.java: -) at Weblogic.servlet.internal.StubSecurityHelper.createServlet (Stubsecurityhelper.java: -) at Weblogic.servlet.internal.StubLifecycleHelper.createOneInstance (Stublifecyclehelper.java: -) at Weblogic.servlet.internal.StubLifecycleHelper.<init> (Stublifecyclehelper.java: -) at Weblogic.servlet.internal.ServletStubImpl.prepareServlet (Servletstubimpl.java:539)

The cluster has altogether two servers:

csserver1:192.168.0.140:9401

csserver2:192.168.0.111:9401

cscluster:192.168.0.140:9401 (view config file configuration)

The problem is on the following configuration:

<key= "Java.naming.provider.url">t3://localhost:9401</  prop>

Change him to the address of the Cluster service:

t3://192.168.0.140:9401

JMS Cluster deployment problem java.net.ConnectException:Connection refused; No available Router to destination

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.