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

            Bug ID: 55561
           Summary: Wrong _jspService implementation
           Product: Tomcat 7
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: major
          Priority: P2
         Component: Servlet & JSP API
          Assignee: [email protected]
          Reporter: [email protected]

Good evening,

While migrating Sun Identity Manager 8.1 to Tomcat 7 found the next error when
trying to access login page:

---

Jul 3, 2013 12:53:24 PM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet [jsp] in context with path [/gdi] threw
exception [Unable to compile class for JSP:

An error occurred at line: 68 in the jsp file: /includes/getLocale.jsp
The final local variable request cannot be assigned. It must be blank and not
using a compound assignment
65: }
66: // Create a new "request" parameter to allow forms to properly handle
67: // utf-8 characters
68: request = BufferedRequest.wrap(request);
69:
70:
71: // Defined here but used in getStyleSheet.jsp and userHeader.jsp to setup
the

---

Finally, I realized that previous Tomcat versions had this signature for
_jspService:

public void _jspService(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) throws java.io.IOException,
javax.servlet.ServletException;

but Tomcat 7 declares parameters as final:

public void _jspService(final javax.servlet.http.HttpServletRequest
request,final javax.servlet.http.HttpServletResponse response) throws
java.io.IOException, javax.servlet.ServletException

I've been reading JSP 2.2 Maintenance Release 2
(http://download.oracle.com/otndocs/jcp/jsp-2.2-mrel-eval-oth-JSpec/), and at
page 271 I've found than the method signature must be :

public void _jspService(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws ServletException, IOException

Is this a bug?, should it be corrected?

Cheers,

Pau.

-- 
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