1 Reply Latest reply on Apr 22, 2004 4:57 AM by kabirkhan

    JMX Spine

      I'm trying to configure an MBeanServerFactory, creating a new ServerImpl and setting the properties, then calling init and start. Init goes fine, but on start I get:

      ClassNotFoundException: No ClassLoaders found for: org.jboss.naming.NamingService

      Is there a jar I'm missing? I think I have the base ones, but maybe I missed one. I'll try adding one here and there just to keep learning.

       server = new ServerImpl();
       System.out.println("got the server impl");
       Properties prop = new Properties();
       prop.setProperty(
       ServerConfig.HOME_DIR,
       (new File(".")).getAbsolutePath());
       prop.setProperty(
       ServerConfig.ROOT_DEPLOYMENT_FILENAME,
       "src/META-INF/depends-service.xml");
       prop.setProperty(
       ServerConfig.SERVER_CONFIG_URL,
       "file:" + (new File(".")).getAbsolutePath());
       System.out.println("done setting up properties");
       server.init(prop);
       server.start();


        • 1. Re: JMX Spine
          kabirkhan

          It is in server/default/jboss.jar.

          When running the mail tests what I find easiest is to just set the JBOSS_HOME variable to your JBoss distribution, that way I only have dnsjava-1.5.0.jar in the jboss-mail/lib directory.

          Here's a copy of my build.bat file:

          @echo off
          REM convenience bat file to build with
          REM ATTENTION: Set ANT_HOME to the root directory of ANT distribution

          set JBOSS_HOME=C:\cygwin\home\Kab\cvs\jboss-3.2.4RC1-src\build\output\jboss-3.2.4RC1
          set ANT_HOME=C:\Java\libs\apache-ant-1.5.4

          # PATH=%ANT_HOME%\bin;%PATH%
          %ANT_HOME%\bin\ant %*