php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #4000 Errors in sapi/servlet/servlet.java
Submitted: 2000-04-01 17:14 UTC Modified: 2000-04-01 20:01 UTC
From: sashi at easy dot com dot au Assigned: rubys (profile)
Status: Closed Package: Compile Failure
PHP Version: 4.0 Release Candidate 1 OS: Mandrake Linux 7.0
Private report: No CVE-ID: None
 [2000-04-01 17:14 UTC] sashi at easy dot com dot au
There are two errors in the servlet.java file in sapi/servlet that result in compilation errors when running make (ie. I first did a "configure --with-servlet=/usr/local/jsdk2.0"):

Line 89:
"response.addHeader(...)" should actually be 
"response.setHeader(...)" according to the API documentation for javax.servlet.http.HttpServletResponse.

Line 135:
"throw new ServletException(e)" should actually be 
"throw new ServletExecption(e.toString())"

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-04-01 18:25 UTC] rubys at cvs dot php dot net
At the moment, I'm only supporting the 2.2 level of the servlet specification, but I will take a look at adding support for 2.0.
 [2000-04-01 20:01 UTC] rubys at cvs dot php dot net
I've committed some changes which will enable servlet.java to compile cleanly using either the 2.0 or 2.2 levels of the JSDK.

I've tested the result using 2.2, but have not attempted to do so with 2.0.  If you have any problems, let me know.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Sat Oct 10 05:00:01 2026 UTC