Announcement Announcement Module
No announcement yet.
Spring scheduling problem Page Title Module
Move Remove Collapse
This topic is closed
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Spring scheduling problem

    Hi Guys,

    I am Surendar, I trying to implement scheduling in my project but facing some problem.
    Requirement is : We want to execute one method in specified intervals which gets the data(email ids) from the database who were not logged in to the application since last 60 days. And then that method will send a reminder mail to those users stating that if they would not login in for 30 more days their userid will be diactivated.

    So, I added following code in the application-context.xml and written corresponding method but I am getting following error. I have added spring.jar in the class path.

    <bean id="sendLogonReminderTask" class="org.springframework.scheduling.quartz.Metho dInvokingJobDetailFactoryBean">
    <property name="targetObject"><ref bean="userServiceManager" /></property>
    <property name="targetMethod">
    <property name="concurrent">

    <bean id="cronTriggerForSendLogonReminder" class="org.springframework.scheduling.quartz.CronT riggerBean">
    <property name="jobDetail" ref="sendLogonReminderTask" />
    <property name="cronExpression" value="0 0 16 * * ?"/>

    <bean class="org.springframework.scheduling.quartz.Sched ulerFactoryBean">
    <property name="triggers">
    <ref bean="cronTriggerForSendLogonReminder"/>

    Please help me to solve this, Thanks in advance.

    The Error in the CONSOLE:--- start() failed.
    Module Name: ROOT, Error: Error loading class [org.springframework.scheduling.quartz.CronTriggerB ean] for bean with name 'cronTriggerForSendLogonReminder' defined in ServletContext resource [/WEB-INF/applicationContext-service.xml]: problem with class file or dependent class; nested exception is java.lang.NoClassDefFoundError: org/quartz/CronTrigger - with nested exception:
    [java.lang.NoClassDefFoundError: org/quartz/CronTrigger]
    at weblogic.j2ee.J2EEApplicationContainer.start([Lweblogic.j2ee.J2EEApplicationContainer$ComponentV(
    at weblogic.j2ee.J2EEApplicationContainer.activate([
    at weblogic.j2ee.J2EEApplicationContainer.activate()V (
    at$App lication.setActivation(Z)V( )
    at ActivationStateForAllApplications(ZZ)V(SlaveDeploy
    at ume()V(
    at LifeCycleImpl.resume()V(DeploymentManagerServerLif
    at weblogic.t3.srvr.SubsystemManager.resume()V(Subsys
    at weblogic.t3.srvr.T3Srvr.resume()V(
    at weblogic.Server.main([Ljava.lang.StringV(

  • #2
    H, You must include quartz.jar also
    bwt, wrong section in forum


    • #3
      Originally posted by Muntis View Post
      H, You must include quartz.jar also
      bwt, wrong section in forum
      Even after including the quartz.jar also getting the same problem.