9 Replies Latest reply on Sep 7, 2011 12:14 PM by daniel rod

    Richfaces 4 in Netbeans

    Martin Fierz Newbie

      Aloha!

       

      I am using Netbeans 6.9.1, Glassfish v3, Mojarra 2.03 as my environment, and have been using PrimeFaces up to now because it supports JSF 2.0. I wanted to take a look at RF 4 milestone 5, and downloaded it. When I create a new project in Netbeans with just a "hello world" message on index.xhtml, and then include the 4 jars:

       

      • richfaces-components-api-4.0.0.20101226-M5.jar
      • richfaces-components-ui-4.0.0.20101226-M5.jar
      • richfaces-core-api-4.0.0.20101226-M5.jar
      • richfaces-core-impl-4.0.0.20101226-M5.jar

       

       

      my application already fails :-( - the output of the Glassfish server is shown below. Can anybody tell me what the problem might be?

      Also, when I tried to use the example on page 13 of the latest component reference I get an error on this line saying "The attribute event is not defined in the component's interface":

       

      <a4j:ajax event="onkeyup" render="outtext"/>

       

      has anyone else tried using RF4.0M5 on netbeans and been more successful?

       

      best regards

        Martin

       

       

       

      com.sun.faces.config.ConfigurationException:

        Source Document: jar:file:/U:/NetBeansProjects/richfaces4test/build/web/WEB-INF/lib/richfaces-core-impl-4.0.0.20101226-M5.jar!/META-INF/resource-handler.faces-config.xml

        Cause: Unable to create a new instance of 'org.richfaces.resource.ResourceHandlerImpl': java.lang.reflect.InvocationTargetException

              at com.sun.faces.config.processor.AbstractConfigProcessor.createInstance(AbstractConfigProcessor.java:289)

              at com.sun.faces.config.processor.ApplicationConfigProcessor.setResourceHandler(ApplicationConfigProcessor.java:748)

              at com.sun.faces.config.processor.ApplicationConfigProcessor.process(ApplicationConfigProcessor.java:306)

              at com.sun.faces.config.processor.AbstractConfigProcessor.invokeNext(AbstractConfigProcessor.java:110)

              at com.sun.faces.config.processor.LifecycleConfigProcessor.process(LifecycleConfigProcessor.java:112)

              at com.sun.faces.config.processor.AbstractConfigProcessor.invokeNext(AbstractConfigProcessor.java:110)

              at com.sun.faces.config.processor.FactoryConfigProcessor.process(FactoryConfigProcessor.java:212)

              at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:332)

              at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:220)

              at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:4664)

              at com.sun.enterprise.web.WebModule.contextListenerStart(WebModule.java:535)

              at org.apache.catalina.core.StandardContext.start(StandardContext.java:5266)

              at com.sun.enterprise.web.WebModule.start(WebModule.java:499)

              at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:928)

              at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:912)

              at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:694)

              at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1947)

              at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1619)

              at com.sun.enterprise.web.WebApplication.start(WebApplication.java:90)

              at org.glassfish.internal.data.EngineRef.start(EngineRef.java:126)

              at org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:241)

              at org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:236)

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

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

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

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

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

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

              at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$900(CommandRunnerImpl.java:83)

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      Caused by: java.lang.reflect.InvocationTargetException

              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 com.sun.faces.config.processor.AbstractConfigProcessor.createInstance(AbstractConfigProcessor.java:259)

              ... 49 more

      Caused by: java.lang.NoClassDefFoundError: com/google/common/base/Function

              at org.richfaces.resource.ResourceHandlerImpl.<init>(ResourceHandlerImpl.java:66)

              ... 54 more

      Caused by: java.lang.ClassNotFoundException: com.google.common.base.Function

              at java.net.URLClassLoader$1.run(URLClassLoader.java:200)

              at java.security.AccessController.doPrivileged(Native Method)

              at java.net.URLClassLoader.findClass(URLClassLoader.java:188)

              at org.glassfish.web.loader.WebappClassLoader.findClass(WebappClassLoader.java:959)

              at org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1430)

              at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)

              ... 55 more