users@glassfish.java.net

JNDI Lookup exceptions

From: <glassfish_at_javadesktop.org>
Date: Tue, 02 Mar 2010 14:41:02 PST

We get the following error many times a day in our Glassfish 2.1 logs:

NAM0004: Exception during name lookup : {0}
com.sun.enterprise.connectors.ConnectorRuntimeException: This pool is not bound in JNDI :

This error occurs in several different applications, all are using EJB 3 annonations.
The exception in thrown in the lookup code generated by Netbeans. These are all Local EJBs.

private LoginSvcs lookupLoginSvcsBean() {
        try {
            Context c = new InitialContext();
            return (LoginSvcs) c.lookup("java:comp/env/LoginSvcsBean");
        } catch (NamingException ne) {
            Logger.getLogger(getClass().getName()).log(Level.SEVERE, "exception caught", ne);
            throw new RuntimeException(ne);
        }

The pool can be pinged from the Admin Console and the look up does not fail every time.

Does anyone have an idea what is going on?
[Message sent by forum member 'bryanut' (bwooten_at_acs.utah.edu)]

http://forums.java.net/jive/thread.jspa?messageID=389706