2 Replies Latest reply on Dec 12, 2013 10:04 PM by alvaro tovar

    Richfaces 4.3.4 without push

    alvaro tovar Newbie

      Hello

      I am trying of install richfaces 4.3.4, i am using eclipse juno and glassfish 3.1.2, jdk7

      I'm not using maven, i downloaded and put in web-inf/lib

       

      cssparser-0.9.5.jar

      guava-15.0.jar

      richfaces-components-api-4.3.4.Final.jar

      richfaces-components-ui-4.3.4.Final.jar

      richfaces-core-api-4.3.4.Final.jar

      richfaces-core-impl-4.3.4.Final.jar

      sac-1.3.jar

       

       

      I am having the error:

       

      <code>

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

       

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

       

      SEVERE: Exception while loading the app

       

      SEVERE: Exception while loading the app : java.lang.ArrayIndexOutOfBoundsException: 3

      com.google.common.collect.ComputationException: java.lang.ArrayIndexOutOfBoundsException: 3

          at com.google.common.collect.ComputingConcurrentHashMap.compute(ComputingConcurrentHashMap.java:218)

          at com.google.common.collect.ComputingConcurrentHashMap.apply(ComputingConcurrentHashMap.java:100)

          at com.google.common.collect.MapMaker$ComputingMapAdapter.get(MapMaker.java:515)

          at org.jboss.weld.resources.ClassTransformer.loadClass(ClassTransformer.java:149)

          at org.jboss.weld.introspector.jlr.WeldClassImpl.<init>(WeldClassImpl.java:139)

          at org.jboss.weld.introspector.jlr.WeldClassImpl.of(WeldClassImpl.java:118)

          at org.jboss.weld.resources.ClassTransformer$TransformTypeToWeldClass.apply(ClassTransformer.java:49)

          at org.jboss.weld.resources.ClassTransformer$TransformTypeToWeldClass.apply(ClassTransformer.java:40)

          at com.google.common.collect.ComputingConcurrentHashMap.compute(ComputingConcurrentHashMap.java:206)

          at com.google.common.collect.ComputingConcurrentHashMap.apply(ComputingConcurrentHashMap.java:100)

          at com.google.common.collect.MapMaker$ComputingMapAdapter.get(MapMaker.java:515)

          at org.jboss.weld.resources.ClassTransformer.loadClass(ClassTransformer.java:149)

          at org.jboss.weld.introspector.jlr.WeldClassImpl.<init>(WeldClassImpl.java:139)

          at org.jboss.weld.introspector.jlr.WeldClassImpl.of(WeldClassImpl.java:118)

          at org.jboss.weld.resources.ClassTransformer$TransformTypeToWeldClass.apply(ClassTransformer.java:49)

          at org.jboss.weld.resources.ClassTransformer$TransformTypeToWeldClass.apply(ClassTransformer.java:40)

          at com.google.common.collect.ComputingConcurrentHashMap.compute(ComputingConcurrentHashMap.java:206)

          at com.google.common.collect.ComputingConcurrentHashMap.apply(ComputingConcurrentHashMap.java:100)

          at com.google.common.collect.MapMaker$ComputingMapAdapter.get(MapMaker.java:515)

          at org.jboss.weld.resources.ClassTransformer.loadClass(ClassTransformer.java:149)

          at org.jboss.weld.bootstrap.BeanDeployer.addClass(BeanDeployer.java:86)

          at org.jboss.weld.bootstrap.BeanDeployer.addClasses(BeanDeployer.java:115)

          at org.jboss.weld.bootstrap.BeanDeployment.createBeans(BeanDeployment.java:171)

          at org.jboss.weld.bootstrap.WeldBootstrap.deployBeans(WeldBootstrap.java:336)

          at org.glassfish.weld.WeldDeployer.event(WeldDeployer.java:179)

          at org.glassfish.kernel.event.EventsImpl.send(EventsImpl.java:128)

          at org.glassfish.internal.data.ApplicationInfo.load(ApplicationInfo.java:277)

          at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:460)

          at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:240)

          at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:389)

          at com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:348)

          at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:363)

          at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1085)

          at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1200(CommandRunnerImpl.java:95)

          at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1291)

          at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1259)

          at com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:461)

          at com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:212)

          at com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:179)

          at com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:117)

          at com.sun.enterprise.v3.services.impl.ContainerMapper$Hk2DispatcherCallable.call(ContainerMapper.java:354)

          at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:195)

          at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:849)

          at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:746)

          at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1045)

          at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:228)

          at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)

          at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)

          at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)

          at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)

          at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)

          at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)

          at com.sun.grizzly.ContextTask.run(ContextTask.java:71)

          at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)

          at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)

          at java.lang.Thread.run(Thread.java:724)

      Caused by: java.lang.ArrayIndexOutOfBoundsException: 3

          at org.jboss.weld.introspector.jlr.WeldConstructorImpl.<init>(WeldConstructorImpl.java:103)

          at org.jboss.weld.introspector.jlr.WeldConstructorImpl.of(WeldConstructorImpl.java:66)

          at org.jboss.weld.introspector.jlr.WeldClassImpl.<init>(WeldClassImpl.java:205)

          at org.jboss.weld.introspector.jlr.WeldClassImpl.of(WeldClassImpl.java:118)

          at org.jboss.weld.resources.ClassTransformer$TransformTypeToWeldClass.apply(ClassTransformer.java:49)

          at org.jboss.weld.resources.ClassTransformer$TransformTypeToWeldClass.apply(ClassTransformer.java:40)

          at com.google.common.collect.ComputingConcurrentHashMap.compute(ComputingConcurrentHashMap.java:206)

          ... 55 more

      </code>

       

      my web.xml is the default generated by eclipse

       

      <?xml version="1.0" encoding="UTF-8"?>

      <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" version="3.0">

        <display-name>xxxx</display-name>

        <servlet>

          <servlet-name>Faces Servlet</servlet-name>

          <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>

          <load-on-startup>1</load-on-startup>

        </servlet>

        <servlet-mapping>

              <servlet-name>Faces Servlet</servlet-name>

              <url-pattern>*.jsf</url-pattern>

          </servlet-mapping>

        <servlet-mapping>

          <servlet-name>Faces Servlet</servlet-name>

          <url-pattern>/faces/*</url-pattern>

        </servlet-mapping>

        <context-param>

          <description>State saving method: 'client' or 'server' (=default). See JSF Specification 2.5.2</description>

          <param-name>javax.faces.STATE_SAVING_METHOD</param-name>

          <param-value>client</param-value>

        </context-param>

        <context-param>

          <param-name>javax.servlet.jsp.jstl.fmt.localizationContext</param-name>

          <param-value>resources.application</param-value>

        </context-param>

        <listener>

          <listener-class>com.sun.faces.config.ConfigureListener</listener-class>

        </listener>

      </web-app>