3 Replies Latest reply on May 5, 2011 11:06 AM by Rodrigo Mendoza

    RichFaces 4 Showcase on glassfish

    Rodrigo Mendoza Novice

      Hi, Im trying out richfaces 4 showcase a little at a time and I get on alright, but when I decide to test the entire showcase I get the error:

       

      org.apache.catalina.LifecycleException: PWC2769: Manager has not yet been started

       

      My enviorment is

       

      NetBeans 6.9.1

      jdk1.6.0_21

      glassfish-3.0.1

       

      lib/

       

      cssparser-0.9.5.jar

      guava-r09.jar

      log4j-1.2.14.jar

      richfaces-components-api-4.0.0.Final.jar

      richfaces-components-ui-4.0.0.Final.jar

      richfaces-core-api-4.0.0.Final.jar

      richfaces-core-impl-4.0.0.Final.jar

      sac-1.3.jar

       

      The source is the one from : http://anonsvn.jboss.org/repos/richfaces/trunk/examples/richfaces-showcase/src/main/

       

      The error:

       

       

      GRAVE: PWC1306: Startup of context /RichfacesShowcase failed due to previous errors
      GRAVE: PWC1305: Exception during cleanup after start failed
      org.apache.catalina.LifecycleException: PWC2769: Manager has not yet been started
              at org.apache.catalina.session.StandardManager.stop(StandardManager.java:892)
              at org.apache.catalina.core.StandardContext.stop(StandardContext.java:5456)
              at com.sun.enterprise.web.WebModule.stop(WebModule.java:530)
              at org.apache.catalina.core.StandardContext.start(StandardContext.java:5284)
              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)
      
      
      GRAVE: ContainerBase.addChild: start: 
      org.apache.catalina.LifecycleException: com.sun.faces.mgbean.ManagedBeanCreationException: Se ha producido un error al realizar la inyección de recurso en el bean administrado persistenceService
              at org.apache.catalina.core.StandardContext.start(StandardContext.java:5289)
              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: com.sun.faces.mgbean.ManagedBeanCreationException: Se ha producido un error al realizar la inyección de recurso en el bean administrado persistenceService
              at com.sun.faces.mgbean.BeanBuilder.invokePostConstruct(BeanBuilder.java:229)
              at com.sun.faces.mgbean.BeanBuilder.build(BeanBuilder.java:105)
              at com.sun.faces.mgbean.BeanManager.createAndPush(BeanManager.java:405)
              at com.sun.faces.mgbean.BeanManager.create(BeanManager.java:267)
              at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:253)
              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)
              ... 38 more
      Caused by: com.sun.faces.spi.InjectionProviderException: com.sun.enterprise.container.common.spi.util.InjectionException: Exception attempting invoke lifecycle  method public void org.richfaces.demo.arrangeablemodel.PersistenceService.init()
              at org.glassfish.faces.integration.GlassFishInjectionProvider.invokePostConstruct(GlassFishInjectionProvider.java:135)
              at com.sun.faces.mgbean.BeanBuilder.invokePostConstruct(BeanBuilder.java:223)
              ... 45 more
      Caused by: com.sun.enterprise.container.common.spi.util.InjectionException: Exception attempting invoke lifecycle  method public void org.richfaces.demo.arrangeablemodel.PersistenceService.init()
              at org.glassfish.faces.integration.GlassFishInjectionProvider.invokeLifecycleMethod(GlassFishInjectionProvider.java:297)
              at org.glassfish.faces.integration.GlassFishInjectionProvider.invokePostConstruct(GlassFishInjectionProvider.java:210)
              at org.glassfish.faces.integration.GlassFishInjectionProvider.invokePostConstruct(GlassFishInjectionProvider.java:133)
              ... 46 more
      Caused by: java.security.PrivilegedActionException: java.lang.reflect.InvocationTargetException
              at java.security.AccessController.doPrivileged(Native Method)
              at org.glassfish.faces.integration.GlassFishInjectionProvider.invokeLifecycleMethod(GlassFishInjectionProvider.java:280)
              ... 48 more
      Caused by: java.lang.reflect.InvocationTargetException
              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.glassfish.faces.integration.GlassFishInjectionProvider$1.run(GlassFishInjectionProvider.java:286)
              ... 50 more
      Caused by: javax.persistence.PersistenceException: No Persistence provider for EntityManager named richfaces-showcase
              at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:84)
              at org.richfaces.demo.arrangeablemodel.PersistenceService.init(PersistenceService.java:97)
              ... 55 more
      
      
      ADVERTENCIA: java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: com.sun.faces.mgbean.ManagedBeanCreationException: Se ha producido un error al realizar la inyección de recurso en el bean administrado persistenceService
      java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: com.sun.faces.mgbean.ManagedBeanCreationException: Se ha producido un error al realizar la inyección de recurso en el bean administrado persistenceService
              at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:932)
              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)
      
      
      GRAVE: Exception while invoking class com.sun.enterprise.web.WebApplication start method
      java.lang.Exception: java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: com.sun.faces.mgbean.ManagedBeanCreationException: Se ha producido un error al realizar la inyección de recurso en el bean administrado persistenceService
              at com.sun.enterprise.web.WebApplication.start(WebApplication.java:117)
              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)
      
      
      GRAVE: Exception while loading the app
      java.lang.Exception: java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: com.sun.faces.mgbean.ManagedBeanCreationException: Se ha producido un error al realizar la inyección de recurso en el bean administrado persistenceService
              at com.sun.enterprise.web.WebApplication.start(WebApplication.java:117)
              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)
      
      
      INFO: Update Component count = 59
      
      

       

      Im lost please help, I have spend a lot of time on google and try several things

       

       

      Thanks in advance