2 Replies Latest reply on Apr 13, 2004 4:11 PM by carlosgyn

    error of deploy

    carlosgyn

      It sees as this mine ejb-jar.xml:
      </enterprise-beans>
      <ejb-name>RelClientePessoaFisicaBean</ejb-name>
      <ejb-home>relatorio.relClientePessoaFisica.ejb.RelClientePessoaFisicaHome
      relatorio.relClientePessoaFisica.ejb.RelClientePessoaFisica
      <ejb-class>relatorio.relClientePessoaFisica.ejb.RelClientePessoaFisicaBean</ejb-class>
      <session-type>Stateless</session-type>
      <transaction-type>Bean</transaction-type>
      </enterprise-beans>
      <method-permission>
      <ejb-name>RelClientePessoaFisicaBean</ejb-name>
      <method-name>*</method-name>
      </method-permission>

      Now because of this error:
      org.jboss.deployment.DeploymentException: Error in ejb-jar.xml, in method-permission: An unchecked element or one or more role-name elements must be specified in method-permission
      at org.jboss.metadata.ApplicationMetaData.importEjbJarXml(ApplicationMet
      aData.java:463)

        • 1. Re: error of deploy
          chawla1975

          as the error says, u do need to put role-name tag in your method permission element. it should look like
          <method-permission>
          <role-name>guest</role-name>

          ...

          </method-permission>

          hope this helps

          • 2. Re: error of deploy
            carlosgyn

            Interesante that any archive .jar that I to try to make deploy error happens the same.

            I would not have that to modify some archive .xml of the JBOSS?