0 Replies Latest reply on Aug 19, 2003 5:50 AM by theone

    no method permissions assigned

    theone Newbie

      Hi,
      I am trying out the JASS thing on jboss-3.0.4/3.0.8. ,j2sdk1.4.1_02. Iam getting following exception.

      ---------------------------------------------------------------------
      No method permissions assigned to method=create, in
      terface=HOME
      at org.jboss.ejb.plugins.SecurityInterceptor.checkSecurityAssociation(Se
      curityInterceptor.java:190)
      at org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityIntercep
      tor.java:94)
      at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:1
      33)
      at org.jboss.ejb.StatelessSessionContainer.invokeHome(StatelessSessionCo
      ntainer.java:300)
      at org.jboss.ejb.Container.invoke(Container.java:756)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
      at org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:
      383)
      ---------------------------------------------------------------------


      My xmls are


      ejb-jar.xml
      ---------------------------------------------------------------------
      <?xml version="1.0"?>
      <!DOCTYPE ejb-jar PUBLIC '-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN' 'http://java.sun.com/dtd/ejb-jar_2_0.dtd'>
      <ejb-jar>
      Item Existence Checker
      <display-name>AeroBeans</display-name>
      <enterprise-beans>

      <ejb-name>ItemCheck</ejb-name>
      ItemSBHome
      ItemSB
      <local-home>ItemSBLocalHome</local-home>
      ItemSBLocal
      <ejb-class>ItemSBBean</ejb-class>
      <session-type>Stateless</session-type>
      <transaction-type>Container</transaction-type>
      <security-role-ref>
      <role-name>CREATE_AC</role-name>
      </security-role-ref>


      <ejb-name>ItemCtrl</ejb-name>
      ItemCtrlHome
      ItemCtrl
      <ejb-class>ItemCtrlBean</ejb-class>
      <session-type>Stateless</session-type>
      <transaction-type>Container</transaction-type>
      <ejb-local-ref>

      This is a reference to the entity bean that
      encapsulates access to ItemCheck bean.

      <ejb-ref-name>ejb/ItemCheck</ejb-ref-name>
      <ejb-ref-type>Session</ejb-ref-type>
      <local-home>ItemSBHome</local-home>
      ItemSB
      <ejb-link>ItemCheck</ejb-link>
      </ejb-local-ref>
      <security-role-ref>
      <role-name>CREATE_AC</role-name>
      <role-link>CREATE_AC</role-link>
      </security-role-ref>


      <assembly-descriptor>
      <security-role>
      <role-name>CREATE_AC</role-name>
      </security-role>
      <method-permission>
      <role-name>CREATE_AC</role-name>

      <ejb-name>ItemCtrl</ejb-name>
      <method-name>*</method-name>


      <ejb-name>ItemCheck</ejb-name>
      <method-name>*</method-name>

      </method-permission>
      </assembly-descriptor>
      </enterprise-beans>

      </ejb-jar>

      --------------------------------------------------------------------


      jboss.xml

      -------------------------------------------------------------------
      <?xml version="1.0" encoding="UTF-8"?>

      <security-domain>java:/jaas/example1</security-domain>

      <enterprise-beans>

      <ejb-name>ItemCtrl</ejb-name>
      <jndi-name>ItemCtrl</jndi-name>



      <ejb-name>ItemCheck</ejb-name>
      <jndi-name>ItemCheck</jndi-name>

      </enterprise-beans>



      -------------------------------------------------------------------
      configuration file
      -------------------------------------------------------------------

      // An example of the SRP login module

      example1 {
      org.jboss.security.ClientLoginModule required;
      };

      other {

      // JBoss LoginModule
      org.jboss.security.ClientLoginModule required;

      };

      ---------------------------------------------------------------------



      sorry if i got it reposted, coz the file attach thing wasnt working.



      any help will be appreciated.

      regards,

      theone.