Details

    • Type: Bug
    • Status: Resolved
    • Priority: Highest
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.3.0
    • Component/s: None
    • Labels:
    • Severity:
      Major
    • Estimated Complexity:
      Moderate
    • Test cases added:
      Yes

      Description

      Please see the issue in detail at http://stackoverflow.com/questions/30469714/wso2-classpath-what-is-it-and-where-is-it

      The basic problem is that instead of looking into

      <WSO2-5.2.1_HOME>/repository/deployment/server/webapps/<application>/WEB-INF/classes
      

      The file to open is being looked in

      <WSO2-5.2.1_HOME>
      

      For example: I want WSO2 to open Holidays.xml using getClass().getResourceAsStream(). So I provide Holidays.xml as follows:

      <WSO2-5.2.1_HOME>/repository/deployment/server/webapps/<myapp>/WEB-INF/classes/Holidays.xml
      

      Then WSO2 throws FileNotFoundException

      If I provided the file as follows:

      <WSO2-5.2.1_HOME>/Holidays.xml
      

      Everything works fine.

        Attachments

          Activity

            People

            • Assignee:
              supunm@wso2.com Supun Malinga
              Reporter:
              mgandikota@westechmed.com Murthy Gandikota
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: