Uploaded image for project: 'Commons DbUtils'
  1. Commons DbUtils
  2. DBUTILS-2

[dbutils] QueryLoader cannot locate properties file on weblogic

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0
    • 1.1
    • None
    • Operating System: other
      Platform: Other

    • 31169

    Description

      QueryLoader uses QueryLoader.class.getResourceAsStream(path) which looks for a
      resource relative to the current class (QueryLoader), you can use / to indicate
      classpath root but this does not work with weblogic possibly due to the way in
      which weblogic manages the classpath for .war files.

      If I use getClass().getClassLoader().getResourceAsStream(path) instead and dont
      use leading / for the path then this works locally and for weblogic.

      See method: loadQueries(String path)

      Attachments

        Activity

          People

            Unassigned Unassigned
            anderja@oocl.com Jason Anderson
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: