>Number: 5011 >Category: mod_jserv >Synopsis: bad naming of resource in JServSrrvletManager.java >Confidential: no >Severity: non-critical >Priority: medium >Responsible: jserv >State: open >Class: sw-bug >Submitter-Id: apache >Arrival-Date: Tue Sep 14 15:20:01 PDT 1999 >Last-Modified: >Originator: [EMAIL PROTECTED] >Organization: apache >Release: jserv 1.0 >Environment: n/a >Description: .initArgs properties files are broken under Windows, because JServServletManager.java uses File.separatorChar to name the file as a resource, but resources should always be named with a forward slash ('/') char, regardless of platform. [See http://java.sun.com/products/jdk/1.2/docs/guide/resources/resources.html] >How-To-Repeat: >Fix: Replace File.separatorChar with '/' in the following code.
--- // Try to load a property file classname.initArgs try { InputStream argsIn = loader.getResourceAsStream(classname.replace('.', File.separatorChar) + ".initArgs"); if (argsIn != null) { try { initargs.load(new BufferedInputStream(argsIn)); } finally { argsIn.close(); } } } catch(IOException ignored) {} >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! ]