Hi,

I wrote an MBean interface to create a TaskScheduler as service in JRun4,
but I receive the following error when I start the server. Could somebody
explain what am I doing wrong? I couldn't find much in JRun docs to create
MBean interface for scheduler. If anyone knows, please share.

ServiceFactory unable to create Service of class
com.emc.advt.asi.server.scheduler.TaskScheduler

jrunx.kernel.ServiceException: Root Cause:
javax.management.ReflectionException: The MBean class could not be loaded by
the default loader repository

        at jrunx.kernel.ServiceFactory.createService(ServiceFactory.java:63)

        at
jrunx.kernel.JRunServiceDeployer.loadMBeans(JRunServiceDeployer.java:164)

        at
jrunx.kernel.JRunServiceDeployer.deployServices(JRunServiceDeployer.java:85)

        at
jrunx.kernel.DeploymentService.loadServices(DeploymentService.java:46)

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)

        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)

        at java.lang.reflect.Method.invoke(Method.java:324)

        at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)

        at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)

        at jrunx.kernel.JRun.startServer(JRun.java:575)

        at jrunx.kernel.JRun.<init>(JRun.java:493)

        at jrunx.kernel.JRun$1.run(JRun.java:346)

        at java.security.AccessController.doPrivileged(Native Method)

        at jrunx.kernel.JRun.start(JRun.java:343)

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)

        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)

        at java.lang.reflect.Method.invoke(Method.java:324)

        at jrunx.kernel.JRun.invoke(JRun.java:180)

        at jrunx.kernel.JRun.main(JRun.java:168)

Entry in jrun.xml -

<service class="com.emc.advt.asi.server.scheduler.TaskScheduler"
name="TaskScheduler">

    <attribute name="bindToJNDI">true</attribute>

</service>

scheduler.jar can be used to regenerate this error. Main src files are
attached.

Any help would be appreciated.



  _____  

From: Drew Falkman [mailto:[EMAIL PROTECTED]
Sent: Friday, October 01, 2004 2:46 PM
To: JRun-Talk
Subject: RE: Using servlet for scheduling tasks

There is an MBean interface for performing scheduler tasks:

http://livedocs.macromedia.com/jrun/4/javadocs/jrunx/scheduler/Scheduler.htm
l

Also, there used to be a scheduler servlet built into JRun 3.x - I assume
it's still in 4, though I don't recall. A browse through the docs would
tell...
Drew Falkman
Veraison, LLC
[EMAIL PROTECTED]

  -----Original Message-----
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
  Sent: Friday, October 01, 2004 10:52 AM
  To: JRun-Talk
  Subject: Using servlet for scheduling tasks

  Hello,

  I need to have a task scheduler that can add and remove tasks at run time.
  What is the best way to do it JRun?

  Thanks

  _____
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Reply via email to