Thanks for the advice.

We can deploy the scheduler MBean by putting it inside a .sar, but we get a similar problem: the first time the scheduler is invoked it does a findAll on a bean that is not deployed. An error message is printed by the loginterceptor (so I'm not sure we can catch it). The next time the scheduler is invoked it works fine, since by that time everything is deployed.

Any suggestions?


JD Brennan wrote:
We deploy our MBean by putting it inside a .sar inside
our ejb .jar inside our .ear - there are probably other
better ways, but this works for us.

JD

-----Original Message-----
From: Glenn Lewis [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 12, 2002 8:45 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: [JBoss-user] Scheduler


Hi all,

Using the online docs at
http://www.jboss.org/online-manual/HTML/ch11s58.html#scheduler-usage and
JBoss3.0.3 we have created a scheduler mbean. We deploy it via a timer
service.xml file. The scheduler mbean refers to a class
(au.com.xcomp.xvs.server.TimedObjectSchedulable) in our ear.

The scheduler deploys fine provided we manually make sure the ear is
deployed before the service.xml. However, when we try to deploy the
service.xml file and ear file in the one ant task, the scheduler deploys
first and gives the error below. Someone else also reported this problem
a while ago
(http://www.mail-archive.com/jboss-user@lists.sourceforge.net/msg23230.html).


Any suggestions???

Cause: Incomplete Deployment listing:
Packages waiting for a deployer:
<none>
Incompletely deployed packages:
<none>
MBeans waiting for classes:
<none>
MBeans waiting for other MBeans:
[ObjectName: jboss:schedule=CheckTimeoutDaemon,service=Scheduler
state: FAILED
I Depend On:
Depends On Me: org.jboss.deployment.DeploymentException: Exception
setting attribute javax.management.Attribute@250ff2 on mbean
jboss:schedule=CheckTimeoutDaemon,service=Scheduler; - nested throwable:
(java.security.InvalidParameterException: Given class
au.com.xcomp.xvs.server.TimedObjectSchedulable is not valid or not found)]


Thanks

--
Glenn



-------------------------------------------------------
This sf.net email is sponsored by:
With Great Power, Comes Great Responsibility
Learn to use your power at OSDN's High Performance Computing Channel
http://hpc.devchannel.org/
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user




-------------------------------------------------------
This sf.net email is sponsored by:
With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel
http://hpc.devchannel.org/
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to