1 Reply Latest reply on Apr 11, 2003 4:21 PM by Weiqing Huang

    mbean ClassNotFoundException when jboss starts up

    Weiqing Huang Newbie

      i have created a foo.sar that contains a META-INF/jboss-service.xml and a foo.ear file that has all the other application related stuff (jars, wars, application.xml, etc.) If jboss is already running and i drop the sar file into the deploy directory, everything is fine: my mbean and my application are both running. however if i restart jboss (with the sar file in deploy already), i always got an error:

      09:39:48,615 WARN [ServiceConfigurator] Failed to complete install
      java.lang.ClassNotFoundException: No ClassLoaders found for: test.jmx.SimpleTest
      at org.jboss.mx.loading.LoadMgr.beginLoadTask(LoadMgr.java:161)
      at org.jboss.mx.loading.UnifiedClassLoader3.loadClass(UnifiedClassLoader3.java:175)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:262)

      now if i redeploy the same sar while the server is running, it will succeed this time.

      i am using 3.2.0RC5. do i need to set up dependency (on what) or codebase in jboss-service.xml (but the ear is in the same sar)? my jboss-service.xml looks like this:



      jboss.jca:service=RARDeployer



      thanx a lot.