[
https://issues.jboss.org/browse/RF-11696?page=com.atlassian.jira.plugin.s...
]
Lukáš Fryč commented on RF-11696:
---------------------------------
Problem is in {{weld-servlet}} bundling the classes from {{slf4j:1.5.10}}.
The issue should be fixed with removing {{slf4j}} from {{showcase}}.
(+ ask Weld team to upgrade).
showcase - broken deploying on Tomcat due to wrong SLF4J binding
----------------------------------------------------------------
Key: RF-11696
URL:
https://issues.jboss.org/browse/RF-11696
Project: RichFaces
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: build/distribution
Affects Versions: 4.1.0.CR1
Environment: richfaces-showcase-SNAPSHOT
container: Tomcat
Reporter: Juraj Huska
Assignee: Lukáš Fryč
The *deployment* of showcase is failing on *Tomcats*. The following exceptions is
thrown:
{code}
[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)
{code}
The container is also informing about *multiple SLF4 bindings*, with this log:
{code}
[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.
{code}
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.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira