Armin, I'm not sure about xdoclet - since this requirement just came out in 3.2 would guess not. Unless they have some sort of 'custom' tag that lets you insert your own element.
Alex -----Original Message----- From: Armin Waibel [mailto:[EMAIL PROTECTED] Sent: Friday, June 20, 2003 12:45 AM To: OJB Users List Subject: Re: How to deploy OJB on Jboss 3.2 Hi Alex, great news! Many thanks. Does xdoclet support the <depends> element? regards, Armin ----- Original Message ----- From: "Bates, Alex" <[EMAIL PROTECTED]> To: "OJB Users List" <[EMAIL PROTECTED]> Sent: Friday, June 20, 2003 2:49 AM Subject: How to deploy OJB on Jboss 3.2 > Armin, > > Found the fix to get OJB to deploy (without having to redeploy) on JBoss 3.2 > with its new classloader scheme. > > The jboss.xml from db-ojb-1.0.rc2-beans.jar must be modified to this: (the > change is a new depends element added in) > > > jboss.xml > > <?xml version="1.0" encoding="UTF-8"?> > <!DOCTYPE jboss PUBLIC "-//JBoss//DTD JBOSS//EN" > "http://www.jboss.org/j2ee/dtd/jboss.dtd"> > > <jboss> > > <enterprise-beans> > > <session> > <ejb-name>ODMGSessionBean</ejb-name> > <jndi-name>org.apache.ojb.ejb.ODMGSessionBean</jndi-name> > > <local-jndi-name>org.apache.ojb.ejb.ODMGSessionBeanLocal</local-jndi-nam e> > <depends > optional-attribute-name="Invoker">jboss:service=invoker,type=jrmp</depen ds> > </session> > <session> > <ejb-name>PBSessionBean</ejb-name> > <jndi-name>org.apache.ojb.ejb.PBSessionBean</jndi-name> > > <local-jndi-name>org.apache.ojb.ejb.PBSessionBeanLocal</local-jndi-name> > <depends > optional-attribute-name="Invoker">jboss:service=invoker,type=jrmp</depen ds> > </session> > <session> > <ejb-name>ArticleManagerODMGBean</ejb-name> > <jndi-name>org.apache.ojb.ejb.ArticleManagerODMGBean</jndi-name> > > <local-jndi-name>org.apache.ojb.ejb.ArticleManagerODMGBeanLocal</local-j ndi- > name> > <depends > optional-attribute-name="Invoker">jboss:service=invoker,type=jrmp</depen ds> > </session> > <session> > <ejb-name>ArticleManagerPBBean</ejb-name> > <jndi-name>org.apache.ojb.ejb.ArticleManagerPBBean</jndi-name> > > <local-jndi-name>org.apache.ojb.ejb.ArticleManagerPBBeanLocal</local-jnd i-na > me> > <depends > optional-attribute-name="Invoker">jboss:service=invoker,type=jrmp</depen ds> > </session> > <session> > <ejb-name>PersonArticleManagerODMGBean</ejb-name> > > <jndi-name>org.apache.ojb.ejb.PersonArticleManagerODMGBean</jndi-name> > > <local-jndi-name>org.apache.ojb.ejb.PersonArticleManagerODMGBeanLocal</l ocal > -jndi-name> > <depends > optional-attribute-name="Invoker">jboss:service=invoker,type=jrmp</depen ds> > </session> > <session> > <ejb-name>PersonArticleManagerPBBean</ejb-name> > > <jndi-name>org.apache.ojb.ejb.PersonArticleManagerPBBean</jndi-name> > > <local-jndi-name>org.apache.ojb.ejb.PersonArticleManagerPBBeanLocal</loc al-j > ndi-name> > <depends > optional-attribute-name="Invoker">jboss:service=invoker,type=jrmp</depen ds> > </session> > <session> > <ejb-name>PersonManagerODMGBean</ejb-name> > <jndi-name>org.apache.ojb.ejb.PersonManagerODMGBean</jndi-name> > > <local-jndi-name>org.apache.ojb.ejb.PersonManagerODMGBeanLocal</local-jn di-n > ame> > <depends > optional-attribute-name="Invoker">jboss:service=invoker,type=jrmp</depen ds> > </session> > <session> > <ejb-name>PersonManagerPBBean</ejb-name> > <jndi-name>org.apache.ojb.ejb.PersonManagerPBBean</jndi-name> > > <local-jndi-name>org.apache.ojb.ejb.PersonManagerPBBeanLocal</local-jndi -nam > e> > <depends > optional-attribute-name="Invoker">jboss:service=invoker,type=jrmp</depen ds> > </session> > > </enterprise-beans> > > <resource-managers> > </resource-managers> > > </jboss> > > > -----Original Message----- > From: Bates, Alex > Sent: Wednesday, June 18, 2003 9:37 PM > To: OJB Users List > 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). > > 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] > > --------------------------------------------------------------------- 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]