When you had the .sar in the .ear, did you include a jboss-app.xml file to
make he ear deployer deploy it?

<jboss-app>
  <module>
    <service>mystuff.sar</service>
  </module>
</jboss-app>

if I remember correctly

david jencks


On 2002.12.16 14:47:52 -0500 Randy Shoup wrote:
> I was not able to get a scheduler .sar to work if I deployed it directly 
> in the EAR.  However, it does work if I deploy it inside the *ejb-jar*, 
> which is itself inside the EAR.
> 
> My working theory is that there is some subtle difference between the 
> EAR deployer and the JAR deployer (maybe the EAR deployer only deploys 
> modules mentioned in the application.xml or in the classpaths of the 
> modules?).  But I have not investigated further.
> 
> For now, I am OK with this structure.  But I would be interested to 
> understand why it behaves like this :-).
> 
> JD Brennan wrote:
> > 
> > From: JD Brennan <[EMAIL PROTECTED]>
> > To: "'[EMAIL PROTECTED]'"
> >      <[EMAIL PROTECTED]>
> > Subject: RE: [JBoss-user] Scheduler
> > Date: Mon, 16 Dec 2002 09:57:56 -0800
> > Reply-To: [EMAIL PROTECTED]
> > 
> > This message is in MIME format. Since your mail reader does not
> understand
> > this format, some or all of this message may not be legible.
> > 
> > ------_=_NextPart_001_01C2A52C.A9F142A0
> > Content-Type: text/plain;
> >     charset="iso-8859-1"
> > 
> > Yep, we have the same problem.  Your original post said you
> > needed your scheduler to access a class in your .ear.  If you
> > need to access a bean, then you can't just put the .sar in the
> > .ear - We solved this by just sleeping for 60 seconds and then
> > starting - not ideal, but I couldn't find the MBean for
> > the bean container to make the depends stuff work.  If you get
> > it working could you post a follow-up to the list?
> > 
> > Tx!
> > JD
> > 
> > -----Original Message-----
> > From: Glenn Lewis [mailto:[EMAIL PROTECTED]]
> > Sent: Sunday, December 15, 2002 4:39 PM
> > To: [EMAIL PROTECTED]
> > Subject: Re: [JBoss-user] Scheduler
> > 
> > 
> > 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
> > 
> > ------_=_NextPart_001_01C2A52C.A9F142A0
> > Content-Type: text/html;
> >     charset="iso-8859-1"
> > Content-Transfer-Encoding: quoted-printable
> > 
> > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
> > <HTML>
> > <HEAD>
> > <META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
> > charset=3Diso-8859-1">
> > <META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
> > 5.5.2653.12">
> > <TITLE>RE: [JBoss-user] Scheduler</TITLE>
> > </HEAD>
> > <BODY>
> > 
> > <P><FONT SIZE=3D2>Yep, we have the same problem.&nbsp; Your original =
> > post said you</FONT>
> > <BR><FONT SIZE=3D2>needed your scheduler to access a class in your =
> > .ear.&nbsp; If you</FONT>
> > <BR><FONT SIZE=3D2>need to access a bean, then you can't just put the =
> > .sar in the</FONT>
> > <BR><FONT SIZE=3D2>.ear - We solved this by just sleeping for 60 =
> > seconds and then</FONT>
> > <BR><FONT SIZE=3D2>starting - not ideal, but I couldn't find the MBean
> =
> > for</FONT>
> > <BR><FONT SIZE=3D2>the bean container to make the depends stuff =
> > work.&nbsp; If you get</FONT>
> > <BR><FONT SIZE=3D2>it working could you post a follow-up to the =
> > list?</FONT>
> > </P>
> > 
> > <P><FONT SIZE=3D2>Tx!</FONT>
> > <BR><FONT SIZE=3D2>JD</FONT>
> > </P>
> > 
> > <P><FONT SIZE=3D2>-----Original Message-----</FONT>
> > <BR><FONT SIZE=3D2>From: Glenn Lewis [<A =
> > HREF=3D"mailto:[EMAIL PROTECTED]";>mailto:[EMAIL PROTECTED]=
> > </A>]</FONT>
> > <BR><FONT SIZE=3D2>Sent: Sunday, December 15, 2002 4:39 PM</FONT>
> > <BR><FONT SIZE=3D2>To: [EMAIL PROTECTED]</FONT>
> > <BR><FONT SIZE=3D2>Subject: Re: [JBoss-user] Scheduler</FONT>
> > </P>
> > <BR>
> > 
> > <P><FONT SIZE=3D2>Thanks for the advice.</FONT>
> > </P>
> > 
> > <P><FONT SIZE=3D2>We can deploy the scheduler MBean by putting it =
> > inside a .sar, but we </FONT>
> > <BR><FONT SIZE=3D2>get a similar problem: the first time the scheduler
> =
> > is invoked it does a </FONT>
> > <BR><FONT SIZE=3D2>findAll on a bean that is not deployed. An error =
> > message is printed by </FONT>
> > <BR><FONT SIZE=3D2>the loginterceptor (so I'm not sure we can catch =
> > it). The next time the </FONT>
> > <BR><FONT SIZE=3D2>scheduler is invoked it works fine, since by that =
> > time everything is </FONT>
> > <BR><FONT SIZE=3D2>deployed.</FONT>
> > </P>
> > 
> > <P><FONT SIZE=3D2>Any suggestions?</FONT>
> > </P>
> > <BR>
> > 
> > <P><FONT SIZE=3D2>JD Brennan wrote:</FONT>
> > <BR><FONT SIZE=3D2>&gt; We deploy our MBean by putting it inside a .sar
> =
> > inside</FONT>
> > <BR><FONT SIZE=3D2>&gt; our ejb .jar inside our .ear - there are =
> > probably other</FONT>
> > <BR><FONT SIZE=3D2>&gt; better ways, but this works for us.</FONT>
> > <BR><FONT SIZE=3D2>&gt; </FONT>
> > <BR><FONT SIZE=3D2>&gt; JD</FONT>
> > <BR><FONT SIZE=3D2>&gt; </FONT>
> > <BR><FONT SIZE=3D2>&gt; -----Original Message-----</FONT>
> > <BR><FONT SIZE=3D2>&gt; From: Glenn Lewis [<A =
> > HREF=3D"mailto:[EMAIL PROTECTED]";>mailto:[EMAIL PROTECTED]=
> > </A>]</FONT>
> > <BR><FONT SIZE=3D2>&gt; Sent: Thursday, December 12, 2002 8:45 =
> > PM</FONT>
> > <BR><FONT SIZE=3D2>&gt; To: [EMAIL PROTECTED]</FONT>
> > <BR><FONT SIZE=3D2>&gt; Cc: [EMAIL PROTECTED]</FONT>
> > <BR><FONT SIZE=3D2>&gt; Subject: [JBoss-user] Scheduler</FONT>
> > <BR><FONT SIZE=3D2>&gt; </FONT>
> > <BR><FONT SIZE=3D2>&gt; </FONT>
> > <BR><FONT SIZE=3D2>&gt; Hi all,</FONT>
> > <BR><FONT SIZE=3D2>&gt; </FONT>
> > <BR><FONT SIZE=3D2>&gt; Using the online docs at</FONT>
> > <BR><FONT SIZE=3D2>&gt; <A =
> > HREF=3D"http://www.jboss.org/online-manual/HTML/ch11s58.html#scheduler-u=
> > sage" =
> > TARGET=3D"_blank">http://www.jboss.org/online-manual/HTML/ch11s58.html#s=
> > cheduler-usage</A> and</FONT>
> > <BR><FONT SIZE=3D2>&gt; JBoss3.0.3 we have created a scheduler mbean. =
> > We deploy it via a timer</FONT>
> > <BR><FONT SIZE=3D2>&gt; service.xml file. The scheduler mbean refers to
> =
> > a class</FONT>
> > <BR><FONT SIZE=3D2>&gt; =
> > (au.com.xcomp.xvs.server.TimedObjectSchedulable) in our ear.</FONT>
> > <BR><FONT SIZE=3D2>&gt; </FONT>
> > <BR><FONT SIZE=3D2>&gt; The scheduler deploys fine provided we manually
> =
> > make sure the ear is</FONT>
> > <BR><FONT SIZE=3D2>&gt; deployed before the service.xml. However, when
> =
> > we try to deploy the</FONT>
> > <BR><FONT SIZE=3D2>&gt; service.xml file and ear file in the one ant =
> > task, the scheduler deploys</FONT>
> > <BR><FONT SIZE=3D2>&gt; first and gives the error below. Someone else =
> > also reported this problem</FONT>
> > <BR><FONT SIZE=3D2>&gt; a while ago</FONT>
> > <BR><FONT SIZE=3D2>&gt; (<A =
> > HREF=3D"http://www.mail-archive.com/jboss-user@lists.sourceforge.net/msg=
> > 23230.html" =
> > TARGET=3D"_blank">http://www.mail-archive.com/jboss-user@lists.sourcefor=
> > ge.net/msg23230.html</A>). </FONT>
> > <BR><FONT SIZE=3D2>&gt; </FONT>
> > <BR><FONT SIZE=3D2>&gt; </FONT>
> > <BR><FONT SIZE=3D2>&gt; </FONT>
> > <BR><FONT SIZE=3D2>&gt; Any suggestions???</FONT>
> > <BR><FONT SIZE=3D2>&gt; </FONT>
> > <BR><FONT SIZE=3D2>&gt; Cause: Incomplete Deployment listing:</FONT>
> > <BR><FONT SIZE=3D2>&gt; Packages waiting for a deployer:</FONT>
> > <BR><FONT SIZE=3D2>&gt;&nbsp;&nbsp;&nbsp; &lt;none&gt;</FONT>
> > <BR><FONT SIZE=3D2>&gt; Incompletely deployed packages:</FONT>
> > <BR><FONT SIZE=3D2>&gt;&nbsp;&nbsp;&nbsp; &lt;none&gt;</FONT>
> > <BR><FONT SIZE=3D2>&gt; MBeans waiting for classes:</FONT>
> > <BR><FONT SIZE=3D2>&gt;&nbsp;&nbsp;&nbsp; &lt;none&gt;</FONT>
> > <BR><FONT SIZE=3D2>&gt; MBeans waiting for other MBeans:</FONT>
> > <BR><FONT SIZE=3D2>&gt; [ObjectName: =
> > jboss:schedule=3DCheckTimeoutDaemon,service=3DScheduler</FONT>
> > <BR><FONT SIZE=3D2>&gt;&nbsp;&nbsp; state: FAILED</FONT>
> > <BR><FONT SIZE=3D2>&gt;&nbsp;&nbsp; I Depend On:</FONT>
> > <BR><FONT SIZE=3D2>&gt;&nbsp;&nbsp; Depends On Me: =
> > org.jboss.deployment.DeploymentException: Exception</FONT>
> > <BR><FONT SIZE=3D2>&gt; setting attribute =
> > javax.management.Attribute@250ff2 on mbean</FONT>
> > <BR><FONT SIZE=3D2>&gt; =
> > jboss:schedule=3DCheckTimeoutDaemon,service=3DScheduler; - nested =
> > throwable:</FONT>
> > <BR><FONT SIZE=3D2>&gt; (java.security.InvalidParameterException: Given
> =
> > class</FONT>
> > <BR><FONT SIZE=3D2>&gt; au.com.xcomp.xvs.server.TimedObjectSchedulable
> =
> > is not valid or not found)]</FONT>
> > <BR><FONT SIZE=3D2>&gt; </FONT>
> > <BR><FONT SIZE=3D2>&gt; </FONT>
> > <BR><FONT SIZE=3D2>&gt; Thanks</FONT>
> > <BR><FONT SIZE=3D2>&gt; </FONT>
> > <BR><FONT SIZE=3D2>&gt; -- </FONT>
> > <BR><FONT SIZE=3D2>&gt; Glenn</FONT>
> > <BR><FONT SIZE=3D2>&gt; </FONT>
> > <BR><FONT SIZE=3D2>&gt; </FONT>
> > <BR><FONT SIZE=3D2>&gt; </FONT>
> > <BR><FONT SIZE=3D2>&gt; =
> > -------------------------------------------------------</FONT>
> > <BR><FONT SIZE=3D2>&gt; This sf.net email is sponsored by:</FONT>
> > <BR><FONT SIZE=3D2>&gt; With Great Power, Comes Great =
> > Responsibility</FONT>
> > <BR><FONT SIZE=3D2>&gt; Learn to use your power at OSDN's High =
> > Performance Computing Channel</FONT>
> > <BR><FONT SIZE=3D2>&gt; <A HREF=3D"http://hpc.devchannel.org/"; =
> > TARGET=3D"_blank">http://hpc.devchannel.org/</A></FONT>
> > <BR><FONT SIZE=3D2>&gt; =
> > _______________________________________________</FONT>
> > <BR><FONT SIZE=3D2>&gt; JBoss-user mailing list</FONT>
> > <BR><FONT SIZE=3D2>&gt; [EMAIL PROTECTED]</FONT>
> > <BR><FONT SIZE=3D2>&gt; <A =
> > HREF=3D"https://lists.sourceforge.net/lists/listinfo/jboss-user"; =
> > TARGET=3D"_blank">https://lists.sourceforge.net/lists/listinfo/jboss-use=
> > r</A></FONT>
> > <BR><FONT SIZE=3D2>&gt; </FONT>
> > </P>
> > <BR>
> > <BR>
> > <BR>
> > 
> > <P><FONT =
> > SIZE=3D2>-------------------------------------------------------</FONT>
> > <BR><FONT SIZE=3D2>This sf.net email is sponsored by:</FONT>
> > <BR><FONT SIZE=3D2>With Great Power, Comes Great Responsibility </FONT>
> > <BR><FONT SIZE=3D2>Learn to use your power at OSDN's High Performance =
> > Computing Channel</FONT>
> > <BR><FONT SIZE=3D2><A HREF=3D"http://hpc.devchannel.org/"; =
> > TARGET=3D"_blank">http://hpc.devchannel.org/</A></FONT>
> > <BR><FONT =
> > SIZE=3D2>_______________________________________________</FONT>
> > <BR><FONT SIZE=3D2>JBoss-user mailing list</FONT>
> > <BR><FONT SIZE=3D2>[EMAIL PROTECTED]</FONT>
> > <BR><FONT SIZE=3D2><A =
> > HREF=3D"https://lists.sourceforge.net/lists/listinfo/jboss-user"; =
> > TARGET=3D"_blank">https://lists.sourceforge.net/lists/listinfo/jboss-use=
> > r</A></FONT>
> > </P>
> > 
> > </BODY>
> > </HTML>
> > ------_=_NextPart_001_01C2A52C.A9F142A0--
> 
> 
> 
> 
> -------------------------------------------------------
> 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