Hi everyone,

I'm working with STS 2.3.2 and JBOSS-4.2.3.GA. I've configured one job to run in my machine with this settings:

Code:
        <bean id="SchedulerFactory"
		class="org.springframework.scheduling.quartz.SchedulerFactoryBean">
	    <property name="triggers">
	        <list>
	            <ref bean="cronTrigger" />
	        </list>
	    </property>
	</bean>
	
	<bean id="emailJob" class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
	  <property name="targetObject" ref="SendEmailService"/>
	  <property name="targetMethod" value="sendEmail"/>
	</bean>
	
	<bean id="cronTrigger" class="org.springframework.scheduling.quartz.CronTriggerBean">
	    <property name="jobDetail" ref="emailJob" />
	    <property name="cronExpression" value="0 0 1 ? * MON" />
	</bean>
And the class that emailJob invokes is:

Code:
public class SendEmailServiceImpl implements SendEmailService {

    public String sendEmail(){

        //Do the actual job.
    }

}
It works fine when I test it in my local machine, but when I try to deploy it on my JBOSS server this error pop out:
16:07:35,218 ERROR [ContextLoader] Context initialization failed
org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'SchedulerFactory' defined in class path resource [resources.xml]: Cannot resolve reference to bean 'cronTrigger' while setting bean property 'triggers' with key [0]; nested exception is org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'cronTrigger' defined in class path resource [resources.xml]: Cannot resolve reference to bean 'jobDetail' while setting bean property 'jobDetail'; nested exception is org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'jobDetail' defined in class path resource [resources.xml]: Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: Job class must implement the Job interface.


Caused by: org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'jobDetail' defined in class path resource [resources.xml]: Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: Job class must implement the Job interface.
at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.initializeBean(Abstract AutowireCapableBeanFactory.java:1412)
at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.doCreateBean(AbstractAu towireCapableBeanFactory.java:519)
at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createBean(AbstractAuto wireCapableBeanFactory.java:456)
at org.springframework.beans.factory.support.Abstract BeanFactory$1.getObject(AbstractBeanFactory.java:2 91)
at org.springframework.beans.factory.support.DefaultS ingletonBeanRegistry.getSingleton(DefaultSingleton BeanRegistry.java:222)
at org.springframework.beans.factory.support.Abstract BeanFactory.doGetBean(AbstractBeanFactory.java:288 )
at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:190)
at org.springframework.beans.factory.support.BeanDefi nitionValueResolver.resolveReference(BeanDefinitio nValueResolver.java:322)
... 116 more
Caused by: java.lang.IllegalArgumentException: Job class must implement the Job interface.
at org.quartz.JobDetail.setJobClass(JobDetail.java:26 2)
at org.quartz.JobDetail.<init>(JobDetail.java:121)
at org.springframework.scheduling.quartz.MethodInvoki ngJobDetailFactoryBean.afterPropertiesSet(MethodIn vokingJobDetailFactoryBean.java:177)
at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.invokeInitMethods(Abstr actAutowireCapableBeanFactory.java:1469)
at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.initializeBean(Abstract AutowireCapableBeanFactory.java:1409)
... 123 more



Can anyone help me? Thanks for your support.