JBoss eap 6.4的JNDI端口配置

JBoss eap 6.4的JNDI端口配置,jboss,jndi,communicationexception,Jboss,Jndi,Communicationexception,我们正在将一个应用程序从JBossAS4.2迁移到JBossEAP6.4。部署应用程序时,出现以下异常 javax.naming.CommunicationException: Could not obtain connection to any of these urls: localhost:10099 and discovery failed with error: javax.naming.CommunicationException: Receive timed out [Root e

我们正在将一个应用程序从JBossAS4.2迁移到JBossEAP6.4。部署应用程序时,出现以下异常

javax.naming.CommunicationException: Could not obtain connection to any of these urls: localhost:10099 and discovery failed with error: javax.naming.CommunicationException: Receive timed out [Root exception is java.net.SocketTimeoutException: Receive timed out] [Root exception is javax.naming.CommunicationException: Failed to connect to server localhost:10099 [Root exception is javax.naming.ServiceUnavailableException: Failed to connect to server localhost:10099 [Root exception is java.net.ConnectException: Connection refused: connect]]]
    at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1562)
    at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:634)
    at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:627)
    at javax.naming.InitialContext.lookup(InitialContext.java:411)
与localhost:10099的连接失败。当我签入AS 4.2的jboss-service.xml文件时,这个端口的配置就出现了

 <mbean code="org.jboss.naming.NamingService"
      name="jboss:service=Naming"
      xmbean-dd="resource:xmdesc/NamingService-xmbean.xml">
      <!-- The call by value mode. true if all lookups are unmarshalled using
         the caller's TCL, false if in VM lookups return the value by reference.
      -->
      <attribute name="CallByValue">false</attribute>
      <!-- The listening port for the bootstrap JNP service. Set this to -1
         to run the NamingService without the JNP invoker listening port.
      -->
      <attribute name="Port">10099</attribute>

假的
10099
有人能告诉我在EAP 6中在哪里可以进行类似的配置吗。尝试在standalone.xml中添加套接字绑定组,但未成功。

  • 检查boot.log以查看jboss.bind.address的值
  • 应该有一行类似于: 调试[ServerInfo]jboss.bind.address:127.0.0.1
  • Telnet连接到JNDI端口上的服务器,以确认有服务正在侦听:1.Telnet主机名/IP JNDI_端口2。默认情况下,JNDI位于端口1099上
  • 检查主机上的防火墙规则,确保端口10099已打开,以便twiddle正常工作