1 Reply Latest reply on Aug 21, 2007 10:26 AM by Sandesh Tallera

    ClassNotFound: JBoss Scheduler Service

    Eduardo Elgueta Newbie

      Hi All,

      I'm trying to implement a Scheduler-compatible class as per instructions on http://www.huihoo.org/jboss/online_manual/3.0/ch13s58.html.

      I'm getting a ClassNotFoundException at startup:

      2007-08-07 15:40:35,997 DEBUG [org.jboss.system.ServiceConfigurator]
      SchedulableClass set to my.package.MyClass in jboss:service=Scheduler
      2007-08-07 15:40:35,997 INFO [org.jboss.varia.scheduler.Scheduler] Failed to find: my.package.MyClass
      java.lang.ClassNotFoundException: No ClassLoaders found for: my.package.MyClass
       at org.jboss.mx.loading.LoadMgr3.beginLoadTask(LoadMgr3.java:212)
       at
      org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryClassLoader.java:514)
       at
      org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassLoader.java:408)
       at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
       at...


      My ear-deployer.xml already is set to no isolation for the classloaders (http://wiki.jboss.org/wiki/Wiki.jsp?page=Scheduler):
      <?xml version="1.0" encoding="UTF-8"?>
      <server>
       <mbean code="org.jboss.deployment.EARDeployer"
       name="jboss.j2ee:service=EARDeployer">
       <attribute name="Isolated">false</attribute>
       <attribute name="CallByValue">false</attribute>
       <attribute name="EnablelibDirectoryByDefault">true</attribute>
       </mbean>
      </server>


      My class is inside an ejb3 package.

      Any hint, much appreciated.

      Edo.