Uploaded image for project: 'JBoss Enterprise Application Platform 4 and 5'
  1. JBoss Enterprise Application Platform 4 and 5
  2. JBPAPP-2231

Patch commons-logging so that Jasper doesn't use a deployment's logj4.jar when compiling a JSP in that deployment

XMLWordPrintable

    • Icon: Support Patch Support Patch
    • Resolution: Done
    • Icon: Major Major
    • One Off Releases
    • 4.3.0.GA_CP03
    • None
    • None
    • Hide
      PATCH NAME:
              JBPAPP-2231
      PRODUCT NAME:
              JBoss Application Server/Platform
      VERSION:
              4.3 CP03
      SHORT DESCRIPTION:
              Jasper Uses A Deployment's log4j.jar When Compiling JSPs
      LONG DESCRIPTION:
              If a deployment (e.g. a WAR) packages its own log4j.jar then Jasper will use that log4j.jar when compiling the deployment's JSPs. This can cause strange behavior. With this patch, Jasper uses the log4j.jar shipped with JBoss regardless of the deployment's contents.
      MANUAL INSTALL INSTRUCTIONS:
              Remove %JBOSS_HOME%/lib/commons-logging.jar
              Copy the new commons-logging.jar to %JBOSS_HOME%/lib/commons-logging.jar

              Rename %JBOSS_HOME%/server/default/lib/commons-logging.jar to "commons-logging.JBPAPP-2231.jar.old"
              Copy the new commons-logging.jar to %JBOSS_HOME%/server/default/lib/commons-logging.jar

              Rename %JBOSS_HOME%/server/all/lib/commons-logging.jar to "commons-logging.JBPAPP-2231.jar.old"
              Copy the new commons-logging.jar to %JBOSS_HOME%/server/all/lib/commons-logging.jar

              Rename %JBOSS_HOME%/server/production/lib/commons-logging.jar to "commons-logging.JBPAPP-2231.jar.old"
              Copy the new commons-logging.jar to %JBOSS_HOME%/server/production/lib/commons-logging.jar

              Follow this same procedure for any custom server configuration/profile that needs this patch.
      COMPATIBILITY:
              N/A
      DEPENDENCIES:
              N/A
      SUPERSEDES:
              N/A
      SUPERSEDED BY:
              JBoss EAP 4.3 CP07
      CREATOR:
              Justin Bertram
      DATE:
              2009/07/22
      Show
      PATCH NAME:          JBPAPP-2231 PRODUCT NAME:         JBoss Application Server/Platform VERSION:         4.3 CP03 SHORT DESCRIPTION:         Jasper Uses A Deployment's log4j.jar When Compiling JSPs LONG DESCRIPTION:         If a deployment (e.g. a WAR) packages its own log4j.jar then Jasper will use that log4j.jar when compiling the deployment's JSPs. This can cause strange behavior. With this patch, Jasper uses the log4j.jar shipped with JBoss regardless of the deployment's contents. MANUAL INSTALL INSTRUCTIONS:         Remove %JBOSS_HOME%/lib/commons-logging.jar         Copy the new commons-logging.jar to %JBOSS_HOME%/lib/commons-logging.jar         Rename %JBOSS_HOME%/server/default/lib/commons-logging.jar to "commons-logging. JBPAPP-2231 .jar.old"         Copy the new commons-logging.jar to %JBOSS_HOME%/server/default/lib/commons-logging.jar         Rename %JBOSS_HOME%/server/all/lib/commons-logging.jar to "commons-logging. JBPAPP-2231 .jar.old"         Copy the new commons-logging.jar to %JBOSS_HOME%/server/all/lib/commons-logging.jar         Rename %JBOSS_HOME%/server/production/lib/commons-logging.jar to "commons-logging. JBPAPP-2231 .jar.old"         Copy the new commons-logging.jar to %JBOSS_HOME%/server/production/lib/commons-logging.jar         Follow this same procedure for any custom server configuration/profile that needs this patch. COMPATIBILITY:         N/A DEPENDENCIES:         N/A SUPERSEDES:         N/A SUPERSEDED BY:         JBoss EAP 4.3 CP07 CREATOR:         Justin Bertram DATE:         2009/07/22

      If a deployment (e.g. a WAR) packages its own log4j.jar then Jasper will use that log4j.jar when compiling the deployment's JSPs. This can cause quirky behavior (as seen in the support case where a NullPointerException gets thrown because of a Log4j bug present in the deployment's log4j.jar but not in JBoss' log4j.jar). Jasper should use JBoss' log4j.jar.

            jbn-patch-team JBN Patch Team list
            rhn-support-jbertram Justin Bertram
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: