Hi Alex,

The JMX object name is case sensitive.
Also it is an anonymous dependency, there is
no "Invoker" attribute on a Session bean.

<depends>jboss:service=invoker,type=jrmp</depends>

Regards,
Adrian

xxxxxxxxxxxxxxxxxxxxxxxx 
Adrian Brock
Director of Support
Back Office
JBoss Group, LLC 
xxxxxxxxxxxxxxxxxxxxxxxx 
 

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of 
> Bates, Alex
> Sent: 19 June 2003 23:10
> To: [EMAIL PROTECTED]
> Subject: RE: [JBoss-user] "depends on me" startup problem - 
> but redeployment works fine!
> 
> 
> 
> Thanks for the rapid response Adrian.  I added an explicit 
> dependency on the
> invoker in the relevant jboss.xml files (your 3rd 
> recommendation), and that
> made the large number of stack traces go away.
> 
> However, at the end of init, a different error is shown.
> 
> //
> // Old error messages
> //
> > Depends On Me: java.lang.RuntimeException: invoker is null: 
> > jboss:service=invok
> > er,type=jrmp]"
> 
> //
> // New error messages
> //
>  Depends On Me: , ObjectName:
> jboss.j2ee:jndiName=org.apache.ojb.ejb.ODMGSession
> Bean,service=EJB
>  state: NOTYETINSTALLED
>  I Depend On:   jboss:service=Invoker,type=jrmp
> 
> AFAIK I must have specified the dependency incorrectly 
> somehow.  Here is
> what I entered in the jboss.xml file:
> 
>       <session>
>          <ejb-name>ODMGSessionBean</ejb-name>
>          <jndi-name>org.apache.ojb.ejb.ODMGSessionBean</jndi-name>
>  
> <local-jndi-name>org.apache.ojb.ejb.ODMGSessionBeanLocal</loca
> l-jndi-name>
>          <depends
> optional-attribute-name="Invoker">jboss:service=Invoker,type=j
> rmp</depends>
>       </session>
> 
> 
> I take it there's a mistake in the depends element?  It seems 
> to think the
> invoker is NOTYETINSTALLED at the end of init, but shouldn't 
> it be?  And
> again, redeployment works fine with the new depends stuff.
> 
> Thanks in advance
> 
> Alex
> 
> -----Original Message-----
> From: Adrian Brock [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, June 18, 2003 6:42 PM
> To: [EMAIL PROTECTED]
> Subject: RE: [JBoss-user] "depends on me" startup problem - 
> but redeployment
> works fine!
> 
> 
> Hi,
> 
> The changes to the way the transaction manager is
> deployed have highlighted this problem.
> 
> The root problem is that an ejb shouldn't be
> deployed until its declared invokers have started.
> 
> There are a number of possible workarounds:
> 1) Make the EJB Deployer depend upon the invoker
> (no ejbs will be deployed until the invoker starts)
> 2) Move the transaction manager deployment
> back into jboss-service.xml (allowing the invoker
> to start before the scanner starts looking at /deploy)
> 3) Declare a dependency for each ejb on the invoker(s)
> in jboss.xml
> 
> The real fix will be to make (3) automatic.
> 
> Regards,
> Adrian
> 
> xxxxxxxxxxxxxxxxxxxxxxxx 
> Adrian Brock
> Director of Support
> Back Office
> JBoss Group, LLC 
> xxxxxxxxxxxxxxxxxxxxxxxx 
>  
> 
> > -----Original Message-----
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] On Behalf Of 
> > Bates, Alex
> > Sent: 19 June 2003 01:52
> > To: [EMAIL PROTECTED]
> > Subject: [JBoss-user] "depends on me" startup problem - but 
> > redeployment works fine!
> > 
> > 
> > 
> > I'm trying to deploy Apache OJB in Jboss 3.2.0 as ojb.sar,
> > with two MBeans
> > defined in jboss-service.xml.
> > 
> > This packaging structure worked fine in Jboss 3.0.6, but in
> > 3.2 lots of
> > exceptions are thrown at init, followed by the "depends on 
> > me" message shown
> > below.  The root problem appears to be the "invoker is null" error
> > (jboss:service=invoker,type=jrmp)
> > 
> > Yet, if I redeploy my EJB by copying db-ojb-1.0.rc2-beans.jar
> > (the EJB jar)
> > back into the ojb.sar directory after bringing up Jboss 3.2, 
> > it works fine!
> > 
> > So, it appears that this EJB jar has some dependencies which
> > need to be 
> > explicitly declared in JBoss.  I tried many different 
> > Class-Path references
> > in the EJB's manifest.mf file, but to no avail.  
> > 
> > Any advice would be appreciated (SWAGs are fine too ;-)
> > 
> > ------------------------------------------------------------------
> > 
> > 13:51:24,051 ERROR [URLDeploymentScanner] MBeanException:
> > Exception in MBean
> > 
> > ope
> > ration 'checkIncompleteDeployments()'
> > 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.j2ee:jndiName=org.apache.ojb.ejb.PersonManagerPBBean,service=
> > EJB
> > state: FAILED
> > I Depend On:
> > Depends On Me: java.lang.RuntimeException: invoker is null: 
> > jboss:service=invok
> > er,type=jrmp, ObjectName: 
> > jboss.j2ee:jndiName=org.apache.ojb.ejb.ArticleManagerP
> > BBean,service=EJB
> > state: FAILED
> > I Depend On:
> > Depends On Me: java.lang.RuntimeException: invoker is null: 
> > jboss:service=invok
> > er,type=jrmp, ObjectName: 
> > jboss.j2ee:jndiName=org.apache.ojb.ejb.PersonManagerOD
> > MGBean,service=EJB
> > state: FAILED
> > I Depend On:
> > Depends On Me: java.lang.RuntimeException: invoker is null: 
> > jboss:service=invok
> > er,type=jrmp, ObjectName: 
> > jboss.j2ee:jndiName=org.apache.ojb.ejb.PBSessionBean,s
> > ervice=EJB
> > state: FAILED
> > I Depend On:
> > Depends On Me: java.lang.RuntimeException: invoker is null: 
> > jboss:service=invok
> > er,type=jrmp, ObjectName: 
> > jboss.j2ee:jndiName=org.apache.ojb.ejb.PersonArticleMa
> > nagerODMGBean,service=EJB
> > state: FAILED
> > I Depend On:
> > Depends On Me: java.lang.RuntimeException: invoker is null: 
> > jboss:service=invok
> > er,type=jrmp, ObjectName: 
> > jboss.j2ee:jndiName=org.apache.ojb.ejb.ODMGSessionBean
> > ,service=EJB
> > state: FAILED
> > I Depend On:
> > Depends On Me: java.lang.RuntimeException: invoker is null: 
> > jboss:service=invok
> > er,type=jrmp, ObjectName: 
> > jboss.j2ee:jndiName=org.apache.ojb.ejb.PersonArticleMa
> > nagerPBBean,service=EJB
> > state: FAILED
> > I Depend On:
> > Depends On Me: java.lang.RuntimeException: invoker is null: 
> > jboss:service=invok
> > er,type=jrmp, ObjectName: 
> > jboss.j2ee:jndiName=org.apache.ojb.ejb.ArticleManagerO
> > DMGBean,service=EJB
> > state: FAILED
> > I Depend On:
> > Depends On Me: java.lang.RuntimeException: invoker is null: 
> > jboss:service=invok
> > er,type=jrmp]
> > 
> > 
> > META-INF\jboss-service.xml
> > 
> > <?xml version="1.0" encoding="UTF-8"?>
> > <server>
> >     <mbean code="org.apache.ojb.jboss.PBFactory"
> >         name="DefaultDomain:service=PBAPI,name=ojb/PBAPI">
> >         <depends>jboss.jca:service=RARDeployer</depends>
> >         <attribute name="JndiName">ojb/PBAPI</attribute>
> >     </mbean>
> > 
> >     <mbean code="org.apache.ojb.jboss.ODMGFactory"
> >     name="DefaultDomain:service=ODMG,name=ojb/defaultODMG">
> >         <depends>jboss.jca:service=RARDeployer</depends>
> >         <attribute name="JndiName">ojb/defaultODMG</attribute>
> >     </mbean>
> > </server>
> > 
> > 
> > 
> > 
> > -------------------------------------------------------
> > This SF.Net email is sponsored by: INetU
> > Attention Web Developers & Consultants: Become An INetU
> > Hosting Partner.
> > Refer Dedicated Servers. We Manage Them. You Get 10% Monthly 
> > Commission!
> > INetU Dedicated Managed Hosting 
> http://www.inetu.net/partner/index.php
> > 
> _______________________________________________
> > JBoss-user mailing list
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/jboss-user
> > 
> 
> 
> 
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by: INetU
> Attention Web Developers & Consultants: Become An INetU 
> Hosting Partner.
> Refer Dedicated Servers. We Manage Them. You Get 10% Monthly 
> Commission!
> INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by: INetU
> Attention Web Developers & Consultants: Become An INetU 
> Hosting Partner.
> Refer Dedicated Servers. We Manage Them. You Get 10% Monthly 
> Commission!
> INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
> 





-------------------------------------------------------
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to