Hi,

I am trying to use the scheduler.
I look into the Timer/Scheduler howto and created two files : a class that hold the job to do in a perform() method and a scheduler-service.xml that containts the following text :


<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE server>
<!-- $Id: scheduler-service.xml,v 1.4 2002/06/01 02:06:46 starksm Exp $ -->

<server>
 <classpath codebase="lib"
        archives="scheduler-plugin.jar,
                      scheduler-plugin-example.jar"/>

<!-- ==================================================================== -->
<!-- Scheduler Service -->
<!-- ==================================================================== -->


 <mbean code="org.jboss.varia.scheduler.Scheduler"
    name=":service=Scheduler">
   <attribute name="StartAtStartup">true</attribute>
   <attribute name="SchedulableClass">scheduler.struts.Notifier</attribute>
   <attribute name="SchedulableArguments"></attribute>
   <attribute name="SchedulableArgumentTypes"></attribute>
   <attribute name="InitialStartDate">06/11/2003 00:10</attribute>
   <attribute name="SchedulePeriod">86400000</attribute>
   <attribute name="InitialRepetitions">-1</attribute>
 </mbean>

</server>


I package the whole in a file with the following structue : - scheduler ---- struts --------Notifier.class - META-INF ---- scheduler-service.xml


If I pack it in a SAR file, JBoss complains that it did not finf a jboss-service.xml file
If I pack it in a JAR file, I got a bunch of exception like :


14:58:03,444 INFO [MainDeployer] Starting deployment of package: file:/users/vol1/gardais/app-serv/jboss-3.2.1_tomcat-4.1.24/server/default/deploy/Notifier.jar
14:58:03,489 INFO [MainDeployer] deployment waiting for deployer: file:/users/vol1/gardais/app-serv/jboss-3.2.1_tomcat-4.1.24/server/default/deploy/Notifier.jar
14:58:03,494 INFO [MainDeployer] Deployment of package: file:/users/vol1/gardais/app-serv/jboss-3.2.1_tomcat-4.1.24/server/default/deploy/Notifier.jar is waiting for an appropriate deployer.
14:58:03,501 ERROR [URLDeploymentScanner] MBeanException: Exception in MBean operation 'checkIncompleteDeployments()'
Cause: Incomplete Deployment listing:
Packages waiting for a deployer:
[EMAIL PROTECTED] { url=file:/users/vol1/gardais/app-serv/jboss-3.2.1_tomcat-4.1.24/server/default/deploy/Notifier.jar }
deployer: null
status: null
state: INIT_WAITING_DEPLOYER
watch: file:/users/vol1/gardais/app-serv/jboss-3.2.1_tomcat-4.1.24/server/default/deploy/Notifier.jar
lastDeployed: 1055248801728
lastModified: 1055248801000
mbeans:
, [EMAIL PROTECTED] { url=file:/users/vol1/gardais/app-serv/jboss-3.2.1_tomcat-4.1.24/server/default/deploy/Notifier.jar }
deployer: null
status: null
state: INIT_WAITING_DEPLOYER
watch: file:/users/vol1/gardais/app-serv/jboss-3.2.1_tomcat-4.1.24/server/default/deploy/Notifier.jar
lastDeployed: 1055248882930
lastModified: 1055248882000
mbeans:
, [EMAIL PROTECTED] { url=file:/users/vol1/gardais/app-serv/jboss-3.2.1_tomcat-4.1.24/server/default/deploy/Notifier.jar }
deployer: null
status: null
state: INIT_WAITING_DEPLOYER
watch: file:/users/vol1/gardais/app-serv/jboss-3.2.1_tomcat-4.1.24/server/default/deploy/Notifier.jar
lastDeployed: 1055249249820
lastModified: 1055249248000
mbeans:
, [EMAIL PROTECTED] { url=file:/users/vol1/gardais/app-serv/jboss-3.2.1_tomcat-4.1.24/server/default/deploy/Notifier.jar }
deployer: null
status: null
state: INIT_WAITING_DEPLOYER
watch: file:/users/vol1/gardais/app-serv/jboss-3.2.1_tomcat-4.1.24/server/default/deploy/Notifier.jar
lastDeployed: 1055249883493
lastModified: 1055249881000
mbeans:
]Incompletely deployed packages:
[EMAIL PROTECTED] { url=file:/users/vol1/gardais/app-serv/jboss-3.2.1_tomcat-4.1.24/server/default/deploy/Notifier.sar }
deployer: [EMAIL PROTECTED]
status: null
state: FAILED
watch: file:/users/vol1/gardais/app-serv/jboss-3.2.1_tomcat-4.1.24/server/default/deploy/Notifier.sar
lastDeployed: 1055248400946
lastModified: 1055248399000
mbeans:
, [EMAIL PROTECTED] { url=file:/users/vol1/gardais/app-serv/jboss-3.2.1_tomcat-4.1.24/server/default/deploy/Notifier.jar }
deployer: null
status: null
state: INIT_WAITING_DEPLOYER
watch: file:/users/vol1/gardais/app-serv/jboss-3.2.1_tomcat-4.1.24/server/default/deploy/Notifier.jar
lastDeployed: 1055248801728
lastModified: 1055248801000
mbeans:
, [EMAIL PROTECTED] { url=file:/users/vol1/gardais/app-serv/jboss-3.2.1_tomcat-4.1.24/server/default/deploy/Notifier.jar }
deployer: null
status: null
state: INIT_WAITING_DEPLOYER
watch: file:/users/vol1/gardais/app-serv/jboss-3.2.1_tomcat-4.1.24/server/default/deploy/Notifier.jar
lastDeployed: 1055248882930
lastModified: 1055248882000
mbeans:
, [EMAIL PROTECTED] { url=file:/users/vol1/gardais/app-serv/jboss-3.2.1_tomcat-4.1.24/server/default/deploy/Notifier.jar }
deployer: null
status: null
state: INIT_WAITING_DEPLOYER
watch: file:/users/vol1/gardais/app-serv/jboss-3.2.1_tomcat-4.1.24/server/default/deploy/Notifier.jar
lastDeployed: 1055249249820
lastModified: 1055249248000
mbeans:
, [EMAIL PROTECTED] { url=file:/users/vol1/gardais/app-serv/jboss-3.2.1_tomcat-4.1.24/server/default/deploy/Notifier.sar }
deployer: [EMAIL PROTECTED]
status: null
state: FAILED
watch: file:/users/vol1/gardais/app-serv/jboss-3.2.1_tomcat-4.1.24/server/default/deploy/Notifier.sar
lastDeployed: 1055249285019
lastModified: 1055249283000
mbeans:
, [EMAIL PROTECTED] { url=file:/users/vol1/gardais/app-serv/jboss-3.2.1_tomcat-4.1.24/server/default/deploy/Notifier.jar }
deployer: null
status: null
state: INIT_WAITING_DEPLOYER
watch: file:/users/vol1/gardais/app-serv/jboss-3.2.1_tomcat-4.1.24/server/default/deploy/Notifier.jar
lastDeployed: 1055249883493
lastModified: 1055249881000
mbeans:
]MBeans waiting for classes:
<none>
MBeans waiting for other MBeans:
<none>





How to package these two files in order to have a deployable scheduled action ?


thanks,
ionel



-------------------------------------------------------
This SF.net email is sponsored by:  Etnus, makers of TotalView, The best
thread debugger on the planet. Designed with thread debugging features
you've never dreamed of, try TotalView 6 free at www.etnus.com.
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to