Ok, this is the procedure that I'm using : Creating a class Test1 like this :
| package schtest; | | import java.util.Date; | import org.jboss.varia.scheduler.Schedulable; | | public class Test1 implements Schedulable { | private String m_Name; | | public Test1(String TheName) { | m_Name = TheName; | } | public void perform(java.util.Date aDate, long aReps) { | System.out.println("Scheduler tick for "+m_Name); | } | | } | The META-INF/jboss-service.xml is : | <?xml version="1.0" encoding="UTF-8"?> | <server> | <mbean code="org.jboss.varia.scheduler.Scheduler" name="wmSched:service=Scheduler"> | <attribute name="StartAtStartup">true</attribute> | <attribute name="SchedulableClass">schtest.Test1</attribute> | <attribute name="SchedulableArguments">TheName</attribute> | <attribute name="SchedulableArgumentTypes">String</attribute> | <attribute name="InitialStartDate">NOW</attribute> | <attribute name="SchedulePeriod">10000</attribute> | <attribute name="InitialRepetitions">-1</attribute> | </mbean> | </server> | The WEB-INF/jboss-web.xml file : <?xml version="1.0" encoding="UTF-8"?> | <!DOCTYPE jboss-web PUBLIC "-//JBoss//DTD Web Application 2.3V2//EN" "http://www.jboss.org/j2ee/dtd/jboss-web_3_2.dtd"> | <jboss-web> | <class-loading java2ClassLoadingCompliance="true" /> | <context-root>wmSched</context-root> | </jboss-web> | The WEB-INF/web.xml file : | <?xml version="1.0" encoding="UTF-8"?> | <web-app xmlns="http://java.sun.com/xml/ns/j2ee" | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" version="2.4"> | <display-name>wmSched</display-name> | </web-app> | I package all this in a file wmSched.war using Borland JBuilder 2005. When I deploy the .sar file, I get a loooong exception stack trace and following message : | 18:48:38,500 ERROR [URLDeploymentScanner] Incomplete Deployment listing: | | --- MBeans waiting for other MBeans --- | ObjectName: wmSched:service=Scheduler | State: FAILED | Reason: org.jboss.deployment.DeploymentException: Exception setting attribute | javax.management.Attribute: name=SchedulableClass value=schtest.Test1 on mbean wmSched:service=Scheduler; - nested throwable: (java.security.InvalidParameterException: Given class schtest.Test1 is not found) | | --- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM --- | ObjectName: wmSched:service=Scheduler | State: FAILED | Reason: org.jboss.deployment.DeploymentException: Exception setting attribute javax.management.Attribute: name=SchedulableClass value=schtest.Test1 on mbean wmSched:service=Scheduler; - nested throwable: (java.security.InvalidParameterException: Given class schtest.Test1 is not found) | JBoss is 4.0.3SP1. What am I doing wrong? Please help!!! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3947754#3947754 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3947754 ------------------------------------------------------- All the advantages of Linux Managed Hosting--Without the Cost and Risk! Fully trained technicians. The highest number of Red Hat certifications in the hosting industry. Fanatical Support. Click to learn more http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642 _______________________________________________ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user