1 Reply Latest reply on Aug 27, 2002 11:22 AM by Adrian Brock

    RMIAdaptor classpath problem

    Sascha Olliges Newbie

      i want to use the RMIAdaptor to query for some mbean. the adaptors getObjectInstance method works but queryMBeans(null, qexp) with qexp = Query.match(Query.attr("ComponentName"), Query.value("ReportingUnit"));

      produces the following stack trace..

      java.rmi.ServerError: Error occurred in server thread; nested exception is:
      java.lang.NoClassDefFoundError: Lgnu/regexp/UncheckedRE;
      at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:289)
      at sun.rmi.transport.Transport$1.run(Transport.java:148)
      at java.security.AccessController.doPrivileged(Native Method)
      at sun.rmi.transport.Transport.serviceCall(Transport.java:144)
      at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
      at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
      at java.lang.Thread.run(Thread.java:536)
      at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:247)
      at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:223)
      at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:133)
      at org.jboss.jmx.adaptor.rmi.RMIAdaptorImpl_Stub.queryMBeans(Unknown Source)

      what is really confusing about this that i merged the gnu-regexp jar with the sar.

        • 1. Re: RMIAdaptor classpath problem
          Adrian Brock Master

          This is fixed in 3.0.2

          One temporary solution would be to replace
          lib/jboss-jmx.jar with a
          merged jboss-jmx.jar and gnu-regexp.jar

          The problem is caused because the Match code using the
          regexp is in the boot classloader, which doesn't have
          visibility into the UnifiedClassLoaders where
          gnu-regexp.jar lives.

          Regards,
          Adrian