Hi Alex, ----- Original Message ----- From: "Bates, Alex" <[EMAIL PROTECTED]> To: "OJB Users List" <[EMAIL PROTECTED]> Sent: Thursday, June 19, 2003 6:37 AM Subject: RE: OJB/JBoss "depends on me" startup problem - but redeployment works fine!
> > I heard back from the Jboss newsgroup on this one. But not sure exactly how > to implement the workaround (Adrian's #3 seems like the best bet). Sorry, I'm only a simple jboss user, so don't ask me ;-). <snip> > 3) Declare a dependency for each ejb on the invoker(s) > in jboss.xml </snip> I read the jboss.dtd but I still not have a clue what to do :-( and can't find any examples. regards, Armin > > Below is the response from Adrian Bock, JBoss Director of Support - > > -----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 > > -----Original Message----- > From: Armin Waibel [mailto:[EMAIL PROTECTED] > Sent: Tuesday, June 17, 2003 10:45 PM > To: OJB Users List > Subject: Re: OJB/JBoss "depends on me" startup problem - but redeployment > works fine! > > > Hi Alex, > > I can confirm this. With JBoss 3.0.6 all works fine, changing to JBoss 3.2.1 > get the described problems when deploying the beans. Redepolying the beans, > all get deployed without problems. I can't figure out what's going wrong. > > > So, it appears that this EJB jar has some dependencies which need to > be > > explicitly declared in JBoss. > Would be great if you could bring to light the hidden > secrets of current JBoss version ;-) > > regards, > Armin > > ----- Original Message ----- > From: "Swordsman 2000" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Tuesday, June 17, 2003 11:04 PM > Subject: OJB/JBoss "depends on me" startup problem - but redeployment works > fine! > > > > Hello, > > > > When I try to bring up the j2ee build of OJB in JBoss, I get lots of > stack > > traces, and finally see the message shown below. The root problem > appears > > to be the "invoker is null" error (jboss:service=invoker,type=jrmp) > > > > Has anyone else encountered these errors/exceptoins? Am I missing > > something? I used the jboss-service.xml file as instructed, have all > the > > relevent files in the ojb.sar directory (running in JBoss 3.2.0), but > get > > this problem. Yet, if I redeploy by copying db-ojb-1.0.rc2-beans.jar > (the > > EJB jar) back into the ojb.sar after bringing up JBoss, it works > fine!! > > > > So, it appears that this EJB jar has some dependencies which need to > be > > explicitly declared in JBoss. > > > > Thanks in advance for any help! > > > > Alex > > > > > > 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> > > > > _________________________________________________________________ > > Protect your PC - get McAfee.com VirusScan Online > > http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
