1 Reply Latest reply on May 7, 2011 7:42 AM by xsa lefter

    Run Seam 2.2.0 GA on GlassFish server

    Ciccio Pasticcio Newbie

      Hi all,
      I'm try to run a Seam web app on a GlassFish server. For do this I've added these JAR (Jar image) inside the lib forlder of the application war, but during the deploy I've this error:



      [#|2011-04-22T17:07:36.399+0200|SEVERE|sun-appserver9.1|javax.enterprise.system.container.web|_ThreadID=29;_ThreadName=Thread-645;_RequestID=059bcb37-a2c5-4f59-888f-de9c4dfb83bb;|WebModule[/calendario]PWC1275: Exception sending context initialized event to listener instance of class org.jboss.seam.servlet.SeamListener
      org.jboss.seam.InstantiationException: Could not instantiate Seam component: entityManagerFactory
           at org.jboss.seam.Component.newInstance(Component.java:2144)
           at org.jboss.seam.contexts.Contexts.startup(Contexts.java:304)
           at org.jboss.seam.contexts.Contexts.startup(Contexts.java:278)
           at org.jboss.seam.contexts.ServletLifecycle.endInitialization(ServletLifecycle.java:116)
           at org.jboss.seam.init.Initialization.init(Initialization.java:740)
           at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:36)
           at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4523)
           at org.apache.catalina.core.StandardContext.start(StandardContext.java:5184)
           at com.sun.enterprise.web.WebModule.start(WebModule.java:326)
           at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:973)
           at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:957)
           at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:688)
           at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1589)
           at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1227)
           at com.sun.enterprise.server.WebModuleDeployEventListener.moduleDeployed(WebModuleDeployEventListener.java:182)
           at com.sun.enterprise.server.WebModuleDeployEventListener.moduleDeployed(WebModuleDeployEventListener.java:278)
           at com.sun.enterprise.admin.event.AdminEventMulticaster.invokeModuleDeployEventListener(AdminEventMulticaster.java:974)
           at com.sun.enterprise.admin.event.AdminEventMulticaster.handleModuleDeployEvent(AdminEventMulticaster.java:961)
           at com.sun.enterprise.admin.event.AdminEventMulticaster.processEvent(AdminEventMulticaster.java:464)
           at com.sun.enterprise.admin.event.AdminEventMulticaster.multicastEvent(AdminEventMulticaster.java:176)
           at com.sun.enterprise.admin.server.core.DeploymentNotificationHelper.multicastEvent(DeploymentNotificationHelper.java:308)
           at com.sun.enterprise.deployment.phasing.DeploymentServiceUtils.multicastEvent(DeploymentServiceUtils.java:226)
           at com.sun.enterprise.deployment.phasing.ServerDeploymentTarget.sendStartEvent(ServerDeploymentTarget.java:298)
           at com.sun.enterprise.deployment.phasing.ApplicationStartPhase.runPhase(ApplicationStartPhase.java:132)
           at com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:108)
           at com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:933)
           at com.sun.enterprise.deployment.phasing.PEDeploymentService.start(PEDeploymentService.java:605)
           at com.sun.enterprise.deployment.phasing.PEDeploymentService.start(PEDeploymentService.java:649)
           at com.sun.enterprise.admin.mbeans.ApplicationsConfigMBean.start(ApplicationsConfigMBean.java:744)
           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 com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:378)
           at com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:361)
           at com.sun.enterprise.admin.config.BaseConfigMBean.invoke(BaseConfigMBean.java:480)
           at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:836)
           at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:761)
           at sun.reflect.GeneratedMethodAccessor19.invoke(Unknown Source)
           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
           at java.lang.reflect.Method.invoke(Method.java:597)
           at com.sun.enterprise.admin.util.proxy.ProxyClass.invoke(ProxyClass.java:90)
           at $Proxy1.invoke(Unknown Source)
           at com.sun.enterprise.admin.server.core.jmx.SunoneInterceptor.invoke(SunoneInterceptor.java:304)
           at com.sun.enterprise.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:174)
           at com.sun.enterprise.deployment.client.DeploymentClientUtils.startApplication(DeploymentClientUtils.java:145)
           at com.sun.enterprise.deployment.client.DeployAction.run(DeployAction.java:537)
           at java.lang.Thread.run(Thread.java:619)
      Caused by: javax.persistence.PersistenceException: No Persistence provider for EntityManager named calendario: Provider named org.hibernate.ejb.HibernatePersistence threw unexpected exception at create EntityManagerFactory: 
      javax.persistence.PersistenceException
      javax.persistence.PersistenceException: [PersistenceUnit: calendario] Unable to build EntityManagerFactory
           at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:677)
           at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:126)
           at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:110)
           at org.jboss.seam.persistence.EntityManagerFactory.createEntityManagerFactory(EntityManagerFactory.java:85)
           at org.jboss.seam.persistence.EntityManagerFactory.startup(EntityManagerFactory.java:50)
           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.jboss.seam.util.Reflections.invoke(Reflections.java:22)
           at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:144)
           at org.jboss.seam.Component.callComponentMethod(Component.java:2257)
           at org.jboss.seam.Component.callCreateMethod(Component.java:2172)
           at org.jboss.seam.Component.newInstance(Component.java:2132)
           at org.jboss.seam.contexts.Contexts.startup(Contexts.java:304)
           at org.jboss.seam.contexts.Contexts.startup(Contexts.java:278)
           at org.jboss.seam.contexts.ServletLifecycle.endInitialization(ServletLifecycle.java:116)
           at org.jboss.seam.init.Initialization.init(Initialization.java:740)
           at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:36)
           at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4523)
           at org.apache.catalina.core.StandardContext.start(StandardContext.java:5184)
           at com.sun.enterprise.web.WebModule.start(WebModule.java:326)
           at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:973)
           at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:957)
           at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:688)
           at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1589)
           at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1227)
           at com.sun.enterprise.server.WebModuleDeployEventListener.moduleDeployed(WebModuleDeployEventListener.java:182)
           at com.sun.enterprise.server.WebModuleDeployEventListener.moduleDeployed(WebModuleDeployEventListener.java:278)
           at com.sun.enterprise.admin.event.AdminEventMulticaster.invokeModuleDeployEventListener(AdminEventMulticaster.java:974)
           at com.sun.enterprise.admin.event.AdminEventMulticaster.handleModuleDeployEvent(AdminEventMulticaster.java:961)
           at com.sun.enterprise.admin.event.AdminEventMulticaster.processEvent(AdminEventMulticaster.java:464)
           at com.sun.enterprise.admin.event.AdminEventMulticaster.multicastEvent(AdminEventMulticaster.java:176)
           at com.sun.enterprise.admin.server.core.DeploymentNotificationHelper.multicastEvent(DeploymentNotificationHelper.java:308)
           at com.sun.enterprise.deployment.phasing.DeploymentServiceUtils.multicastEvent(DeploymentServiceUtils.java:226)
           at com.sun.enterprise.deployment.phasing.ServerDeploymentTarget.sendStartEvent(ServerDeploymentTarget.java:298)
           at com.sun.enterprise.deployment.phasing.ApplicationStartPhase.runPhase(ApplicationStartPhase.java:132)
           at com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:108)
           at com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:933)
           at com.sun.enterprise.deployment.phasing.PEDeploymentService.start(PEDeploymentService.java:605)
           at com.sun.enterprise.deployment.phasing.PEDeploymentService.start(PEDeploymentService.java:649)
           at com.sun.enterprise.admin.mbeans.ApplicationsConfigMBean.start(ApplicationsConfigMBean.java:744)
           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 com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:378)
           at com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:361)
           at com.sun.enterprise.admin.config.BaseConfigMBean.invoke(BaseConfigMBean.java:480)
           at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:836)
           at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:761)
           at sun.reflect.GeneratedMethodAccessor19.invoke(Unknown Source)
           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
           at java.lang.reflect.Method.invoke(Method.java:597)
           at com.sun.enterprise.admin.util.proxy.ProxyClass.invoke(ProxyClass.java:90)
           at $Proxy1.invoke(Unknown Source)
           at com.sun.enterprise.admin.server.core.jmx.SunoneInterceptor.invoke(SunoneInterceptor.java:304)
           at com.sun.enterprise.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:174)
           at com.sun.enterprise.deployment.client.DeploymentClientUtils.startApplication(DeploymentClientUtils.java:145)
           at com.sun.enterprise.deployment.client.DeployAction.run(DeployAction.java:537)
           at java.lang.Thread.run(Thread.java:619)
      Caused by: org.hibernate.HibernateException: Could not locate TransactionManager
           at org.hibernate.transaction.JNDITransactionManagerLookup.getTransactionManager(JNDITransactionManagerLookup.java:60)
           at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:357)
           at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1327)
           at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:867)
           at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:669)
           ... 60 more
      Caused by: javax.naming.NameNotFoundException: No object bound to name java:/TransactionManager
           at com.sun.enterprise.naming.NamingManagerImpl.lookup(NamingManagerImpl.java:834)
           at com.sun.enterprise.naming.java.javaURLContext.lookup(javaURLContext.java:218)
           at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:396)
           at javax.naming.InitialContext.lookup(InitialContext.java:392)
           at org.hibernate.transaction.JNDITransactionManagerLookup.getTransactionManager(JNDITransactionManagerLookup.java:57)
           ... 64 more
      
      
       The following providers:
      oracle.toplink.essentials.PersistenceProvider
      oracle.toplink.essentials.ejb.cmp3.EntityManagerFactoryProvider
      Returned null to createEntityManagerFactory.
      
           at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:154)
           at org.jboss.seam.persistence.EntityManagerFactory.createEntityManagerFactory(EntityManagerFactory.java:85)
           at org.jboss.seam.persistence.EntityManagerFactory.startup(EntityManagerFactory.java:50)
           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.jboss.seam.util.Reflections.invoke(Reflections.java:22)
           at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:144)
           at org.jboss.seam.Component.callComponentMethod(Component.java:2257)
           at org.jboss.seam.Component.callCreateMethod(Component.java:2172)
           at org.jboss.seam.Component.newInstance(Component.java:2132)
           ... 47 more
      |#]
      
      [#|2011-04-22T17:07:36.399+0200|SEVERE|sun-appserver9.1|org.apache.catalina.core.StandardContext|_ThreadID=29;_ThreadName=Thread-645;_RequestID=059bcb37-a2c5-4f59-888f-de9c4dfb83bb;|PWC1306: Startup of context /calendario failed due to previous errors|#]
      
      [#|2011-04-22T17:07:36.415+0200|SEVERE|sun-appserver9.1|javax.enterprise.system.container.web|_ThreadID=29;_ThreadName=Thread-645;_RequestID=059bcb37-a2c5-4f59-888f-de9c4dfb83bb;|WebModule[/calendario]PWC1277: Exception sending context destroyed event to listener instance of class org.jboss.seam.servlet.SeamListener
      java.lang.NullPointerException
           at org.jboss.seam.core.Events.raiseEvent(Events.java:63)
           at org.jboss.seam.contexts.Contexts.destroy(Contexts.java:236)
           at org.jboss.seam.contexts.Lifecycle.endApplication(Lifecycle.java:61)
           at org.jboss.seam.contexts.ServletLifecycle.endApplication(ServletLifecycle.java:149)
           at org.jboss.seam.servlet.SeamListener.contextDestroyed(SeamListener.java:41)
           at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:4567)
           at org.apache.catalina.core.StandardContext.stop(StandardContext.java:5355)
           at com.sun.enterprise.web.WebModule.stop(WebModule.java:357)
           at org.apache.catalina.core.StandardContext.start(StandardContext.java:5211)
           at com.sun.enterprise.web.WebModule.start(WebModule.java:326)
           at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:973)
           at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:957)
           at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:688)
           at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1589)
           at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1227)
           at com.sun.enterprise.server.WebModuleDeployEventListener.moduleDeployed(WebModuleDeployEventListener.java:182)
           at com.sun.enterprise.server.WebModuleDeployEventListener.moduleDeployed(WebModuleDeployEventListener.java:278)
           at com.sun.enterprise.admin.event.AdminEventMulticaster.invokeModuleDeployEventListener(AdminEventMulticaster.java:974)
           at com.sun.enterprise.admin.event.AdminEventMulticaster.handleModuleDeployEvent(AdminEventMulticaster.java:961)
           at com.sun.enterprise.admin.event.AdminEventMulticaster.processEvent(AdminEventMulticaster.java:464)
           at com.sun.enterprise.admin.event.AdminEventMulticaster.multicastEvent(AdminEventMulticaster.java:176)
           at com.sun.enterprise.admin.server.core.DeploymentNotificationHelper.multicastEvent(DeploymentNotificationHelper.java:308)
           at com.sun.enterprise.deployment.phasing.DeploymentServiceUtils.multicastEvent(DeploymentServiceUtils.java:226)
           at com.sun.enterprise.deployment.phasing.ServerDeploymentTarget.sendStartEvent(ServerDeploymentTarget.java:298)
           at com.sun.enterprise.deployment.phasing.ApplicationStartPhase.runPhase(ApplicationStartPhase.java:132)
           at com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:108)
           at com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:933)
           at com.sun.enterprise.deployment.phasing.PEDeploymentService.start(PEDeploymentService.java:605)
           at com.sun.enterprise.deployment.phasing.PEDeploymentService.start(PEDeploymentService.java:649)
           at com.sun.enterprise.admin.mbeans.ApplicationsConfigMBean.start(ApplicationsConfigMBean.java:744)
           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 com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:378)
           at com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:361)
           at com.sun.enterprise.admin.config.BaseConfigMBean.invoke(BaseConfigMBean.java:480)
           at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:836)
           at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:761)
           at sun.reflect.GeneratedMethodAccessor19.invoke(Unknown Source)
           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
           at java.lang.reflect.Method.invoke(Method.java:597)
           at com.sun.enterprise.admin.util.proxy.ProxyClass.invoke(ProxyClass.java:90)
           at $Proxy1.invoke(Unknown Source)
           at com.sun.enterprise.admin.server.core.jmx.SunoneInterceptor.invoke(SunoneInterceptor.java:304)
           at com.sun.enterprise.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:174)
           at com.sun.enterprise.deployment.client.DeploymentClientUtils.startApplication(DeploymentClientUtils.java:145)
           at com.sun.enterprise.deployment.client.DeployAction.run(DeployAction.java:537)
           at java.lang.Thread.run(Thread.java:619)
      |#]



      Can you help me?
      Thank you very much!