0 Replies Latest reply on Jun 19, 2015 7:12 AM by Klaus Pilz

    QuartzScheduler as mbean service

    Klaus Pilz Newbie

      Hi everybody.

      I'am trying hard to register QuartzScheduler as Service in JBoss AS 7.2.0.Final

      I supplied the quartz-service.xml (see attachment) in standalone/deployments and registered quartz-2.2.1.jar as module.

      When i start the server i'am running in:

       

      13:08:43,488 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-16) MSC00001: Failed to start service jboss.deployment.unit."quartz-service.xml".INSTALL: org.jboss.msc.service.StartException in service jboss.deployment.unit."quartz-service.xml".INSTALL: JBAS018733: Failed to process phase INSTALL of deployment "quartz-service.xml"

          at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:127) [jboss-as-server-7.2.0.Final.jar:7.2.0.Final]

          at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.4.GA.jar:1.0.4.GA]

          at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.4.GA.jar:1.0.4.GA]

          at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895) [rt.jar:1.6.0_39]

          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918) [rt.jar:1.6.0_39]

          at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_39]

      Caused by: java.lang.IllegalArgumentException: JBAS017220: Class not found

          at org.jboss.as.service.ReflectionUtils.getClass(ReflectionUtils.java:115)

          at org.jboss.as.service.ReflectionUtils.getClassHierarchy(ReflectionUtils.java:122)

          at org.jboss.as.service.ParsedServiceDeploymentProcessor.addServices(ParsedServiceDeploymentProcessor.java:112)

          at org.jboss.as.service.ParsedServiceDeploymentProcessor.deploy(ParsedServiceDeploymentProcessor.java:103)

          at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:120) [jboss-as-server-7.2.0.Final.jar:7.2.0.Final]

          ... 5 more

      Caused by: java.lang.ClassNotFoundException: org.quartz.ee.jmx.jboss.QuartzService from [Module "deployment.quartz-service.xml:main" from Service Module Loader]

          at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190) [jboss-modules.jar:1.2.0.CR1]

          at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468) [jboss-modules.jar:1.2.0.CR1]

          at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456) [jboss-modules.jar:1.2.0.CR1]

          at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:423) [jboss-modules.jar:1.2.0.CR1]

          at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398) [jboss-modules.jar:1.2.0.CR1]

          at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120) [jboss-modules.jar:1.2.0.CR1]

          at java.lang.Class.forName0(Native Method) [rt.jar:1.6.0_39]

          at java.lang.Class.forName(Class.java:249) [rt.jar:1.6.0_39]

          at org.jboss.as.service.ReflectionUtils.getClass(ReflectionUtils.java:113)

          ... 9 mor

       

      this is the class mentioned in the quartz-service.xml but why can't it be loaded.

      Any ideas ?