struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Laurie Harper <lau...@holoweb.net>
Subject Re: [OT] Scheduled DB clean up service with Spring
Date Sat, 12 Apr 2008 23:23:01 GMT
Peter Theissen wrote:
> Hi,
> 
> the quartz scheduler from Spring seemed to be a quite nice solution for
> my DB clean up service. Thanks for that hint.
> Now I have a quite curios problem. If I, e.g. create a bean in
> applicationContext.xml as follows:
>  >>>
>    <bean id="simpleTrigger" 
> class="org.springframework.scheduling.quartz.SimpleTriggerBean">
> 
>      <!-- props are first commented out, since they are not important 
> for this issue
>      <property name="jobDetail" ref="jobInvokation"/>
>      <property name="repeatInterval" value="10000"/>
>       -->
> 
>    </bean>
> <<<
> I get a org.springframework.beans.factory.BeanCreationException:
> nested exception is 
> org.springframework.beans.factory.CannotLoadBeanClassException:
> Error loading class 
> [org.springframework.scheduling.quartz.SimpleTriggerBean]
> 
> But anyhow, if I import the class using:
> import org.springframework.scheduling.quartz.SimpleTriggerBean;
> in some POJO in the project everything is fine.
> 
> What am I missing?

The 'root cause' section of the stack trace? That should tell you why 
Spring can't instantiate the bean.

L.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message