3 Replies Latest reply on Sep 18, 2012 10:45 AM by Hushen Savani

    AS 5  MessagingType 'org.quartz.Job' not found

    nabil nabil Newbie

      Hi all,
      I've been trying to follow the example in the docs here:
      http://www.jboss.org/jbossejb3/docs/tutorial/jca/inflow/quartz/quartz.html
      IDE: NetBeans 6.5
      Java: 1.6
      It works with AS 4.0.5 and AS 4.2.2, but not in AS 5.0.0
      It is an EJB-Modul.
      Bean:

      import javax.ejb.ActivationConfigProperty;
      import javax.ejb.MessageDriven;
      import org.jboss.annotation.ejb.ResourceAdapter;
      import org.jboss.logging.Logger;
      import org.quartz.Job;
      import org.quartz.JobExecutionContext;
      import org.quartz.JobExecutionException;
      
      @MessageDriven(activationConfig = { @ActivationConfigProperty(propertyName = "cronTrigger", propertyValue = "0/2 * * * * ?") })
      
      @ResourceAdapter("quartz-ra.rar")
      //temp
      public class QC_DateCheck implements Job {
       private static final Logger log = Logger.getLogger(QC_DateCheck.class);
      
       public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {
       log.info("executing Test job");
       }
      }
      



      AS Error:



      16:34:54,373 INFO [ServerImpl] JBoss (Microcontainer) [5.0.0.GA (build: SVNTag=JBoss_5_0_0_GA date=200812042120)] Started in 56s:789ms
      16:35:00,492 INFO [Ejb3DependenciesDeployer] Encountered deployment AbstractVFSDeploymentContext@16579687{vfszip:/home/nabil/binstall/env/server/jboss-5.0.0.GA/server/default/deploy/TestEJBModule001.jar}
      16:35:00,502 INFO [Ejb3DependenciesDeployer] Encountered deployment AbstractVFSDeploymentContext@16579687{vfszip:/home/nabil/binstall/env/server/jboss-5.0.0.GA/server/default/deploy/TestEJBModule001.jar}
      16:35:00,502 INFO [Ejb3DependenciesDeployer] Encountered deployment AbstractVFSDeploymentContext@16579687{vfszip:/home/nabil/binstall/env/server/jboss-5.0.0.GA/server/default/deploy/TestEJBModule001.jar}
      16:35:00,502 INFO [Ejb3DependenciesDeployer] Encountered deployment AbstractVFSDeploymentContext@16579687{vfszip:/home/nabil/binstall/env/server/jboss-5.0.0.GA/server/default/deploy/TestEJBModule001.jar}
      16:35:01,417 INFO [JBossASKernel] Created KernelDeployment for: TestEJBModule001.jar
      16:35:01,425 INFO [JBossASKernel] installing bean: jboss.j2ee:jar=TestEJBModule001.jar,name=QC_DateCheck,service=EJB3
      16:35:01,425 INFO [JBossASKernel] with dependencies:
      16:35:01,425 INFO [JBossASKernel] and demands:
      16:35:01,425 INFO [JBossASKernel] jboss.ejb:service=EJBTimerService
      16:35:01,425 INFO [JBossASKernel] and supplies:
      16:35:01,425 INFO [JBossASKernel] jndi:null
      16:35:01,425 INFO [JBossASKernel] Class:org.quartz.Job
      16:35:01,425 INFO [JBossASKernel] Added bean(jboss.j2ee:jar=TestEJBModule001.jar,name=QC_DateCheck,service=EJB3) to KernelDeployment of: TestEJBModule001.jar
      16:35:02,029 INFO [EJBContainer] STARTED EJB: packaone.QC_DateCheck ejbName: QC_DateCheck
      16:35:02,188 ERROR [AbstractKernelController] Error installing to Start: name=jboss.j2ee:jar=TestEJBModule001.jar,name=QC_DateCheck,service=EJB3 state=Create
      org.jboss.deployers.spi.DeploymentException: MessagingType 'org.quartz.Job' not found in resource deployment jboss.jca:service=RARDeployment,name='jms-ra.rar'
      at org.jboss.resource.deployers.RARDeployment.createActivationSpec(RARDeployment.java:311)
      at org.jboss.resource.deployers.RARDeployment.internalInvoke(RARDeployment.java:276)
      at org.jboss.system.ServiceDynamicMBeanSupport.invoke(ServiceDynamicMBeanSupport.java:156)
      at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
      at org.jboss.ejb3.JmxClientKernelAbstraction.invoke(JmxClientKernelAbstraction.java:58)
      at org.jboss.ejb3.mdb.inflow.JBossMessageEndpointFactory.createActivationSpec(JBossMessageEndpointFactory.java:287)
      at org.jboss.ejb3.mdb.inflow.JBossMessageEndpointFactory.start(JBossMessageEndpointFactory.java:185)
      at org.jboss.ejb3.mdb.MessagingContainer.startProxies(MessagingContainer.java:204)
      at org.jboss.ejb3.mdb.MessagingContainer.lockedStart(MessagingContainer.java:173)
      at org.jboss.ejb3.EJBContainer.start(EJBContainer.java:879)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at org.jboss.reflect.plugins.introspection.ReflectionUtils.invoke(ReflectionUtils.java:59)
      at org.jboss.reflect.plugins.introspection.ReflectMethodInfoImpl.invoke(ReflectMethodInfoImpl.java:150)
      at org.jboss.joinpoint.plugins.BasicMethodJoinPoint.dispatch(BasicMethodJoinPoint.java:66)
      at org.jboss.kernel.plugins.dependency.KernelControllerContextAction$JoinpointDispatchWrapper.execute(KernelControllerContextAction.java:241)
      at org.jboss.kernel.plugins.dependency.ExecutionWrapper.execute(ExecutionWrapper.java:47)
      at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchExecutionWrapper(KernelControllerContextAction.java:109)
      at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchJoinPoint(KernelControllerContextAction.java:70)
      at org.jboss.kernel.plugins.dependency.LifecycleAction.installActionInternal(LifecycleAction.java:221)
      at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:54)
      at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.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.dependency.plugins.AbstractController.install(AbstractController.java:1598)
      at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
      at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:774)
      at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:540)
      at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataDeployer.deploy(BeanMetaDataDeployer.java:121)
      at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataDeployer.deploy(BeanMetaDataDeployer.java:51)
      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:1598)
      at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
      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:545)
      at org.jboss.system.server.profileservice.hotdeploy.HDScanner.scan(HDScanner.java:290)
      at org.jboss.system.server.profileservice.hotdeploy.HDScanner.run(HDScanner.java:221)
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
      at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
      at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
      at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
      at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:181)
      at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:205)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
      at java.lang.Thread.run(Thread.java:619)
      16:35:02,567 WARN [HDScanner] Failed to process changes
      org.jboss.deployers.client.spi.IncompleteDeploymentException: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):

      *** CONTEXTS IN ERROR: Name -> Error

      jboss.j2ee:jar=TestEJBModule001.jar,name=QC_DateCheck,service=EJB3 -> org.jboss.deployers.spi.DeploymentException: MessagingType 'org.quartz.Job' not found in resource deployment jboss.jca:service=RARDeployment,name='jms-ra.rar'


      at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:863)
      at org.jboss.deployers.plugins.main.MainDeployerImpl.checkComplete(MainDeployerImpl.java:665)
      at org.jboss.system.server.profileservice.hotdeploy.HDScanner.scan(HDScanner.java:293)
      at org.jboss.system.server.profileservice.hotdeploy.HDScanner.run(HDScanner.java:221)
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
      at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
      at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
      at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
      at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:181)
      at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:205)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
      at java.lang.Thread.run(Thread.java:619)


      I tried different things, like service ( ../myserver/deployer/quartzservice.sar/*) but it doesn't work.
      thx for any help.
      Orisun