geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jürgen Weber (JIRA) <j...@apache.org>
Subject [jira] Created: (GERONIMO-4701) better Exception for missing <ejb-local-ref>
Date Fri, 19 Jun 2009 17:38:07 GMT
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.


Mime
View raw message