Root exception is java.lang.ClassNotFoundException: org.jnp.interfaces.NamingContextFactory]
You need the jbossall-client .jar in the client classpath. You can find that jar in %JBOSS_HOME%/client folder. Which version of JBoss are you using? For JBoss-5, you will also have to add additional jar files which are listed in the MANIFEST.MF file of jbossall-client.jar
On the client? This exception is happening on the server, NOT on the client.
javax.naming.NoInitialContextException: Cannot instantiate class: org.jnp.interfaces.NamingContextFactory [Root exception is java.lang.ClassNotFoundException: org.jnp.interfaces.NamingContextFactory]
is occurring on the server, not on the client. I can watch it happen using IDEA remote debugging on the JBoss instance. I'm wondering if there is a class loader issue, since the RMI access takes a much different code path than the JMX console does.
Still haven't found a solution to this - any love here?