Hi all,
I'm trying to learn how to use CMR and have two beans that implement at many to many CMR relation with each other. The tables get created (including the many to many table) but from a Stateless Session bean I am currently unable to call the getCoiList() method (one side of the many to many relation) so that I can add and remove members from the Collection.
I get the following exceptions:
16:54:53,744 ERROR [SecurityInterceptor] No method permissions assigned to method=getCoiList
16:54:53,905 ERROR [STDERR] java.rmi.ServerException: null
Embedded Exception
null; nested exception is:
javax.ejb.EJBException: null
Embedded Exception
null
16:54:53,907 ERROR [STDERR] javax.ejb.EJBException: null
Embedded Exception
null
16:54:53,908 ERROR [STDERR] at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:664)
16:54:53,909 ERROR [STDERR] at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:147)
16:54:53,910 ERROR [STDERR] at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:77)
16:54:53,912 ERROR [STDERR] at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:96)
16:54:53,913 ERROR [STDERR] at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:167)
I'm using XDoclet 1.1.2 to generate the ejb-jar and it's output looks find for the method permissions:
<method-permission>
description not supported yet by ejbdoclet
<role-name>publisher</role-name>
<ejb-name>RepositoryEntry</ejb-name>
<method-intf>Local</method-intf>
<method-name>getCoiList</method-name>
<method-params>
</method-params>
</method-permission>
The role-name is specified, so I can't figure out why the call to the local interface isn't working. Any ideas?
-T