>Number: 4878 >Category: mod_jserv >Synopsis: failed to list the loaded servlets of no aliases defined in >the property file >Confidential: no >Severity: serious >Priority: medium >Responsible: jserv >State: open >Class: sw-bug >Submitter-Id: apache >Arrival-Date: Wed Aug 18 18:40:01 PDT 1999 >Last-Modified: >Originator: [EMAIL PROTECTED] >Organization: apache >Release: Apache 1.3.6 + Jserv 1.0 >Environment: MS WinNT 4.0, JDK1.2 >Description: ... ServletContext context = getServletContext(); Enumeration names = context.getServletNames(); while (names.hasMoreElements()) { System.err.println("servlet: "+(String)names.nextElement()); } ...
The above program supposed to print out the names of all the loaded servlets. But the result turned out those servlets of no aliases defined were missing. >How-To-Repeat: >Fix: If a servlet has no alias defined, its fully-qualified class name should be used instead. >Audit-Trail: >Unformatted: [In order for any reply to be added to the PR database, you need] [to include <[EMAIL PROTECTED]> in the Cc line and make sure the] [subject line starts with the report component and number, with ] [or without any 'Re:' prefixes (such as "general/1098:" or ] ["Re: general/1098:"). If the subject doesn't match this ] [pattern, your message will be misfiled and ignored. The ] ["apbugs" address is not added to the Cc line of messages from ] [the database automatically because of the potential for mail ] [loops. If you do not include this Cc, your reply may be ig- ] [nored unless you are responding to an explicit request from a ] [developer. Reply only with text; DO NOT SEND ATTACHMENTS! ]