Hi,

This is my first post to this group ! Rather a newbie
to XDoclet. So pardon for any naivette.

I am using MyEclipse, XDoclet with JBoss 3.2.5 for my
development.

I have a very simple scenario. 
I have an entity bean, JournalMap, which is deployed
in a package say A.jar with the below class tags :

*    @ejb.bean name = "JournalMap"
 *           type = "CMP"
 *           cmp-version = "2.x"
 *           display-name = "JournalMap"
 *           description = "JournalMap EJB"
 *           view-type = "local"
 *           jndi-name = "ejb/JournalMapHome"
 *           local-jndi-name =
"ejb/JournalMapLocalHome"
 *           schema = "JournalMap"


I deployed A.jar - and it was deployed successfully
with no errors.


Now, I have another bean which is deployed in another
package B.jar but in the same J2EE server - and this
bean has a CMR to the above JournalMap bean :

* @ejb.ejb-external-ref
 *              ref-name = "ejb/JournalMap"
 *              business = "testing.interfaces.JournalMapLocal"
 *              home = "testing.interfaces.JournalMapLocalHome"
 *              link = "JournalMap"

and then in my CMR field :

        /**
         * @ejb.relation 
         *              name = "diary-journalentry"
         *              role-name = "diary-has-journal-entries"
         *              target-ejb = "ejb/JournalMap"
         *              target-role-name = "entry-of-diary"
         * 
         * @jboss.relation 
         *              related-pk-field = "associatedID"
         *              fk-column = "associatedID"
         * 
         * @return
         */
        public abstract Collection getDiaryEntries();

But when I try to deploy B.jar, I get the error :

16:59:32,179 ERROR [EntityContainer] Starting failed
jboss.j2ee:jndiName=ejb/DiaryLocalHome,service=EJB
org.jboss.deployment.DeploymentException: Entity:
ejb/JournalMap not found for relation:
diary-journalentry
        at
org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCRelationshipRoleMetaData.<init>(JDBCRelationshipRoleMetaData.java:103)
        at
org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCRelationMetaData.<init>(JDBCRelationMetaData.java:139)
        at
org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCApplicationMetaData.<init>(JDBCApplicationMetaData.java:175)
...


I tried setting the "target-ejb" property value of the
@ejb.relation tag to various other values like
JournalMap, ejb/JournalMapLocal and even
ejb/JournalMapLocalHome  but all throw the same error
!

Is there anything wrong in the way JournalMap has been
configured ? I have deployed with viewtype local - is
that an issue ?

Pl help !

Thanks,
Sathya


        
        
                
___________________________________________________________ALL-NEW Yahoo! Messenger - 
all new features - even more fun!  http://uk.messenger.yahoo.com


-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to