https://issues.apache.org/bugzilla/show_bug.cgi?id=49132

           Summary: JNDI not working
           Product: Tomcat 7
           Version: trunk
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: blocker
          Priority: P2
         Component: Servlet & JSP API
        AssignedTo: [email protected]
        ReportedBy: [email protected]


Simple web-app test to lookup the environment context is throwing an exception
- below code is taken from tomcat 6/7 docs - 2nd line throws a NameNotFound
Exception 'comp' not found.

// Obtain our environment naming context
Context initCtx = new InitialContext();
Context envCtx = (Context) initCtx.lookup("java:comp/env");

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to