my scheduler service.xml file uses a schedulableClass located under a lib directory. Everything works fine until I restart jboss-3.2.1_tomcat-4.1.24
Before Jboss finishes starting I get the following error:
[ServiceConfigurator] Problem configuring service jboss:service=Scheduler
org.jboss.deployment.DeploymentException: Exception setting attribute javax.management.Attribute: name=SchedulableClass value=com.ideal.srl.util.SubscriptionScheduler on mbean jboss:service=Scheduler; - nested throwable: (java.security.InvalidParameterException: Given class com.ideal.srl.util.SubscriptionScheduler is not valid or not found)
It seems that the service.xml file is searching for the SchedulableClass which it seems it has not been scanned by jboss yet.
This gets fixed when I redeploy the application again.
I tried adding this line of code to the service.xml file:
Of course I got the same error.
I am looking for a cleaner way to fix this.