DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=30891>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=30891

Loading configuration problem

           Summary: Loading configuration problem
           Product: Xindice
           Version: cvs head (1.1)
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Server
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


XindiceServlet.java has the code below.

                    // Relative (to the context) path
                    log.debug("Loading configuration from context path " + 
path);
                    ServletContext context = servletConfig.getServletContext();
                    inputStream = context.getResourceAsStream(path);

But this must be
                    inputStream = context.getResourceAsStream("/" + path);

since the API document of ServletContext says
'The path must begin with a "/" and is interpreted as relative to the current 
context root.'

Reply via email to