Bugs item #1004644, was opened at 2004-08-06 09:28
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=1004644&group_id=22866
Category: JBossServer
Group: v3.2
Status: Open
Resolution: None
Priority: 5
Submitted By: stan (sshparker)
Assigned to: Nobody/Anonymous (nobody)
Summary: Scheduler loading problem
Initial Comment:
OS: WinXP
JDK: 1.4.2
I believe the method, setSchedulableClass, in the
Scheduler has a bug. The class is being set in this
method from an attribute in an mbean definition during
startup, and the method tests to see if it has been
loaded and implements the Schedulable interface. It
failed for me because the class I was setting is
deployed in a jar file that is loaded after the
Scheduler is being loaded. I tried using the depends
setting for the MBean, but I still got the error
because I believe the check in the method above is
being done during the load of the xml file instead of
when the class gets deployed.
As a work around I have put the class defined in the
MBean attribute into a jar file which I placed in the
server/default/lib directory. The class is now loaded
to satisfy the requirement of the setSchedulableClass
method.
Note 1: I must still have the depends attribute so
that this functionality isn't deployed until after my
main jar. Otherwise I get errors because all of the
classes that my class depends on aren't included in the
workaround jar that I created.
Note 2: I know the MBean definition I used was correct
because I touched the file so that jboss would reload
it after startup, and the scheduler worked perfectly.
The ClassNotFoundException was thrown from the
following line:
// Try to load the Schedulable Class
mSchedulableClass =
Thread.currentThread().getContextClassLoader().loadClass(pSchedulableClass);
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=1004644&group_id=22866
-------------------------------------------------------
This SF.Net email is sponsored by OSTG. Have you noticed the changes on
Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now,
one more big change to announce. We are now OSTG- Open Source Technology
Group. Come see the changes on the new OSTG site. www.ostg.com
_______________________________________________
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development