5 Replies Latest reply on Jan 18, 2011 1:12 PM by Richfacesfan Fanatic

    richfaces Example m5

    Richfacesfan Fanatic Newbie

      Hellow again.

      I have a problem, i develop an  application in richfaces m3

      i want migrate at m5 but mi example don't run i get this error :

       

       

      18-ene-2011 0:53:49 org.apache.catalina.core.StandardContext listenerStart

      GRAVE: Excepción enviando evento inicializado de contexto a instancia de escuchador de clase com.sun.faces.config.ConfigureListener

      com.sun.faces.config.ConfigurationException: CONFIGURATION FAILED! duplicate key: class javax.faces.validator.LengthValidator

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

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

              at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3972)

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

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

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

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

              at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:637)

              at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:521)

              at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1359)

              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:849)

              at org.apache.catalina.manager.ManagerServlet.doGet(ManagerServlet.java:351)

              at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)

              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.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:199)

              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

              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:558)

              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.Http11AprProcessor.process(Http11AprProcessor.java:859)

              at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:579)

              at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1555)

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

      Caused by: java.lang.IllegalArgumentException: duplicate key: class javax.faces.validator.LengthValidator

              at com.google.common.base.Preconditions.checkArgument(Preconditions.java:115)

              at com.google.common.collect.RegularImmutableMap.<init>(RegularImmutableMap.java:73)

              at com.google.common.collect.ImmutableMap$Builder.fromEntryList(ImmutableMap.java:216)

              at com.google.common.collect.ImmutableMap$Builder.build(ImmutableMap.java:202)

              at org.richfaces.javascript.ClientServiceConfigParser.parseConfig(ClientServiceConfigParser.java:50)

              at org.richfaces.application.ValidatorModule.createClientScriptService(ValidatorModule.java:71)

              at org.richfaces.application.ValidatorModule.configure(ValidatorModule.java:65)

              at org.richfaces.application.ServicesFactoryImpl.init(ServicesFactoryImpl.java:28)

              at org.richfaces.application.InitializationListener.createFactory(InitializationListener.java:136)

              at org.richfaces.application.InitializationListener.onStart(InitializationListener.java:110)

              at org.richfaces.application.InitializationListener.processEvent(InitializationListener.java:152)

              at javax.faces.event.SystemEvent.processListener(SystemEvent.java:102)

              at com.sun.faces.application.ApplicationImpl.processListeners(ApplicationImpl.java:1993)

              at com.sun.faces.application.ApplicationImpl.invokeListenersFor(ApplicationImpl.java:1969)

              at com.sun.faces.application.ApplicationImpl.publishEvent(ApplicationImpl.java:299)

              at com.sun.faces.config.ConfigManager.publishPostConfigEvent(ConfigManager.java:601)

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

              ... 37 more

       

      please a need a configuration for migrate to m5

      or a need how to configurate maven project in netbeans i download the

      http://anonsvn.jboss.org/repos/richfaces/trunk/archetypes/richfaces-archetype-simpleapp

      and don't run , please help

      regards.

      Richfacesfan