Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-5918

ServletContext.getResourceAsStream fails on windows

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 10.0.0.Final
    • 10.0.0.CR5
    • Web (Undertow)
    • None
    • Hide

      Try to deploy a simple struts 1 configuration or create a simple Servlet that calls the getServletContext().getResourceAsStream("/a-resource-file") deployed in the web application.
      More information about the structure of the ear and web application is available in the forum post I made earlier but I am happy to copy this back into this JIRA if you want me too.

      Show
      Try to deploy a simple struts 1 configuration or create a simple Servlet that calls the getServletContext().getResourceAsStream("/a-resource-file") deployed in the web application. More information about the structure of the ear and web application is available in the forum post I made earlier but I am happy to copy this back into this JIRA if you want me too.

    Description

      Struts 1 ActionServlet fails to initialize with latest Wildfly 10.0.0 CR5 though it was working fine on the previous CR4 release. The failure occurs when Servlet tries to read the /WEB-INF/web.xml inside my web application.

      Looking at the struts source code, getServletContext().getResourceAsStream("/WEB-INF/web.xml") returns null during the Servlet initialization.

      problem only occurs when server is started from path that is not case equal to real path on file system.

      Attachments

        Issue Links

          Activity

            People

              sdouglas1@redhat.com Stuart Douglas
              alban.chadenas@exelaonline.eu Alban Chadenas
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: