This week's book giveaway is in the Testing forum.
We're giving away four copies of Data Structures the Fun Way: An Amusing Adventure with Coffee-Filled Examples and have Jeremy Kubica on-line!
See this thread for details.

Paola Orsini

+ Follow
since Sep 21, 2007
Merit badge: grant badges
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Paola Orsini

Hi I am new in Spring and a little bit in quartz, I am trying to do a hello world but nothing happens, I greate a web proyect with spring and struts and I want too use quartz


package example;

import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.scheduling.quartz.QuartzJobBean;

public class ExampleJob extends QuartzJobBean {

private int timeout;

* Setter called after the ExampleJob is instantiated
* with the value from the JobDetailBean (5)
public void setTimeout(int timeout) {
this.timeout = timeout;

protected void executeInternal(JobExecutionContext ctx) throws JobExecutionException {


<bean name="exampleJob" class="org.springframework.scheduling.quartz.JobDetailBean">
<property name="jobClass" value="example.ExampleJob" />
<property name="jobDataAsMap">
<entry key="timeout" value="5" />
<bean id="simpleTrigger" class="org.springframework.scheduling.quartz.SimpleTriggerBean">
<!-- see the example of method invoking job above -->
<property name="jobDetail" ref="exampleJob" />
<!-- 10 seconds -->
<property name="startDelay" value="0" />
<!-- repeat every 50 seconds -->
<property name="repeatInterval" value="5000" />
<bean class="org.springframework.scheduling.quartz.SchedulerFactoryBean">
<property name="triggers">
<ref bean="simpleTrigger" />

But nothing happens when I start the proyect(I mean the proyects starts correctly but I dont see the message), it suppones to see in console the message???
I star
Hi, I have this problem each time I run the application when the JobDetail is called I got an Exception and my struts application can not load.
Also the ApplicationJob class is never call.
I have Struts 1.3, quartz-1.6.0.jar, jgs-struts-0.3-dev.jar, jgs-quartz-0.2.1-dev.jar, commons-collections-3.2.jar

<plug-in className="com.banvalor.demon.ApplicationAuto"/>

package com.banvalor.demon;

import javax.servlet.ServletException;

import org.apache.struts.action.ActionServlet;
import org.apache.struts.action.PlugIn;
import org.apache.struts.config.ModuleConfig;

public class ApplicationAuto implements PlugIn

public void init(ActionServlet servlet, ModuleConfig config) throws ServletException
try {
System.out.println("Initializing NewsLetter PlugIn");
ApplicationSchedule objPlugin = new ApplicationSchedule();
} catch (Exception ex) {

public void destroy() {

package com.banvalor.demon;

import java.util.Date;

import org.quartz.JobDetail;
import org.quartz.Scheduler;
import org.quartz.SchedulerFactory;
import org.quartz.SimpleTrigger;
import org.quartz.impl.StdSchedulerFactory;

public class ApplicationSchedule

public ApplicationSchedule()throws Exception
SchedulerFactory sf=new StdSchedulerFactory();
Scheduler sched=sf.getScheduler();
JobDetail jd= new JobDetail("myjob",sched.DEFAULT_GROUP,ApplicationJob.class);
//jd.getJobDataMap().put("Socket", smt);
SimpleTrigger st=new SimpleTrigger("mytrigger",sched.DEFAULT_GROUP,new Date(),null,SimpleTrigger.REPEAT_INDEFINITELY,60L*1000L);
sched.scheduleJob(jd, st);

javax.servlet.UnavailableException: org.apache.commons.collections.SetUtils.orderedSet(Ljava/util/Set Ljava/util/Set;
at org.apache.struts.action.ActionServlet.init(
at javax.servlet.GenericServlet.init(
at org.apache.catalina.core.StandardWrapper.loadServlet(
at org.apache.catalina.core.StandardWrapper.load(
at org.apache.catalina.core.StandardContext.loadOnStartup(
at org.apache.catalina.core.StandardContext.start(
at org.apache.catalina.core.ContainerBase.addChildInternal(
at org.apache.catalina.core.ContainerBase.addChild(
at org.apache.catalina.core.StandardHost.addChild(
at org.apache.catalina.startup.HostConfig.deployDirectory(
at org.apache.catalina.startup.HostConfig.deployDirectories(
at org.apache.catalina.startup.HostConfig.deployApps(
at org.apache.catalina.startup.HostConfig.start(
at org.apache.catalina.startup.HostConfig.lifecycleEvent(
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(
at org.apache.catalina.core.ContainerBase.start(
at org.apache.catalina.core.StandardHost.start(
at org.apache.catalina.core.ContainerBase.start(
at org.apache.catalina.core.StandardEngine.start(
at org.apache.catalina.core.StandardService.start(
at org.apache.catalina.core.StandardServer.start(
at org.apache.catalina.startup.Catalina.start(
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(
at org.apache.catalina.startup.Bootstrap.main(

Please help me I can not found why is the error