AMX Glassfish AppserverConnectionSource

时间:2012-05-11 13:14:13

标签: glassfish-3

我能够通过JMX将Glassfish AS 3.1与以下URL连接起来 服务:JMX:RMI:/// JNDI / RMI://本地主机:8686 / jmxrmi

但是我无法通过AMX连接它。这是我正在使用的API

  

AMX-API-10.0-SNAPSHOT

我在源代码中已经意识到url的定义与下面的不同。它在AppserverConnectionSource.java类中定义

private static final String APPSERVER_JNDI_NAME = "/management/rmi-jmx-connector";

当我尝试连接AS AMX接口时,我收到以下错误。

  

使用JMXServiceURL进行连接:service:jmx:rmi:/// jndi / rmi://127.0.0.1:8686 / management / rmi-jmx-connector   java.io.IOException:无法检索RMIServer存根:javax.naming.NameNotFoundException:management / rmi-jmx-connector       在javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:338)       在javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFactory.java:248)       at com.sun.appserv.management.client.AppserverConnectionSource.createNew(AppserverConnectionSource.java:412)       at com.sun.appserv.management.client.AppserverConnectionSource.getJMXConnector(AppserverConnectionSource.java:481)       at com.sun.appserv.management.client.AppserverConnectionSource.getMBeanServerConnection(AppserverConnectionSource.java:513)       at com.sun.appserv.management.client.ProxyFactory.getInstance(ProxyFactory.java:399)       at com.sun.appserv.management.client.ProxyFactory.getInstance(ProxyFactory.java:373)       at com.sun.appserv.management.client.AppserverConnectionSource.getDomainRoot(AppserverConnectionSource.java:528)

1 个答案:

答案 0 :(得分:0)

我知道的太晚了,但我无法抗拒。我有同样的问题,并重新创建节点实例不起作用。我查看了我的节点日志,发现我丢失了罐子。只需添加那些丢失的jar,我就可以再次使用其节点实例启动集群。