Ok, I am trying to add a user to their rating of a download. I use the following for 
the interface method.

   /**
  |     * @ejb.interface-method
  |     * @ejb.relation
  |     *    name="DownloadRatings[-]User"
  |     *    role-name="DownloadRatings-]User"
  |     *    target-ejb="UserEJB"
  |     *    target-role-name="User-]DownloadRatings"
  |     *    target-multiple="yes"
  |     * @jboss.relation
  |     *    fk-column="userId"
  |     *    related-pk-field="id"
  |     * @jboss.method-attributes
  |     *    read-only="true"
  |     */
  | 

 It builds ok but when it is deployed I am getting the following exception.


  | org.jboss.deployment.DeploymentException: Entity: UserEJB not found for relation: 
DownloadRatings[-]User
  |     at 
org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCRelationshipRoleMetaData.<init>(JDBCRelationshipRoleMetaData.java:106)
  |     at 
org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCRelationMetaData.<init>(JDBCRelationMetaData.java:133)
  |     at 
org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCApplicationMetaData.<init>(JDBCApplicationMetaData.java:174)
  |     at 
org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCXmlFileLoader.load(JDBCXmlFileLoader.java:52)
  |     at 
org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.loadJDBCEntityMetaData(JDBCStoreManager.java:706)
  |     at 
org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.initStoreManager(JDBCStoreManager.java:409)
  |     at 
org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.start(JDBCStoreManager.java:357)
  |     at 
org.jboss.ejb.plugins.CMPPersistenceManager.start(CMPPersistenceManager.java:152)
  |     at org.jboss.ejb.EntityContainer.startService(EntityContainer.java:342)
  |     at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:192)
  |     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  |     at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  |     at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  |     at java.lang.reflect.Method.invoke(Method.java:324)
  |     at 
org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
  | ...
  | 

I have tried to follow how bb module does it but then the DownloadsRatingsEJB module 
is not built. Sorry for the EJB question but I am very new at all this EJB stuff and I 
hope you don't mind helping a novice EJB programmer out.

Thanks,


<a 
href="http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3825511#3825511";>View 
the original post</a>

<a 
href="http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3825511>Reply 
to the post</a>


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to