1 Reply Latest reply on Jan 12, 2011 1:35 PM by Rinat Tainov

    Scheduler Service Can not find class

    Rinat Tainov Newbie

      using  jboss-5.1.0.GA want to create schduler, edited scheduler-service.xml

      <mbean code="org.jboss.varia.scheduler.Scheduler"
                name=":service=Scheduler">
            <attribute name="StartAtStartup">true</attribute>
            <attribute name="SchedulableClass">kz.sdu.schedule.SimpleSchedule</attribute>
            <attribute name="SchedulableArguments">Schedulabe Test,12345</attribute>
            <attribute name="SchedulableArgumentTypes">java.lang.String,int</attribute>
            <attribute name="InitialStartDate">0</attribute>
            <attribute name="SchedulePeriod">10000</attribute>
            <attribute name="InitialRepetitions">-1</attribute>
            <attribute name="FixedRate">true</attribute> 
         </mbean
      

       

      created class that implementing org.jboss.varia.scheduler.Schedulable.

       

      When deploying there is a error

      21:33:37,921 INFO  [Scheduler] Failed to find: kz.sdu.schedule.SimpleSchedule

      java.lang.ClassNotFoundException: kz.sdu.schedule.SimpleSchedule from BaseClassLoader@b9eee9{VFSClassLoaderPolicy@f41af6{name=vfsfile:/C:/jboss-5.1.0.GA/server/moldir/deploy/scheduler-service.xml domain=ClassLoaderDomain@78aa80{name=DefaultDomain parentPolicy=BEFORE parent=org.jboss.bootstrap.NoAnnotationURLClassLoader@1b67f74} roots=[MemoryContextHandler@1451413[path= context=vfsmemory://a0e5s-si1yc6-giue3xqr-1-giue4biu-1h real=vfsmemory://a0e5s-si1yc6-giue3xqr-1-giue4biu-1h]]  delegates=null exported=[] <IMPORT-ALL>NON_EMPTY}}

      at org.jboss.classloader.spi.base.BaseClassLoader.loadClass(BaseClassLoader.java:448)

      at java.lang.ClassLoader.loadClass(Unknown Source)

      at org.jboss.varia.scheduler.Scheduler.setSchedulableClass(Scheduler.java:513)

      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

      at java.lang.reflect.Method.invoke(Unknown Source)

      at org.jboss.mx.interceptor.AttributeDispatcher.invoke(AttributeDispatcher.java:136)

      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)

      at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)

      at org.jboss.mx.interceptor.ModelMBeanAttributeInterceptor.invoke(ModelMBeanAttributeInterceptor.java:103)

      at org.jboss.mx.interceptor.PersistenceInterceptor.invoke(PersistenceInterceptor.java:76)

      at org.jboss.mx.server.Invocation.invoke(Invocation.java:90)

      at org.jboss.mx.server.AbstractMBeanInvoker.setAttribute(AbstractMBeanInvoker.java:461)

      at org.jboss.mx.server.MBeanServerImpl.setAttribute(MBeanServerImpl.java:617)

      at org.jboss.system.ServiceConfigurator.configure(ServiceConfigurator.java:166)

      at org.jboss.system.ServiceConfigurator.configure(ServiceConfigurator.java:114)

      at org.jboss.system.microcontainer.ConfigureAction.installAction(ConfigureAction.java:58)

      at org.jboss.system.microcontainer.ConfigureAction.installAction(ConfigureAction.java:42)

      at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)

      at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)

      at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)

      at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)

      at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:286)

      at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)

      at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)

      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)

      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)

      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)

      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)

      at org.jboss.system.ServiceController.doChange(ServiceController.java:688)

      at org.jboss.system.ServiceController.install(ServiceController.java:274)

      at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:90)

      at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:46)

      at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)

      at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)

      at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)

      at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)

      at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)

      at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1178)

      at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)

      at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)

      at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)

      at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)

      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)

      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)

      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)

      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)

      at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)

      at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:702)

      at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)

      at org.jboss.system.server.profileservice.repository.ProfileDeployAction.install(ProfileDeployAction.java:70)

      at org.jboss.system.server.profileservice.repository.AbstractProfileAction.install(AbstractProfileAction.java:53)

      at org.jboss.system.server.profileservice.repository.AbstractProfileService.install(AbstractProfileService.java:361)

      at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)

      at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)

      at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)

      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)

      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)

      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)

      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)

      at org.jboss.system.server.profileservice.repository.AbstractProfileService.activateProfile(AbstractProfileService.java:306)

      at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:271)

      at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:461)

      at org.jboss.Main.boot(Main.java:221)

      at org.jboss.Main$1.run(Main.java:556)

      at java.lang.Thread.run(Unknown Source)

       

       

      I am sure class is there! Why he cannot find it?