0 Replies Latest reply on Apr 29, 2002 1:08 PM by Emerson Cargnin

    JNDI exception when deploying

    Emerson Cargnin Newbie

      I'm getting the following error when trying to deploy the app (ear=jar+war) to JBoss 3 RC1 :

      14:04:49,953 ERROR [JBossWebApplicationContext#/sicredi] failed to setup ENC
      javax.naming.NamingException: ejb-ref: ejb/CobrancaFacadeEJB, no ejb-link match,
      use jndi-name in jboss-web.xml
      at org.jboss.web.AbstractWebContainer.linkEjbRefs(AbstractWebContainer.j
      ava:739)
      at org.jboss.web.AbstractWebContainer.parseWebAppDescriptors(AbstractWeb
      Container.java:564)
      at org.jboss.web.AbstractWebContainer$DescriptorParser.parseWebAppDescri
      ptors(AbstractWebContainer.java:1050)
      at org.jboss.jetty.JBossWebApplicationContext.setUpENC(JBossWebApplicati
      onContext.java:272)
      at org.jboss.jetty.JBossWebApplicationContext.startHandlers(JBossWebAppl
      icationContext.java:258)


      ejb-jar.xml :


      <![CDATA[Session Facade controlador das funcoes relativas a cobranca]]>

      <ejb-name>ejb/CobrancaFacadeEJB</ejb-name>

      br.com.sicredi.cobranca.ambos.ejbinterface.CobrancaFacadeHome
      br.com.sicredi.cobranca.ambos.ejbinterface.CobrancaFacade
      <ejb-class>br.com.sicredi.cobranca.servidor.ejb.CobrancaFacadeEJB</ejb-class>
      <session-type>Stateless</session-type>
      <transaction-type>Container</transaction-type>



      ejf-ref inside web.xml:

      <ejb-ref>
      <ejb-ref-name>ejb/CobrancaFacadeEJB</ejb-ref-name>
      <ejb-ref-type>Session</ejb-ref-type>
      br.com.sicredi.cobranca.ambos.ejbinterface.CobrancaFacadeHome
      br.com.sicredi.cobranca.ambos.ejbinterface.CobrancaFacade
      </ejb-ref>


      Do i have to create a jboss-web.xml to map the correct jndi name, what the ejb container takes for default of the jndi-name???