0 Replies Latest reply on Jun 16, 2004 4:05 PM by horus

    How to deploy an EJB?

    horus Newbie

      I don't know exactly how to deploy an EJB.
      I get the fallowing error while deploying:
      Error during deploy; - nested throwable: <javax.naming.NamingException: ejb-ref: ejb/cmproster/roster, no ejb-link in web.xml and no jndi-name in jboss-web.xml>

      my web.xml:
      <web-app>
      <display-name>RosterWAR</display-name>
      no description
      <ejb-ref>
      no description
      <ejb-ref-name>ejb/cmproster/roster</ejb-ref-name>
      <ejb-ref-type>Session</ejb-ref-type>
      ejb.cmproster.roster.RosterHome
      ejb.cmproster.roster.Roster
      </ejb-ref>
      </web-app>

      jboss-web.xml<jboss-web>
      <!-- Uncomment this element to add security for the application -->
      <!-- <security-domain>java:/jaas/roster</security-domain> -->
      <ejb-ref>
      <ejb-ref-name>ejb/cmproster/roster</ejb-ref-name>
      <jndi-name>RosterController</jndi-name>
      </ejb-ref>
      </jboss-web>


      please help me, urgent...

      Regards,
      Mirko