ICEfaces-EE
  1. ICEfaces-EE
  2. IPCK-462

WebSphere 8.5.0.2 - sample apps fail if deployed with the commons-logging.jar inside the war file

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: EE-3.3.0.GA
    • Fix Version/s: EE-3.3.0.GA
    • Component/s: None
    • Labels:
      None
    • Environment:
      ICEfaces EE 3.3.0 Build 14
      App Server: WAS 8.5.0.2
      Browsers: FF21, Chrome27
    • Assignee Priority:
      P1

      Description

      The next sample apps malfunctioned on WebSphere 8.5.0.2 when installed with the commons-logging.jar included in the .war file. Removing this jar from the .war file restored functionality of these apps.

      1) auctionMonitor (FF21):
      Using the initial war file from build 14, there were seen many Server Internal Error popups, and bids could not be placed; removing the commons-logging.jar from the war fixed the issue, and no further issues were found.


      2) showcase (Chrome27):
      The common-logging.jar had to be removed from the war file to be able to have the app functioning.


      3) ee-composite-showcase (Chrome27):
      Server Internal Errors occurred when changing themes from the drop-down, see error fragment below. Removing the commons-logging.jar file from the war solved this issue.

      [6/21/13 17:11:09:150 EDT] 000000bf webcontainer E
      com.ibm.ws.webcontainer.internal.WebContainer handleRequest SRVE0255E: A WebGroup/Virtual
      Host to handle /favicon.ico has not been defined.
      [6/21/13 17:11:18:488 EDT] 000000bf lifecycle W invalid property: currentStyle
                                       javax.validation.ValidationException: invalid property: currentStyle
          at org.apache.bval.jsr303.util.PathNavigation.navigateAndReturn(PathNavigation.java:105)
          at org.apache.bval.jsr303.util.PathNavigation.navigate(PathNavigation.java:117)
          at org.apache.bval.jsr303.ClassValidator.validateValueImpl(ClassValidator.java:718)
          at org.apache.bval.jsr303.ClassValidator.validateValue(ClassValidator.java:239)
          at org.apache.bval.jsr303.ClassValidator.validateValue(ClassValidator.java:231)
          at javax.faces.validator.BeanValidator.validate(BeanValidator.java:306)
      ...........
      Caused by: org.apache.commons.logging.LogConfigurationException:
      org.apache.commons.logging.LogConfigurationException:
      org.apache.commons.logging.LogConfigurationException: Class
      org.apache.commons.logging.impl.Jdk14Logger does not implement Log
          at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:532)

        Activity

        Carmen Cristurean created issue -
        Ken Fyten made changes -
        Field Original Value New Value
        Summary WebSphere 8.5.0.2 - sample apps fail if deployed with the commons-loggin.jar inside the war file WebSphere 8.5.0.2 - sample apps fail if deployed with the commons-logging.jar inside the war file
        Ken Fyten made changes -
        Project ICEfaces [ 10021 ] ICEfaces-EE [ 10040 ]
        Key ICE-9380 IPCK-462
        Affects Version/s EE-3.3.0.GA [ 10570 ]
        Affects Version/s EE-3.3.0.GA [ 10572 ]
        Fix Version/s EE-3.3.0.GA [ 10570 ]
        Fix Version/s EE-3.3.0.GA [ 10572 ]
        Ken Fyten made changes -
        Security Private [ 10001 ]
        Ken Fyten made changes -
        Assignee Ken Fyten [ ken.fyten ]
        Ken Fyten made changes -
        Assignee Ken Fyten [ ken.fyten ] Deryk Sinotte [ deryk.sinotte ]
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #36425 Wed Jun 26 17:07:38 MDT 2013 deryk.sinotte IPCK-462: add property to prevent deployment of commons-logging library
        Files Changed
        Commit graph MODIFY /icefaces3/trunk/icefaces/samples/build/common.xml
        Hide
        Deryk Sinotte added a comment -

        Added a property to the sample build files to exclude commons-logging from the war when building the archive using Ant:

        <patternset id="lib.distribute.compat" includes="commons-beanutils.jar commons-collections.jar commons-logging.jar ${lib.distribute.compat.includes}">
            <exclude name="*.jar"                   unless="compat"/>
            <exclude name="commons-beanutils.jar"   if="myfaces"/>
            <exclude name="commons-collections.jar" if="myfaces"/>
            <exclude name="commons-logging.jar"     if="myfaces"/>
        
            <!-- Do not include commons-logging.  Necessary for WebSphere 8 builds. -->
            <exclude name="commons-logging.jar"     if="no-commons-logging"/>
        </patternset>
        

        You enable it by specifying any value for the property. For example:

        ant -Dno-commmons-logging="true" clean servlet-profile

        Updated the following files to check for the property:

        ossrepo/icefaces3/trunk/icefaces/samples/build/common.xml
        repo/icefaces-ee3/tags/icefaces-ee-3.3.0.GA/icefaces-ee/icefaces/samples/build/common.xml
        repo/icefaces-ee3/tags/icefaces-ee-3.3.0.GA/icefaces-ee/samples/build/ee-common.xml
        Show
        Deryk Sinotte added a comment - Added a property to the sample build files to exclude commons-logging from the war when building the archive using Ant: <patternset id= "lib.distribute.compat" includes= "commons-beanutils.jar commons-collections.jar commons-logging.jar ${lib.distribute.compat.includes}" > <exclude name= "*.jar" unless= "compat" /> <exclude name= "commons-beanutils.jar" if= "myfaces" /> <exclude name= "commons-collections.jar" if= "myfaces" /> <exclude name= "commons-logging.jar" if= "myfaces" /> <!-- Do not include commons-logging. Necessary for WebSphere 8 builds. --> <exclude name= "commons-logging.jar" if= "no-commons-logging" /> </patternset> You enable it by specifying any value for the property. For example: ant -Dno-commmons-logging="true" clean servlet-profile Updated the following files to check for the property: ossrepo/icefaces3/trunk/icefaces/samples/build/common.xml repo/icefaces-ee3/tags/icefaces-ee-3.3.0.GA/icefaces-ee/icefaces/samples/build/common.xml repo/icefaces-ee3/tags/icefaces-ee-3.3.0.GA/icefaces-ee/samples/build/ee-common.xml
        Deryk Sinotte made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Hide
        Deryk Sinotte added a comment -

        Added some commented sections to a couple of the pom files that can be uncommented to prevent commons-logging from being included when building for WebSphere 8 using Maven:

        Index: samples/compat/pom.xml
        ===================================================================
        --- samples/compat/pom.xml	(revision 36423)
        +++ samples/compat/pom.xml	(revision )
        @@ -110,6 +110,9 @@
                     <groupId>commons-logging</groupId>
                     <artifactId>commons-logging</artifactId>
                     <version>1.1</version>
        +            <!-- WebSphere 8: The commons-logging library should not be included. Uncomment
        +                 the following scope if you building for that platform. -->
        +            <!--<scope>provided</scope>-->
                 </dependency>
         
             </dependencies>
        
        Index: samples/showcase/pom.xml
        ===================================================================
        --- samples/showcase/pom.xml	(revision 36423)
        +++ samples/showcase/pom.xml	(revision )
        @@ -71,6 +71,14 @@
                 <dependency>
                     <groupId>${icefaces.product.group}</groupId>
                     <artifactId>${icefaces.lib.name}-compat</artifactId>
        +            <!-- WebSphere 8: The commons-logging library should not be included. Uncomment
        +                 the following exclusion if you building for that platform. -->
        +            <!--<exclusions>-->
        +                <!--<exclusion>-->
        +                    <!--<groupId>commons-logging</groupId>-->
        +                    <!--<artifactId>commons-logging</artifactId>-->
        +                <!--</exclusion>-->
        +            <!--</exclusions>-->
                 </dependency>
         
                 <dependency>
        
        
        Show
        Deryk Sinotte added a comment - Added some commented sections to a couple of the pom files that can be uncommented to prevent commons-logging from being included when building for WebSphere 8 using Maven: Index: samples/compat/pom.xml =================================================================== --- samples/compat/pom.xml (revision 36423) +++ samples/compat/pom.xml (revision ) @@ -110,6 +110,9 @@ <groupId>commons-logging</groupId> <artifactId>commons-logging</artifactId> <version>1.1</version> + <!-- WebSphere 8: The commons-logging library should not be included. Uncomment + the following scope if you building for that platform. --> + <!--<scope>provided</scope>--> </dependency> </dependencies> Index: samples/showcase/pom.xml =================================================================== --- samples/showcase/pom.xml (revision 36423) +++ samples/showcase/pom.xml (revision ) @@ -71,6 +71,14 @@ <dependency> <groupId>${icefaces.product.group}</groupId> <artifactId>${icefaces.lib.name}-compat</artifactId> + <!-- WebSphere 8: The commons-logging library should not be included. Uncomment + the following exclusion if you building for that platform. --> + <!--<exclusions>--> + <!--<exclusion>--> + <!--<groupId>commons-logging</groupId>--> + <!--<artifactId>commons-logging</artifactId>--> + <!--</exclusion>--> + <!--</exclusions>--> </dependency> <dependency>
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #36430 Thu Jun 27 09:40:06 MDT 2013 deryk.sinotte IPCK-462: added commented sections to poms that can be used to prohibit common-logging from being included when building for WebSphere 8
        Files Changed
        Commit graph MODIFY /icefaces3/trunk/icefaces/samples/showcase/showcase/pom.xml
        Commit graph MODIFY /icefaces3/trunk/icefaces/samples/compat/pom.xml
        Commit graph MODIFY /icefaces3/trunk/icefaces/samples/showcase/pom.xml
        Ken Fyten made changes -
        Resolution Fixed [ 1 ]
        Status Resolved [ 5 ] Reopened [ 4 ]
        Assignee Priority P1 [ 10010 ]
        Hide
        Deryk Sinotte added a comment -

        Not sure what triggered this but everything was committed to both the icefaces3/trunk and the EE tag before the release went out:

        /Users/deryk/svn/ossrepo/icefaces3/trunk/icefaces
        watnotte-pro:icefaces deryk$ svn diff -r36424:36425
        Index: samples/build/common.xml
        ===================================================================
        --- samples/build/common.xml	(revision 36424)
        +++ samples/build/common.xml	(revision 36425)
        @@ -109,6 +109,9 @@
                 <exclude name="commons-beanutils.jar"   if="myfaces"/>
                 <exclude name="commons-collections.jar" if="myfaces"/>
                 <exclude name="commons-logging.jar"     if="myfaces"/>
        +
        +        <!-- Do not include commons-logging.  Necessary for WebSphere 8 builds. -->
        +        <exclude name="commons-logging.jar"     if="no-commons-logging"/>
             </patternset>
         
             <patternset id="lib.distribute.portlet">
        watnotte-pro:icefaces deryk$ 
        
        
        /Users/deryk/svn/ossrepo/icefaces3/trunk/icefaces
        watnotte-pro:icefaces deryk$ svn diff -r36429:36430
        Index: samples/compat/pom.xml
        ===================================================================
        --- samples/compat/pom.xml	(revision 36429)
        +++ samples/compat/pom.xml	(revision 36430)
        @@ -110,6 +110,9 @@
                     <groupId>commons-logging</groupId>
                     <artifactId>commons-logging</artifactId>
                     <version>1.1</version>
        +            <!-- WebSphere 8: The commons-logging library should not be included. Uncomment
        +                 the following scope if you are building for that platform. -->
        +            <!--<scope>provided</scope>-->
                 </dependency>
         
             </dependencies>
        Index: samples/showcase/pom.xml
        ===================================================================
        --- samples/showcase/pom.xml	(revision 36429)
        +++ samples/showcase/pom.xml	(revision 36430)
        @@ -71,6 +71,14 @@
                 <dependency>
                     <groupId>${icefaces.product.group}</groupId>
                     <artifactId>${icefaces.lib.name}-compat</artifactId>
        +            <!-- WebSphere 8: The commons-logging library should not be included. Uncomment
        +                 the following exclusion if you are building for that platform. -->
        +            <!--<exclusions>-->
        +                <!--<exclusion>-->
        +                    <!--<groupId>commons-logging</groupId>-->
        +                    <!--<artifactId>commons-logging</artifactId>-->
        +                <!--</exclusion>-->
        +            <!--</exclusions>-->
                 </dependency>
         
                 <dependency>
        
        /Users/deryk/svn/repo/icefaces-ee3/tags/icefaces-ee-3.3.0.GA/icefaces-ee/icefaces
        watnotte-pro:icefaces deryk$ svn diff -r36423:36424
        Index: samples/build/common.xml
        ===================================================================
        --- samples/build/common.xml	(revision 36423)
        +++ samples/build/common.xml	(revision 36424)
        @@ -109,6 +109,9 @@
                 <exclude name="commons-beanutils.jar"   if="myfaces"/>
                 <exclude name="commons-collections.jar" if="myfaces"/>
                 <exclude name="commons-logging.jar"     if="myfaces"/>
        +
        +        <!-- Do not include commons-logging.  Necessary for WebSphere 8 builds. -->
        +        <exclude name="commons-logging.jar"     if="no-commons-logging"/>
             </patternset>
         
             <patternset id="lib.distribute.portlet">
        
        
        /Users/deryk/svn/repo/icefaces-ee3/tags/icefaces-ee-3.3.0.GA/icefaces-ee/icefaces
        watnotte-pro:icefaces deryk$ svn diff -r36428:36429
        Index: samples/compat/pom.xml
        ===================================================================
        --- samples/compat/pom.xml	(revision 36428)
        +++ samples/compat/pom.xml	(revision 36429)
        @@ -110,6 +110,9 @@
                     <groupId>commons-logging</groupId>
                     <artifactId>commons-logging</artifactId>
                     <version>1.1</version>
        +            <!-- WebSphere 8: The commons-logging library should not be included. Uncomment
        +                 the following scope if you are building for that platform. -->
        +            <!--<scope>provided</scope>-->
                 </dependency>
         
             </dependencies>
        Index: samples/showcase/pom.xml
        ===================================================================
        --- samples/showcase/pom.xml	(revision 36428)
        +++ samples/showcase/pom.xml	(revision 36429)
        @@ -71,6 +71,14 @@
                 <dependency>
                     <groupId>${icefaces.product.group}</groupId>
                     <artifactId>${icefaces.lib.name}-compat</artifactId>
        +            <!-- WebSphere 8: The commons-logging library should not be included. Uncomment
        +                 the following exclusion if you are building for that platform. -->
        +            <!--<exclusions>-->
        +                <!--<exclusion>-->
        +                    <!--<groupId>commons-logging</groupId>-->
        +                    <!--<artifactId>commons-logging</artifactId>-->
        +                <!--</exclusion>-->
        +            <!--</exclusions>-->
                 </dependency>
         
                 <dependency>
        
        Show
        Deryk Sinotte added a comment - Not sure what triggered this but everything was committed to both the icefaces3/trunk and the EE tag before the release went out: /Users/deryk/svn/ossrepo/icefaces3/trunk/icefaces watnotte-pro:icefaces deryk$ svn diff -r36424:36425 Index: samples/build/common.xml =================================================================== --- samples/build/common.xml (revision 36424) +++ samples/build/common.xml (revision 36425) @@ -109,6 +109,9 @@ <exclude name="commons-beanutils.jar" if="myfaces"/> <exclude name="commons-collections.jar" if="myfaces"/> <exclude name="commons-logging.jar" if="myfaces"/> + + <!-- Do not include commons-logging. Necessary for WebSphere 8 builds. --> + <exclude name="commons-logging.jar" if="no-commons-logging"/> </patternset> <patternset id="lib.distribute.portlet"> watnotte-pro:icefaces deryk$ /Users/deryk/svn/ossrepo/icefaces3/trunk/icefaces watnotte-pro:icefaces deryk$ svn diff -r36429:36430 Index: samples/compat/pom.xml =================================================================== --- samples/compat/pom.xml (revision 36429) +++ samples/compat/pom.xml (revision 36430) @@ -110,6 +110,9 @@ <groupId>commons-logging</groupId> <artifactId>commons-logging</artifactId> <version>1.1</version> + <!-- WebSphere 8: The commons-logging library should not be included. Uncomment + the following scope if you are building for that platform. --> + <!--<scope>provided</scope>--> </dependency> </dependencies> Index: samples/showcase/pom.xml =================================================================== --- samples/showcase/pom.xml (revision 36429) +++ samples/showcase/pom.xml (revision 36430) @@ -71,6 +71,14 @@ <dependency> <groupId>${icefaces.product.group}</groupId> <artifactId>${icefaces.lib.name}-compat</artifactId> + <!-- WebSphere 8: The commons-logging library should not be included. Uncomment + the following exclusion if you are building for that platform. --> + <!--<exclusions>--> + <!--<exclusion>--> + <!--<groupId>commons-logging</groupId>--> + <!--<artifactId>commons-logging</artifactId>--> + <!--</exclusion>--> + <!--</exclusions>--> </dependency> <dependency> /Users/deryk/svn/repo/icefaces-ee3/tags/icefaces-ee-3.3.0.GA/icefaces-ee/icefaces watnotte-pro:icefaces deryk$ svn diff -r36423:36424 Index: samples/build/common.xml =================================================================== --- samples/build/common.xml (revision 36423) +++ samples/build/common.xml (revision 36424) @@ -109,6 +109,9 @@ <exclude name="commons-beanutils.jar" if="myfaces"/> <exclude name="commons-collections.jar" if="myfaces"/> <exclude name="commons-logging.jar" if="myfaces"/> + + <!-- Do not include commons-logging. Necessary for WebSphere 8 builds. --> + <exclude name="commons-logging.jar" if="no-commons-logging"/> </patternset> <patternset id="lib.distribute.portlet"> /Users/deryk/svn/repo/icefaces-ee3/tags/icefaces-ee-3.3.0.GA/icefaces-ee/icefaces watnotte-pro:icefaces deryk$ svn diff -r36428:36429 Index: samples/compat/pom.xml =================================================================== --- samples/compat/pom.xml (revision 36428) +++ samples/compat/pom.xml (revision 36429) @@ -110,6 +110,9 @@ <groupId>commons-logging</groupId> <artifactId>commons-logging</artifactId> <version>1.1</version> + <!-- WebSphere 8: The commons-logging library should not be included. Uncomment + the following scope if you are building for that platform. --> + <!--<scope>provided</scope>--> </dependency> </dependencies> Index: samples/showcase/pom.xml =================================================================== --- samples/showcase/pom.xml (revision 36428) +++ samples/showcase/pom.xml (revision 36429) @@ -71,6 +71,14 @@ <dependency> <groupId>${icefaces.product.group}</groupId> <artifactId>${icefaces.lib.name}-compat</artifactId> + <!-- WebSphere 8: The commons-logging library should not be included. Uncomment + the following exclusion if you are building for that platform. --> + <!--<exclusions>--> + <!--<exclusion>--> + <!--<groupId>commons-logging</groupId>--> + <!--<artifactId>commons-logging</artifactId>--> + <!--</exclusion>--> + <!--</exclusions>--> </dependency> <dependency>
        Deryk Sinotte made changes -
        Status Reopened [ 4 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Ken Fyten made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Deryk Sinotte
            Reporter:
            Carmen Cristurean
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: