2 Replies Latest reply on Jul 29, 2007 3:37 PM by kabirb

    JNDI Netbeans Error

    kabirb

      Hi

      I have been working on a minor EJB 3 project. My project consists of a couple entities with One to Many relationships. In the initial phase of the project I worked with one set of entities. I got everything working. I think added the rest of the entities and started working on the servlets.

      And now the error pops out of no where!
      java.lang.RuntimeException: javax.naming.NameNotFoundException: VeterinaryInformationSystem not bound

      VeterinaryInformationSystem is the name of the project.
      I have added java:/DefautDS to the persistent file.
      My lookup is as follows
      return (ImmunizationEntityFacadeLocal) c.lookup("VeterinaryInformationSystem/ImmunizationEntityFacade/local");

      I have tried everything to fix it but it just won't come right. This look up worked before so I don't understand how it can suddenly stop working!

        • 1. Re: JNDI Netbeans Error
          kabirb

          The Full error is as follows
          java.lang.RuntimeException: javax.naming.NameNotFoundException: VeterinaryInformationSystem not bound
          web.vetServlet.lookupImmunizationEntityFacade(vetServlet.java:130)
          web.vetServlet.processRequest(vetServlet.java:71)
          web.vetServlet.doGet(vetServlet.java:95)
          javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
          javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
          org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)

          • 2. Re: JNDI Netbeans Error
            kabirb

            The actual error was because I was using multiple bags.... when using fetchType eager on 2 OneToMany entities having the same entity on the ManyToOne side.... solutions use a list and a set