5 Replies Latest reply on Jan 12, 2009 4:48 PM by Dale Smith

    JMX bean creating InitialContext:  Works from JMX console.

    Dale Smith Newbie

      Gurus,
      here is my situation:

      I have a JMX bean deployed via Spring's MBeanExporter. Several of the methods new up an InitialContext() for various operations.

      This works just fine when I invoke the methods via the JBoss JMX console. But if I try to invoke them through JConsole or programmatically through RMI, I get a ClassNotFound exception:

      javax.naming.NoInitialContextException: Cannot instantiate class: org.jnp.interfaces.NamingContextFactory [Root exception is java.lang.ClassNotFoundException: org.jnp.interfaces.NamingContextFactory]

      I've googled high and low to find a solution, but none has presented itself. Any ideas?