Kedar,
This code is unmodified from your original. :)
JMXService URL is: service:jmx:rmi:///jndi/rmi://192.168.1.8:8686/
management/rmi-jmx-connector
Yes, I think the RMIRegistry has started, since that is done by
prepare(), which creates RmiStubRegistryHandler.
The failure occurs from cs.start():
public JMXConnectorServer startConnectorServer() throws
IOException {
//using the jndi form everywhere as stub-form is not usable.
prepare();
formJmxServiceUrl();
createEnvironment();
final JMXConnectorServer cs =
JMXConnectorServerFactory.newJMXConnectorServer(url, env,
mbs);
cs.start(); <==============================
logStartup(cs);
return ( cs );
}
Lloyd
On Jul 24, 2008, at 6:05 PM, Kedar Mhaswade wrote:
> Can't tell off hand.
>
> What is the JMXServiceURL?
> Has the RMIRegistry come up?
>
>
>
> Lloyd Chambers wrote:
>> Does ANYONE know what might be causing this?
>> On Jul 24, 2008, at 5:48 PM, Lloyd Chambers wrote:
>>> Kedar,
>>>
>>> I'm trying to bring up the RMI JMX connector server.
>>> Does anyone understand the "InvalidNameException: Cannot create
>>> empty subcontext" thing?
>>>
>>> Lloyd
>>>
>>> INFO: ### JmxConnector: system, Protocol = rmi_jrmp, Address =
>>> 0.0.0.0, Port = 8686, AcceptAll = false, AuthRealmName = admin-
>>> realm, SecurityEnabled = false
>>> Jul 24, 2008 5:45:52 PM SEVERE: java.io.IOException: Cannot bind
>>> to URL [rmi://192.168.1.8:8686/management/rmi-jmx-connector]:
>>> javax.naming.InvalidNameException: Cannot create empty subcontext
>>> Jul 24, 2008 5:45:52 PM SEVERE: at
>>> javax
>>> .management
>>> .remote
>>> .rmi.RMIConnectorServer.newIOException(RMIConnectorServer.java:814)
>>> Jul 24, 2008 5:45:52 PM SEVERE: at
>>> javax
>>> .management
>>> .remote.rmi.RMIConnectorServer.start(RMIConnectorServer.java:431)
>>> Jul 24, 2008 5:45:52 PM SEVERE: at
>>> org
>>> .glassfish
>>> .admin
>>> .jmxremote
>>> .rmi
>>> .JmxConnectorServerDriver
>>> .startConnectorServer(JmxConnectorServerDriver.java:191)
>>> Jul 24, 2008 5:45:52 PM SEVERE: at
>>> org
>>> .glassfish
>>> .admin
>>> .mbeanserver
>>> .ConnectorStartupService
>>> .startConnector(ConnectorStartupService.java:122)
>>> Jul 24, 2008 5:45:52 PM SEVERE: at
>>> org
>>> .glassfish
>>> .admin
>>> .mbeanserver
>>> .ConnectorStartupService
>>> .postConstruct(ConnectorStartupService.java:144)
>>> Jul 24, 2008 5:45:52 PM SEVERE: at
>>> com
>>> .sun.hk2.component.AbstractWombImpl.inject(AbstractWombImpl.java:
>>> 150)
>>> Jul 24, 2008 5:45:52 PM SEVERE: at
>>> com
>>> .sun.hk2.component.ConstructorWomb.initialize(ConstructorWomb.java:
>>> 86)
>>> Jul 24, 2008 5:45:52 PM SEVERE: at
>>> com.sun.hk2.component.AbstractWombImpl.get(AbstractWombImpl.java:75)
>>> Jul 24, 2008 5:45:52 PM SEVERE: at
>>> com
>>> .sun
>>> .hk2.component.SingletonInhabitant.get(SingletonInhabitant.java:58)
>>> Jul 24, 2008 5:45:52 PM SEVERE: at
>>> com.sun.hk2.component.LazyInhabitant.get(LazyInhabitant.java:107)
>>> Jul 24, 2008 5:45:52 PM SEVERE: at
>>> com
>>> .sun
>>> .hk2
>>> .component.AbstractInhabitantImpl.get(AbstractInhabitantImpl.java:
>>> 60)
>>> Jul 24, 2008 5:45:52 PM SEVERE: at
>>> com.sun.enterprise.v3.server.AppServerStartup
>>> $1.run(AppServerStartup.java:118)
>>> Jul 24, 2008 5:45:52 PM SEVERE: at java.util.concurrent.Executors
>>> $RunnableAdapter.call(Executors.java:417)
>>> Jul 24, 2008 5:45:52 PM SEVERE: at java.util.concurrent.FutureTask
>>> $Sync.innerRun(FutureTask.java:269)
>>> Jul 24, 2008 5:45:52 PM SEVERE: at
>>> java.util.concurrent.FutureTask.run(FutureTask.java:123)
>>> Jul 24, 2008 5:45:52 PM SEVERE: at
>>> java.util.concurrent.ThreadPoolExecutor
>>> $Worker.runTask(ThreadPoolExecutor.java:650)
>>> Jul 24, 2008 5:45:52 PM SEVERE: at
>>> java.util.concurrent.ThreadPoolExecutor
>>> $Worker.run(ThreadPoolExecutor.java:675)
>>> Jul 24, 2008 5:45:52 PM SEVERE: at
>>> java.lang.Thread.run(Thread.java:613)
>>> Jul 24, 2008 5:45:52 PM SEVERE: Caused by:
>>> javax.naming.InvalidNameException: Cannot create empty subcontext
>>> Jul 24, 2008 5:45:52 PM SEVERE: at
>>> com
>>> .sun
>>> .enterprise
>>> .naming
>>> .impl
>>> .TransientContext
>>> .drillDownAndCreateSubcontext(TransientContext.java:103)
>>> Jul 24, 2008 5:45:52 PM SEVERE: at
>>> com
>>> .sun
>>> .enterprise
>>> .naming
>>> .impl.TransientContext.createSubcontext(TransientContext.java:59)
>>> Jul 24, 2008 5:45:52 PM SEVERE: at
>>> com
>>> .sun
>>> .enterprise
>>> .naming.impl.TransientContext.bind(TransientContext.java:224)
>>> Jul 24, 2008 5:45:52 PM SEVERE: at
>>> com
>>> .sun
>>> .enterprise
>>> .naming.impl.TransientContext.bind(TransientContext.java:226)
>>> Jul 24, 2008 5:45:52 PM SEVERE: at
>>> com
>>> .sun
>>> .enterprise
>>> .naming
>>> .impl
>>> .SerialContextProviderImpl.bind(SerialContextProviderImpl.java:98)
>>> Jul 24, 2008 5:45:52 PM SEVERE: at
>>> com
>>> .sun
>>> .enterprise
>>> .naming
>>> .impl
>>> .LocalSerialContextProviderImpl
>>> .bind(LocalSerialContextProviderImpl.java:76)
>>> Jul 24, 2008 5:45:52 PM SEVERE: at
>>> com
>>> .sun.enterprise.naming.impl.SerialContext.bind(SerialContext.java:
>>> 297)
>>> Jul 24, 2008 5:45:52 PM SEVERE: at
>>> javax.naming.InitialContext.bind(InitialContext.java:359)
>>> Jul 24, 2008 5:45:52 PM SEVERE: at
>>> javax
>>> .management
>>> .remote.rmi.RMIConnectorServer.bind(RMIConnectorServer.java:635)
>>> Jul 24, 2008 5:45:52 PM SEVERE: at
>>> javax
>>> .management
>>> .remote.rmi.RMIConnectorServer.start(RMIConnectorServer.java:427)
>>> Jul 24, 2008 5:45:52 PM SEVERE: ... 16 more
>>> Jul 24, 2008 5:45:52 PM INFO: JMXMP connector server URL =
>>> service:jmx:jmxmp://localhost:8888
>>> Jul 24, 2008 5:45:52 PM
>>> com.sun.enterprise.v3.server.AppServerStartup run
>>> INFO: Glassfish v3 started in 1843 ms
>>>
>>>
>>>
>>> ..............................................
>>> Lloyd Chambers
>>> lloyd.chambers_at_sun.com <mailto:lloyd.chambers_at_sun.com>
>>> GlassFish team, admin
>>>
>>>
>>>
>>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: admin-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: admin-help_at_glassfish.dev.java.net
>