Uploaded image for project: 'JBoss Log Manager'
  1. JBoss Log Manager
  2. LOGMGR-17

Logging with a ResourceBundle finds message from another WAR

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 1.2.0.CR4
    • None
    • None
    • None

      I'm attaching two WARs to demonstrate. foo.war and bar.war are identical except for the message in the resource bundle.

      Hit
      http://localhost:8080/foo/index.jsp
      http://localhost:8080/bar/index.jsp
      http://localhost:8080/foo/index.jsp

      Both will output the correct message to the browser when the lookup is done from ResourceBundle.getString(). But the log message it sends will not always be correct. "bar" always wins. As soon as "bar" has been called then "foo" can no longer log the correct message.

        1. bar.war
          2 kB
        2. foo.war
          2 kB

            dlloyd@redhat.com David Lloyd
            ssilvert@redhat.com Stan Silvert
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: