0 Replies Latest reply on Jul 15, 2002 5:36 AM by ygmarchi

    ejb-local-ref

    ygmarchi

      Hi everybody.

      My problem is that I get an error because jboss does not
      seem to resolve an ejb-local-ref to a jndi name, even
      though I declared an entry in the jboss-web.xml.

      I'm using jboss 3.0.0 with Jetty.

      In the web.xml there is an entry:

      <ejb-local-ref>
      <ejb-ref-name>ejb/Utente</ejb-ref-name>
      <ejb-ref-type>Entity</ejb-ref-type>
      <local-home>carlo.vam.data.ejb.UtenteHome</local-home>
      carlo.vam.data.ejb.Utente
      </ejb-local-ref>


      which should be resolved thanks to the following
      entry in jboss-web.xml

      <ejb-ref>
      <ejb-ref-name>ejb/Utente</ejb-ref-name>
      <jndi-name>carlo/vam/data/Utente</jndi-name>
      </ejb-ref>


      Instead jboss on deployment gives the following exception:

      Caused by: javax.naming.NamingException: ejb-local-ref: ejb/Utente, target not found, add valid ejb-link


      ... it says to add a valid ejb-link which should not
      be mandatory according to the spec.

      Anybody can help me?