Commons DbUtils
  1. Commons DbUtils
  2. DBUTILS-2

[dbutils] QueryLoader cannot locate properties file on weblogic

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.0
    • Fix Version/s: 1.1
    • Labels:
      None
    • Environment:

      Operating System: other
      Platform: Other

      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)

        Activity

        Jason Anderson created issue -
        Henri Yandell made changes -
        Field Original Value New Value
        issue.field.bugzillaimportkey 31169 12341714
        Henri Yandell made changes -
        Assignee Jakarta Commons Developers Mailing List [ commons-dev@jakarta.apache.org ]
        Component/s DbUtils [ 12311110 ]
        Project Commons [ 12310458 ] Commons DbUtils [ 12310470 ]
        Key COM-1562 DBUTILS-2
        Affects Version/s 1.0 Final [ 12311651 ]
        Henri Yandell made changes -
        Affects Version/s 1.0 Final [ 12311724 ]
        Henri Yandell made changes -
        Fix Version/s 1.1 [ 12311973 ]
        Henri Yandell made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Unassigned
            Reporter:
            Jason Anderson
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development