You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by "Jürgen Weber (JIRA)" <ji...@apache.org> on 2009/06/19 19:38:07 UTC

[jira] Created: (GERONIMO-4701) better Exception for missing

better Exception for missing <ejb-local-ref>
--------------------------------------------

                 Key: GERONIMO-4701
                 URL: https://issues.apache.org/jira/browse/GERONIMO-4701
             Project: Geronimo
          Issue Type: Improvement
      Security Level: public (Regular issues)
          Components: web
    Affects Versions: 2.1.4
            Reporter: Jürgen Weber
            Priority: Minor


If a JSP tries to look up an EJB reference and there is no corresponding <ejb-local-ref> in web.xml 

e.g.    context.lookup("java:comp/env/ejb/Secured3");

Geronimo throws 

javax.naming.NotContextException: ejb/Secured3

This exception is misleading, it should rather be something like "no <ejb-local-ref> found for ejb/Secured3"


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.