The problem is that the classes from the packages are not visible to each other due to classloader architecture. You should package and deploy the app making sure the JAR with DDs defining relationships sees all the needed classes.
alex Monday, July 21, 2003, 3:09:29 PM, Ionel Gardais wrote: IG> Hi, IG> I have a serious problem with CMR relationship inside 2 bean packages IG> deployed inside the same EAR. IG> Using Xdoclet-1.3dev and JBoss3.2.1-Tomcat4.1.24. IG> Here are my questions : IG> - does CMR works between bean packages inside an EAR ? IG> - the two beans of my relationship are Person and Project. It's a IG> unidirectionnal M:N relationship (Project manage the relationship and IG> Person is not aware of it). IG> Beans are stored in separate packages. Both packages are loaded inside IG> the application.xml. IG> I use a relation-table to manage this relationship. IG> In my Project bean, I declare this CMR field : IG> <code> IG> /** IG> * @ejb.relation IG> * name="PROJECT-TO-MANAGERS-RELATION" IG> * role-name="project-ismanagedby-persons" IG> * target-ejb="PersonEJB" IG> * target-role-name="persons-manage-project" IG> * target-multiple="yes" IG> * @ejb.interface-method IG> * view-type="local" IG> * @jboss.relation-mapping IG> * style="relation-table" IG> * @jboss.relation-table IG> * table-name="P2M" IG> * create-table="true" IG> * remove-table="false" IG> * @jboss.relation IG> * related-pk-field="id" IG> * fk-column="IdM" IG> * @jboss.target-relation IG> * related-pk-field="id" IG> * fk-column="IdP" IG> * [EMAIL PROTECTED] IG> * --aggregate="techadvantage.beans.PersonValue" IG> * --aggregate-name="Manager" IG> * --members="techadvantage.beans.PersonLocal" IG> * --members-name="Manager" IG> * --relation="external" IG> * --type="Collection" IG> */ IG> public abstract java.util.Collection getManagers(); IG> /** IG> * @ejb.interface-method IG> * view-type="local" IG> */ IG> public abstract void setManagers(java.util.Collection personnes); IG> </code> IG> But when I deploy this under JBoss, I get a DeploymentException : IG> <exception> IG> Xdoclet parse it well.13:24:51,708 ERROR [EntityContainer] Starting failed IG> org.jboss.deployment.DeploymentException: Entity: PersonEJB not found IG> for: [EMAIL PROTECTED] IG> at IG> org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCRelationshipRoleMetaData.<init>(JDBCRelationshipRoleMetaData.java:103) IG> at IG> org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCRelationMetaData.<init>(JDBCRelationMetaData.java:127) IG> at IG> org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCApplicationMetaData.<init>(JDBCApplicationMetaData.java:154) IG> at IG> org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCXmlFileLoader.load(JDBCXmlFileLoader.java:52) IG> at IG> org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.loadJDBCEntityMetaData(JDBCStoreManager.java:737) IG> ... IG> </exception> IG> I look at the JNDI tree and PersonEJB have been deployed well. IG> I also tryed to add an @ejb.ejb-external-ref in the Project bean but it IG> doesn't solve anything. IG> <code> IG> * @ejb.ejb-external-ref IG> * view-type="local" IG> * type="Entity" IG> * home="techadvantage.beans.PersonLocalHome" IG> * business="techadvantage.beans.PersonLocal" IG> * --link="PersonEJB" IG> * ref-name="ejb/qualite/PersonneLocal" IG> </code> IG> Why does it fail ? Is there a solution ? IG> - As you can see, the @ejb.value-object is commented out because else, I IG> get "file not found in source tree ...". Is it possible to use external IG> relationship within value-objects ? IG> I am in a hurry and I can't find out what is going on. IG> thanks for helping, IG> ionel ------------------------------------------------------- This SF.net email is sponsored by: VM Ware With VMware you can run multiple operating systems on a single machine. WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the same time. Free trial click here: http://www.vmware.com/wl/offer/345/0 _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user