Uploaded image for project: 'RichFaces'
  1. RichFaces
  2. RF-11696

showcase - broken deploying on Tomcat due to wrong SLF4J binding

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Critical
    • Resolution: Done
    • Affects Version/s: 4.1.0.CR1
    • Fix Version/s: 4.1.0.CR2
    • Component/s: build/distribution
    • Labels:
      None
    • Environment:

      richfaces-showcase-SNAPSHOT
      container: Tomcat

      Description

      The deployment of showcase is failing on Tomcats. The following exceptions is thrown:

      [WARNING] [talledLocalContainer] java.lang.NoSuchMethodError: org.slf4j.spi.LocationAwareLogger.log(Lorg/slf4j/Marker;Ljava/lang/String;ILjava/lang/String;Ljava/lang/Throwable;)V
      [WARNING] [talledLocalContainer] 	at org.slf4j.cal10n.LocLogger.info(LocLogger.java:122)
      [WARNING] [talledLocalContainer] 	at org.jboss.weld.bootstrap.WeldBootstrap.<clinit>(WeldBootstrap.java:207)
      [WARNING] [talledLocalContainer] 	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      [WARNING] [talledLocalContainer] 	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
      [WARNING] [talledLocalContainer] 	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
      [WARNING] [talledLocalContainer] 	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
      [WARNING] [talledLocalContainer] 	at java.lang.Class.newInstance0(Class.java:355)
      [WARNING] [talledLocalContainer] 	at java.lang.Class.newInstance(Class.java:308)
      [WARNING] [talledLocalContainer] 	at org.jboss.weld.environment.servlet.util.Reflections.newInstance(Reflections.java:41)
      [WARNING] [talledLocalContainer] 	at org.jboss.weld.environment.servlet.Listener.<init>(Listener.java:68)
      [WARNING] [talledLocalContainer] 	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      [WARNING] [talledLocalContainer] 	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
      [WARNING] [talledLocalContainer] 	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
      [WARNING] [talledLocalContainer] 	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
      [WARNING] [talledLocalContainer] 	at java.lang.Class.newInstance0(Class.java:355)
      [WARNING] [talledLocalContainer] 	at java.lang.Class.newInstance(Class.java:308)
      [WARNING] [talledLocalContainer] 	at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4149)
      [WARNING] [talledLocalContainer] 	at org.apache.catalina.core.StandardContext.start(StandardContext.java:4704)
      [WARNING] [talledLocalContainer] 	at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)
      [WARNING] [talledLocalContainer] 	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)
      [WARNING] [talledLocalContainer] 	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)
      [WARNING] [talledLocalContainer] 	at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:943)
      [WARNING] [talledLocalContainer] 	at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:778)
      [WARNING] [talledLocalContainer] 	at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:504)
      [WARNING] [talledLocalContainer] 	at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1315)
      [WARNING] [talledLocalContainer] 	at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324)
      [WARNING] [talledLocalContainer] 	at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
      [WARNING] [talledLocalContainer] 	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1061)
      [WARNING] [talledLocalContainer] 	at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
      [WARNING] [talledLocalContainer] 	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
      [WARNING] [talledLocalContainer] 	at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
      [WARNING] [talledLocalContainer] 	at org.apache.catalina.core.StandardService.start(StandardService.java:525)
      [WARNING] [talledLocalContainer] 	at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
      [WARNING] [talledLocalContainer] 	at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
      [WARNING] [talledLocalContainer] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      [WARNING] [talledLocalContainer] 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      [WARNING] [talledLocalContainer] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      [WARNING] [talledLocalContainer] 	at java.lang.reflect.Method.invoke(Method.java:597)
      [WARNING] [talledLocalContainer] 	at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
      [WARNING] [talledLocalContainer] 	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
      

      The container is also informing about multiple SLF4 bindings, with this log:

      [INFO] [talledLocalContainer] SLF4J: Class path contains multiple SLF4J bindings.
      [INFO] [talledLocalContainer] SLF4J: Found binding in [jar:file:/mnt/hudson_workspace/workspace/richfaces-4.1-showcase-smoke-ftest-mojarra-tomcat6/showcase-ftest/target/installs/apache-tomcat-6.0.32/apache-tomcat-6.0.32/webapps/richfaces-showcase/WEB-INF/lib/slf4j-jdk14-1.6.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]
      [INFO] [talledLocalContainer] SLF4J: Found binding in [jar:file:/mnt/hudson_workspace/workspace/richfaces-4.1-showcase-smoke-ftest-mojarra-tomcat6/showcase-ftest/target/installs/apache-tomcat-6.0.32/apache-tomcat-6.0.32/webapps/richfaces-showcase/WEB-INF/lib/weld-servlet-1.1.0.Final.jar!/org/slf4j/impl/StaticLoggerBinder.class]
      [INFO] [talledLocalContainer] SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
      

      The binding for the application is chosen by maven, and it seems that incorrectly.
      When showcase is deployed manually it works.

      The exclusion of either binding in the pom.xml causes other errors, it will need another approach.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  lfryc Lukáš Fryč (Inactive)
                  Reporter:
                  jhuska Juraj Húska
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: