[
https://issues.jboss.org/browse/RF-11696?page=com.atlassian.jira.plugin.s...
]
Juraj Huska commented on RF-11696:
----------------------------------
I have tried to *delete slf4j* and its *implementation slf4j-jdk14-1.6.1.jar* from war
manually, and then it is possible to deploy it either manually or using maven for example
with Arquillian.
*However*, not played with that too much, but for example when doing some pushes via push
demos, *this exception is thrown*, the functionality of a4j:push *remains fine*:
{code}
WARNING: Tomcat failed to detect this is a Comet application because context.xml is
missing or the Http11NioProtocol Connector is not enabled.
If that's not the case, you can also remove META-INF/context.xml and
WEB-INF/lib/atmosphere-compat-tomcat.jar
java.lang.IllegalStateException: Tomcat failed to detect this is a Comet application
because context.xml is missing or the Http11NioProtocol Connector is not enabled.
If that's not the case, you can also remove META-INF/context.xml and
WEB-INF/lib/atmosphere-compat-tomcat.jar
at
org.atmosphere.container.TomcatCometSupport.<clinit>(TomcatCometSupport.java:67)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at
org.atmosphere.cpr.DefaultCometSupportResolver.newCometSupport(DefaultCometSupportResolver.java:189)
at
org.atmosphere.cpr.DefaultCometSupportResolver.resolveNativeCometSupport(DefaultCometSupportResolver.java:256)
at
org.atmosphere.cpr.DefaultCometSupportResolver.resolve(DefaultCometSupportResolver.java:222)
at
org.atmosphere.cpr.DefaultCometSupportResolver.resolve(DefaultCometSupportResolver.java:231)
at org.atmosphere.cpr.AtmosphereServlet.autoDetectContainer(AtmosphereServlet.java:967)
at org.atmosphere.cpr.AtmosphereServlet.init(AtmosphereServlet.java:562)
at org.richfaces.webapp.PushServlet.init(PushServlet.java:98)
at org.richfaces.webapp.PushFilter.init(PushFilter.java:101)
at
org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:295)
at
org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:422)
at
org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:115)
at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4071)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4725)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:943)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:563)
at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1397)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:297)
at
com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:836)
at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:761)
at org.apache.catalina.manager.ManagerServlet.check(ManagerServlet.java:1500)
at org.apache.catalina.manager.ManagerServlet.deploy(ManagerServlet.java:670)
at org.apache.catalina.manager.ManagerServlet.doPut(ManagerServlet.java:435)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:640)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:563)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Thread.java:662)
Nov 15, 2011 8:39:53 PM org.atmosphere.cpr.AtmosphereServlet doCometSupport
{code}
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č
Priority: Critical
Fix For: 4.1.0.Final
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