2017-02-23 21 views
0

アプリケーションをJBoss AS 4.2からJBoss eap 6.4に移行しています。アプリケーションの配備中に以下の例外が発生する。JBoss eap 6.4のJNDIポート設定

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> 

誰もが我々がどこを行うことができますを教えてくださいすることができEAP 6の同様の構成はstandalone.xmlにソケット結合グループに追加することを試みたが、うまくいきませんでした。

答えて

0
  • jboss.bind.addressの値を確認するには、boot.logを確認してください。
  • のような行があるはずです。 DEBUG [ServerInfo]とjboss.bind.address:JNDIポート上のサーバーに127.0.0.1
  • のTelnetサービスのリスニングがあることを確認する:1.telnet HOSTNAME/IPは、 JNDI_PORT 2.デフォルトではJNDIはポート1099にあります
  • ホストマシンのファイアウォールルールを確認して、トゥイドルが動作するようにポート10099が開かれていることを確認してください。
関連する問題