2 Replies Latest reply on Nov 1, 2001 12:46 AM by cidylong

    NameNotBoundException

    davidt

      Hi, I am using JBoss 2.4.3 + Tomcat (the pack offered in jboss.org). Everything was fine, I created some servlets and they integrated wonderfully with the beans I wrote.

      Now, for some reason, which I cannot find, the servlets began today to throw NameNotFoundException when looking for the bean. I checked and the server responses well to a client applications using this JBoss server.

      the name I am looking for is "java:comp/AuthHome", it says that AuthHome is not bound. I can learn from that, that the server responses but does not bound the bean name.

      Can anyone think of a reason why this error occurred?

      Note that I used all JBoss's defaults, I did not add <ejb-ref> tags to the web.xml file, and no context parameters, according to what I read it is made by JBoss.


      Thanks in advance!
      David.

        • 1. Re: NameNotBoundException
          hstech

          Hi David,

          Check out the JNDI View (http://localhost:8082/) to see if the bean is mapped in JNDI. This should give you a starting point.

          Cheers,
          Aaron.

          • 2. Re: NameNotBoundException
            cidylong

            Aaron

            I got same problem. I check the jndi repostry with http://localhost:8082 I got some thing like

            Management
            jnidName=interest/Interest
            service=Collector

            the problem is ejb was registried under Management and the name as jnidName

            Maybe some thing wrong here.

            So when I look up with java:/comp/env/interest/Interest

            the lookup always fail by exception

            javax.naming.NameNotFoundException: Name interest is not bound in this Context

            So what's wrong with that?

            Please help me, I live in Melburne.

            Cidy