5 Replies Latest reply on Nov 6, 2011 1:59 PM by Lukáš Fryč

    richfaces 4.10 M3 dependency, atmosphere

    Tao Liu Newbie

      Dear Community,

      with richfaces 4.10-M3

      Warnung: Error while trying to load Bean Class org.richfaces.webapp.PushServlet : java.lang.NoClassDefFoundError: org/atmosphere/cpr/MeteorServlet

      The previouse versions did not depend on that class. Should I add a new library for the project?

      Thanks

        • 1. Re: richfaces 4.10 M3 dependency, atmosphere
          Lukáš Fryč Master

          Hello Tao,

           

          are you using Push in your application?

           

          If yes, you should upgrade Atmosphere to 0.8.0-RC1 with RF4 M3 (or use import of RichFaces BOM for dependency version management) [1].

           

          If no, it is bug, bundling Atmosphere with your app should be optional.

           

           

          Cheers,

           

          ~ Lukas

           

          [1] http://community.jboss.org/wiki/HowToAddRichFaces4xToMavenBasedProject

          • 2. Re: richfaces 4.10 M3 dependency, atmosphere
            Tao Liu Newbie

            Hello, Lukáš

            I'm not using Push, i think it is a bug, :-)

            • 3. Re: richfaces 4.10 M3 dependency, atmosphere
              Lukáš Fryč Master

              Tao, could you please provide whole stacktrace?

              • 4. Re: richfaces 4.10 M3 dependency, atmosphere
                Tao Liu Newbie

                Hi, Lukas, by deployment, the output from glassfish:

                 

                Information: Registered org.glassfish.ha.store.adapter.cache.ShoalBackingStoreProxy for persistence-type = replicated in BackingStoreFactoryRegistry

                Information: The Admin Console is already installed, but not yet loaded.

                Information: Grizzly Framework 1.9.36 started in: 331ms - bound to [0.0.0.0:8181]

                Information: Grizzly Framework 1.9.36 started in: 313ms - bound to [0.0.0.0:4848]

                Information: Grizzly Framework 1.9.36 started in: 421ms - bound to [0.0.0.0:8080]

                Information: Grizzly Framework 1.9.36 started in: 282ms - bound to [0.0.0.0:3700]

                Information: Grizzly Framework 1.9.36 started in: 256ms - bound to [0.0.0.0:7676]

                Information: SEC1002: Security Manager is OFF.

                Information: SEC1010: Entering Security Startup Service

                Information: SEC1143: Loading policy provider com.sun.enterprise.security.provider.PolicyWrapper.

                Information: SEC1115: Realm [admin-realm] of classtype [com.sun.enterprise.security.auth.realm.file.FileRealm] successfully created.

                Information: SEC1115: Realm [file] of classtype [com.sun.enterprise.security.auth.realm.file.FileRealm] successfully created.

                Information: SEC1115: Realm [certificate] of classtype [com.sun.enterprise.security.auth.realm.certificate.CertificateRealm] successfully created.

                Information: SEC1011: Security Service(s) Started Successfully

                Information: WEB0169: Created HTTP listener [http-listener-1] on host/port [0.0.0.0:8080]

                Information: WEB0169: Created HTTP listener [http-listener-2] on host/port [0.0.0.0:8181]

                Information: WEB0169: Created HTTP listener [admin-listener] on host/port [0.0.0.0:4848]

                Information: WEB0171: Created virtual server [server]

                Information: WEB0171: Created virtual server [__asadmin]

                Information: WEB0172: Virtual server [server] loaded default web module []

                Information: WELD-000900 ${parsedVersion (osgiVersion})

                Warnung: Error while trying to load Bean Class org.richfaces.webapp.PushServlet : java.lang.NoClassDefFoundError: org/atmosphere/cpr/MeteorServlet

                Warnung: Error while trying to load Bean Class org.richfaces.application.push.impl.RequestImpl : java.lang.NoClassDefFoundError: org/atmosphere/cpr/AtmosphereResourceEventListener

                Information: Hibernate Validator 4.1.0.Final

                Information: Instantiated an instance of org.hibernate.validator.engine.resolver.JPATraversableResolver.

                • 5. Re: richfaces 4.10 M3 dependency, atmosphere
                  Lukáš Fryč Master

                  Hello Tao,

                   

                  could you please open issue in RichFaces issue tracker?

                   

                  I think it can be caused by Glasshish modular class loading,

                   

                  since I have checked on JBoss AS7 and it works fine (I simply took richfaces-showcase and removed WEB-INF/lib/atmosphere-* and deploy this modified WAR).

                   

                   

                  Cheers,

                   

                  ~ Lukas