4 Replies Latest reply on Oct 16, 2014 3:00 AM by liuliu

    richfaces 4.5 cr1 and atmosphere problem.

    liuliu

      hi,

       

      I downloaded the latest RF4.5 CR1. I replaced all jars in my app with the jars in the zip. and I downloaded too the 2.0.1 of atmosphere-compat-tomcat.jar,atmosphere-compat-tomcat7.jar and atmosphere-compat-jbossweb.jar who are not in the zip. But when I start the the server (jboss AS 7.1.1). I get this exception :

       

      2014-10-13 12:18:01 -  INFO [              stdout]: User[    ] EDS[       ] java.lang.IllegalStateException: JBoss failed to detect this is a Comet application because the APR Connector is not enabled. 
      2014-10-13 12:18:01 -  INFO [              stdout]: User[    ] EDS[       ] Make sure atmosphere-compat-jboss.jar is not under your WEB-INF/lib and You must use the atmosphere-native-runtime dependency in order to use native Comet Support
      2014-10-13 12:18:01 -  INFO [              stdout]: User[    ] EDS[       ] there is no context.xml under WEB-INF
      2014-10-13 12:18:01 -  INFO [              stdout]: User[    ] EDS[       ]     at org.atmosphere.container.JBossWebCometSupport.<clinit>(JBossWebCometSupport.java:49)
      2014-10-13 12:18:01 -  INFO [              stdout]: User[    ] EDS[       ]     at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      2014-10-13 12:18:01 -  INFO [              stdout]: User[    ] EDS[       ]     at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
      2014-10-13 12:18:01 -  INFO [              stdout]: User[    ] EDS[       ]     at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
      2014-10-13 12:18:01 -  INFO [              stdout]: User[    ] EDS[       ]     at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
      2014-10-13 12:18:01 -  INFO [              stdout]: User[    ] EDS[       ]     at org.atmosphere.cpr.DefaultAsyncSupportResolver.newCometSupport(DefaultAsyncSupportResolver.java:225)
      2014-10-13 12:18:01 -  INFO [              stdout]: User[    ] EDS[       ]     at org.atmosphere.cpr.DefaultAsyncSupportResolver.resolveNativeCometSupport(DefaultAsyncSupportResolver.java:301)
      2014-10-13 12:18:01 -  INFO [              stdout]: User[    ] EDS[       ]     at org.atmosphere.cpr.DefaultAsyncSupportResolver.resolve(DefaultAsyncSupportResolver.java:281)
      2014-10-13 12:18:01 -  INFO [              stdout]: User[    ] EDS[       ]     at org.atmosphere.cpr.AtmosphereFramework.autoDetectContainer(AtmosphereFramework.java:1811)
      2014-10-13 12:18:01 -  INFO [              stdout]: User[    ] EDS[       ]     at org.atmosphere.cpr.AtmosphereFramework.init(AtmosphereFramework.java:872)
      2014-10-13 12:18:01 -  INFO [              stdout]: User[    ] EDS[       ]     at org.atmosphere.cpr.AtmosphereFramework.init(AtmosphereFramework.java:765)
      2014-10-13 12:18:01 -  INFO [              stdout]: User[    ] EDS[       ]     at org.atmosphere.cpr.AtmosphereServlet.configureFramework(AtmosphereServlet.java:101)
      2014-10-13 12:18:01 -  INFO [              stdout]: User[    ] EDS[       ]     at org.atmosphere.cpr.AtmosphereServlet.init(AtmosphereServlet.java:80)
      2014-10-13 12:18:01 -  INFO [              stdout]: User[    ] EDS[       ]     at org.richfaces.webapp.PushServlet.init(PushServlet.java:67)
      2014-10-13 12:18:01 -  INFO [              stdout]: User[    ] EDS[       ]     at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1202)
      2014-10-13 12:18:01 -  INFO [              stdout]: User[    ] EDS[       ]     at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:952)
      2014-10-13 12:18:01 -  INFO [              stdout]: User[    ] EDS[       ]     at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:188)
      2014-10-13 12:18:01 -  INFO [              stdout]: User[    ] EDS[       ]     at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)
      2014-10-13 12:18:01 -  INFO [              stdout]: User[    ] EDS[       ]     at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:153)
      2014-10-13 12:18:01 -  INFO [              stdout]: User[    ] EDS[       ]     at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155)
      2014-10-13 12:18:01 -  INFO [              stdout]: User[    ] EDS[       ]     at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
      2014-10-13 12:18:01 -  INFO [              stdout]: User[    ] EDS[       ]     at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      2014-10-13 12:18:01 -  INFO [              stdout]: User[    ] EDS[       ]     at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368)
      2014-10-13 12:18:01 -  INFO [              stdout]: User[    ] EDS[       ]     at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877)
      2014-10-13 12:18:01 -  INFO [              stdout]: User[    ] EDS[       ]     at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:671)
      2014-10-13 12:18:01 -  INFO [              stdout]: User[    ] EDS[       ]     at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:930)
      2014-10-13 12:18:01 -  INFO [              stdout]: User[    ] EDS[       ]     at java.lang.Thread.run(Thread.java:724)
      

       

      I can not find this atmosphere-compat-jboss.jar mentioned in the exception anywhere.  Is there  some new configurations to make a4j:push work? I am using JBoss AS 7.1.1, JSF2.1 and there is nothing special in the web.xml and standalone.xml.

       

      thanks in advance

       

      PS : I find a jar named richfaces-page-fragement.jar in the release RF4.5 CR1. Do i need take it too?