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

             Bug #: 52792
           Summary: Incomplete error message when lookup a resource that
                    is not bound in the naming
           Product: Tomcat 7
           Version: 7.0.26
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: trivial
          Priority: P2
         Component: Catalina
        AssignedTo: dev@tomcat.apache.org
        ReportedBy: violet...@apache.org
    Classification: Unclassified


Created attachment 28401
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=28401
Patch proposal

Hi,

I have a servlet that specifies @Resource on a field level. (see attached
sample application)
When a request comes for this servlet, Tomcat tries to inject this resource and
to instantiate the servlet. If the resource is not found, 500 ISE is returned
as a response code. In the error message returned in the error page, it is not
specified the full composite name that Tomcat tries to lookup, but only the
first part (the context) (see incorrect.png). Thus the end user cannot
understand which is the resource that causes the problem, but only the context
that cannot be found.

I would like to propose a patch (attached). A screenshot (correct.png) with
corrected error message is also attached.

Thanks in advance.
Regards,
Violeta Georgieva

-- 
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: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to