1 2 Previous Next 15 Replies Latest reply on Feb 2, 2006 3:15 PM by krypton

    No default persistence unit

    krypton Novice

      jboss-5.0.0alpha (cvs today)
      jboss-seam-1.0beta1 (cvs yesterday)

      Problem: I am morphing the booking example, everything was fine until I upgraded to the latest ejb3 and seam. The same error occurs with jboss-seam-head and with a patched jboss-4.0.3SP1 with ejb3 patches as per instruction and following
      http://wiki.jboss.org/wiki/Wiki.jsp?page=FromJBossEJB3.0RC3ToRC4PFD ie i followed these instructions http://docs.jboss.org/ejb3/app-server/tutorial/installing.html

      Anyway, I decided to try building jboss-head with jboss-seam-head, but I cannot deploy my ear.

      Deployables:
      cms.ear

      TIA if anyone can help

      Server Trace:

      22:38:08,706 INFO [Server] JBoss (MX MicroKernel) [5.0.0alpha (build: CVSTag=HEAD date=200602011955)] Started
       in 1m:13s:937ms
      22:39:43,111 INFO [EARDeployer] Init J2EE application: file:/C:/projects/myproject/prod/jboss-5.0.0alpha/server/i
      playserver/deploy/cms.ear
      22:39:49,691 INFO [Ejb3AnnotationHandler] found EJB3: ejbName=LoginAction, class=com.myproject.cms.manager.Logi
      nAction, type=STATELESS
      22:39:49,841 INFO [Ejb3AnnotationHandler] found EJB3: ejbName=LogoutAction, class=com.myproject.cms.manager.Log
      outAction, type=STATELESS
      22:39:49,901 INFO [Ejb3AnnotationHandler] found EJB3: ejbName=RegisterAction, class=com.myproject.cms.manager.R
      egisterAction, type=STATEFUL
      22:39:50,021 INFO [Ejb3Deployment] EJB3 deployment time took: 630
      22:39:50,252 WARN [ServiceController] Ignoring request to stop nonexistent service: jboss.j2ee:service=EJB3,e
      ar=cms.ear,jar=cms.ejb3,name=LoginAction
      22:39:50,262 WARN [ServiceController] Ignoring request to destroy nonexistent service: jboss.j2ee:service=EJB
      3,ear=cms.ear,jar=cms.ejb3,name=LoginAction
      22:39:50,262 WARN [ServiceController] Ignoring request to stop nonexistent service: jboss.j2ee:service=EJB3,e
      ar=cms.ear,jar=cms.ejb3,name=LogoutAction
      22:39:50,272 WARN [ServiceController] Ignoring request to destroy nonexistent service: jboss.j2ee:service=EJB
      3,ear=cms.ear,jar=cms.ejb3,name=LogoutAction
      22:39:50,272 WARN [ServiceController] Ignoring request to stop nonexistent service: jboss.j2ee:service=EJB3,e
      ar=cms.ear,jar=cms.ejb3,name=RegisterAction
      22:39:50,282 WARN [ServiceController] Ignoring request to destroy nonexistent service: jboss.j2ee:service=EJB
      3,ear=cms.ear,jar=cms.ejb3,name=RegisterAction
      22:39:50,312 WARN [ServiceController] Problem starting service jboss.j2ee:service=EJB3,module=cms.ejb3
      java.lang.RuntimeException: Field private javax.persistence.EntityManager com.myproject.cms.manager.LoginAction.
      em @PersistenceUnit in error: There is no default persistence unit in this deployment.
       at org.jboss.ejb3.injection.PersistenceContextHandler.loadFieldDependencies(PersistenceContextHandler.
      java:306)
       at org.jboss.ejb3.injection.PersistenceContextHandler.loadDependencies(PersistenceContextHandler.java:
      349)
       at org.jboss.ejb3.EJBContainer.processMetadata(EJBContainer.java:239)
       at org.jboss.ejb3.SessionContainer.processMetadata(SessionContainer.java:77)
       at org.jboss.ejb3.Ejb3Deployment.processEJBContainerMetadata(Ejb3Deployment.java:406)
       at org.jboss.ejb3.Ejb3Deployment.start(Ejb3Deployment.java:457)
       at org.jboss.ejb3.Ejb3Module.startService(Ejb3Module.java:139)
       at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
       at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
       at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:585)
       at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
       at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
       at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:262)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
       at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:974)
       at $Proxy0.start(Unknown Source)
       at org.jboss.system.ServiceController.start(ServiceController.java:417)
       at sun.reflect.GeneratedMethodAccessor8.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:585)
       at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
       at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
       at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:262)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
       at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:190)
       at $Proxy29.start(Unknown Source)
       at org.jboss.ejb3.EJB3Deployer.start(EJB3Deployer.java:377)
       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:585)
       at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
       at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
       at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:138)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:90)
       at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:
      140)
       at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
       at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:237)
      
       at org.jboss.ws.server.WebServiceDeployer.start(WebServiceDeployer.java:111)
       at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubDeployerInterceptorSu
      pport.java:181)
       at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:96)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:90)
       at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:262)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
       at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:190)
       at $Proxy30.start(Unknown Source)
       at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1007)
       at org.jboss.deployment.MainDeployer.start(MainDeployer.java:997)
       at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:808)
       at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:771)
       at sun.reflect.GeneratedMethodAccessor20.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:585)
       at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
       at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
       at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:138)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:90)
       at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:
      140)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:90)
       at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:262)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
       at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:190)
       at $Proxy8.deploy(Unknown Source)
       at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:334)
       at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:522)
       at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScann
      er.java:207)
       at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner
      .java:218)
       at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.
      java:197)
      22:39:50,562 INFO [EJB3Deployer] Deployed: file:/C:/projects/myproject/prod/jboss-5.0.0alpha/server/myprojectserver/t
      mp/deploy/tmp1427cms.ear-contents/cms.ejb3
      22:39:50,582 INFO [TomcatDeployer] deploy, ctxPath=/, warUrl=.../tmp/deploy/tmp1427cms.ear-contents/cms-exp.w
      ar/
      22:39:50,893 INFO [ServletContextListener] Welcome to Seam 1.0 beta 2
      22:39:50,913 INFO [Initialization] reading properties from: /seam.properties
      22:39:50,923 INFO [Initialization] reading properties from: /seam-jndi.properties
      22:39:50,923 INFO [Initialization] initializing Seam
      22:39:51,053 INFO [Component] Component: org.jboss.seam.core.init, scope: APPLICATION, type: JAVA_BEAN, class
      : org.jboss.seam.core.Init
      22:39:51,754 INFO [Component] Component: org.jboss.seam.core.pages, scope: APPLICATION, type: JAVA_BEAN, clas
      s: org.jboss.seam.core.Pages
      22:39:51,794 INFO [Component] Component: org.jboss.seam.core.manager, scope: EVENT, type: JAVA_BEAN, class: o
      rg.jboss.seam.core.Manager
      22:39:51,864 INFO [Component] Component: switcher, scope: PAGE, type: JAVA_BEAN, class: org.jboss.seam.core.S
      witcher
      22:39:51,894 INFO [Component] Component: conversation, scope: CONVERSATION, type: JAVA_BEAN, class: org.jboss
      .seam.core.Conversation
      22:39:51,914 INFO [Component] Component: conversationList, scope: PAGE, type: JAVA_BEAN, class: org.jboss.sea
      m.core.ConversationList
      22:39:51,944 INFO [Component] Component: conversationStack, scope: PAGE, type: JAVA_BEAN, class: org.jboss.se
      am.core.ConversationStack
      22:39:51,964 INFO [Component] Component: facesContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.
      seam.core.FacesContext
      22:39:51,984 INFO [Component] Component: eventContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.
      seam.core.EventContext
      22:39:52,014 INFO [Component] Component: sessionContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jbos
      s.seam.core.SessionContext
      22:39:52,044 INFO [Component] Component: statelessContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jb
      oss.seam.core.StatelessContext
      22:39:52,064 INFO [Component] Component: applicationContext, scope: APPLICATION, type: JAVA_BEAN, class: org.
      jboss.seam.core.ApplicationContext
      22:39:52,084 INFO [Component] Component: conversationContext, scope: APPLICATION, type: JAVA_BEAN, class: org
      .jboss.seam.core.ConversationContext
      22:39:52,104 INFO [Component] Component: businessProcessContext, scope: APPLICATION, type: JAVA_BEAN, class:
      org.jboss.seam.core.BusinessProcessContext
      22:39:52,124 INFO [Component] Component: resourceBundle, scope: APPLICATION, type: JAVA_BEAN, class: org.jbos
      s.seam.core.ResourceBundle
      22:39:52,175 INFO [Component] Component: org.jboss.seam.debug.introspector, scope: EVENT, type: JAVA_BEAN, cl
      ass: org.jboss.seam.debug.Introspector
      22:39:52,335 INFO [ResourceBundle] resource bundle missing: messages
      22:39:52,635 INFO [Component] Component: org.jboss.seam.debug.contexts, scope: APPLICATION, type: JAVA_BEAN,
      class: org.jboss.seam.debug.Contexts
      22:39:52,675 INFO [Component] Component: myprojectcmsEntityManager, scope: CONVERSATION, type: JAVA_BEAN, class
      : org.jboss.seam.core.ManagedPersistenceContext
      22:39:52,705 INFO [Scanner] scanning: /C:/projects/myproject/prod/jboss-5.0.0alpha/server/myprojectserver/tmp/deploy/
      tmp1427cms.ear-contents/cms.ejb3
      22:39:52,866 INFO [Component] Component: themeManager, scope: APPLICATION, type: JAVA_BEAN, class: com.myproject6
      9.cms.theme.ThemeManager
      22:39:52,906 INFO [Component] Component: login, scope: STATELESS, type: STATELESS_SESSION_BEAN, class: com.ip
      lay69.cms.manager.LoginAction, JNDI: cms/LoginAction/local
      22:39:52,976 INFO [Component] Component: user, scope: SESSION, type: ENTITY_BEAN, class: com.myproject.cms.mode
      l.user.User
      22:39:53,056 INFO [Component] Component: logout, scope: STATELESS, type: STATELESS_SESSION_BEAN, class: com.i
      play69.cms.manager.LogoutAction, JNDI: cms/LogoutAction/local
      22:39:53,136 INFO [Component] Component: register, scope: EVENT, type: STATEFUL_SESSION_BEAN, class: com.ipla
      y69.cms.manager.RegisterAction, JNDI: cms/RegisterAction/local
      22:39:53,186 INFO [Initialization] done initializing Seam
      22:39:53,647 INFO [FacesConfigurator] Reading standard config org/apache/myfaces/resource/standard-faces-conf
      ig.xml
      22:39:53,857 INFO [FacesConfigurator] Reading config jar:file:/C:/projects/myproject/prod/jboss-5.0.0alpha/server
      /myprojectserver/tmp/deploy/tmp1427cms.ear-contents/cms-exp.war/WEB-INF/lib/jsf-facelets.jar!/META-INF/faces-confi
      g.xml
      22:39:53,887 INFO [FacesConfigurator] Reading config /WEB-INF/faces-config.xml
      22:39:54,167 ERROR [LocaleUtils] Locale name null or empty, ignoring
      22:39:54,908 INFO [StartupServletContextListener] ServletContext 'C:\projects\myproject\prod\jboss-5.0.0alpha\ser
      ver\myprojectserver\.\tmp\deploy\tmp1427cms.ear-contents\cms-exp.war\' initialized.
      22:39:54,928 INFO [ProfileServlet] Starting initialisation
      22:39:54,989 INFO [ProfileServlet] Completed initialisation
      22:39:55,159 INFO [EARDeployer] Started J2EE application: file:/C:/projects/myproject/prod/jboss-5.0.0alpha/serve
      r/myprojectserver/deploy/cms.ear
      


      seam.properties
      org.jboss.seam.core.init.managedPersistenceContexts myprojectcmsEntityManager
      myprojectcmsEntityManager.persistenceUnitJndiName java:/MyProjectCMSEntityManagerFactor
      


      seam-jndi.properties
      java.naming.factory.initial org.jnp.interfaces.LocalOnlyContextFactory
      java.naming.factory.url.pkgs org.jboss.naming:org.jnp.interfaces
      


      persistence.xml
       ...
       <property name="jboss.entity.manager.jndi.name" value="java:/MyProjectCMSEntityManager"/>
       <property name="jboss.entity.manager.factory.jndi.name" value="java:/MyProjectCMSEntityManagerFactory"/>
      


      web.xml
       ...
       <!-- Global JNDI name pattern for JBoss EJB3 (change for other servers) -->
       <context-param>
       <param-name>org.jboss.seam.core.init.jndiPattern</param-name>
       <param-value>cms/#{ejbName}/local</param-value>
       </context-param>
      
       <context-param>
       <param-name>
       org.jboss.seam.core.init.managedPersistenceContexts
       </param-name>
       <param-value>myprojectcmsEntityManager</param-value>
       </context-param>
      
       <context-param>
       <param-name>trySeam1Entity.myprojectcmsEntityManager</param-name>
       <param-value>
       java:/MyProjectCMSEntityManagerFactory
       </param-value>
       </context-param>
      


      any ideas people ?

        • 1. Re: No default persistence unit
          krypton Novice

          I get the same error during deployment for

          a patched jboss-4.0.3SP1 patch to latest ejb3

          and

          jboss-5.0.0alpha (cvs yesterday)

          TIA


          • 2. Re: No default persistence unit
            krypton Novice

            I noticed I had some wrong name references, so i corrected them, but i still get the same error

            stack

            13:33:25,535 WARN [ServiceController] Problem starting service jboss.j2ee:service=EJB3,module=cms.ejb3
            java.lang.RuntimeException: Field private javax.persistence.EntityManager com.iplay.cms.manager.LoginAction.em @PersistenceUnit
            in error: There is no default persistence unit in this deployment.
             at org.jboss.ejb3.injection.PersistenceContextHandler.loadFieldDependencies(PersistenceContextHandler.java:306)
             at org.jboss.ejb3.injection.PersistenceContextHandler.loadDependencies(PersistenceContextHandler.java:349)
             at org.jboss.ejb3.EJBContainer.processMetadata(EJBContainer.java:239)
             at org.jboss.ejb3.SessionContainer.processMetadata(SessionContainer.java:77)
             at org.jboss.ejb3.Ejb3Deployment.processEJBContainerMetadata(Ejb3Deployment.java:406)
             at org.jboss.ejb3.Ejb3Deployment.start(Ejb3Deployment.java:457)
             at org.jboss.ejb3.Ejb3Module.startService(Ejb3Module.java:139)
             at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:274)
             at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:230)
             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:585)
             at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
             at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
             at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
             at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
             at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
             at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:943)
             at $Proxy0.start(Unknown Source)
             at org.jboss.system.ServiceController.start(ServiceController.java:428)
             at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
             at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
             at java.lang.reflect.Method.invoke(Method.java:585)
             at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
             at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
             at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
             at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
             at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
             at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
             at $Proxy28.start(Unknown Source)
             at org.jboss.ejb3.EJB3Deployer.start(EJB3Deployer.java:365)
             at org.jboss.deployment.MainDeployer.start(MainDeployer.java:989)
             at org.jboss.deployment.MainDeployer.start(MainDeployer.java:979)
             at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:790)
             at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:753)
             at sun.reflect.GeneratedMethodAccessor15.invoke(Unknown Source)
             at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
             at java.lang.reflect.Method.invoke(Method.java:585)
             at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
             at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
             at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:118)
             at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
             at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127)
             at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
             at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
             at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
             at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
             at $Proxy6.deploy(Unknown Source)
             at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:319)
             at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:489)
             at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:192)
             at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:203)
             at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:182)
            13:33:25,535 INFO [EJB3Deployer] Deployed: file:/F:/projects/iplay/prod/jboss/server/iplayserver/tmp/deploy/tmp65083cms.ear-conte
            nts/cms.ejb3
            13:33:25,545 INFO [TomcatDeployer] deploy, ctxPath=/, warUrl=.../tmp/deploy/tmp65083cms.ear-contents/cms-exp.war/
            13:33:26,937 INFO [ServletContextListener] Welcome to Seam 1.0 beta 2
            13:33:26,937 INFO [Initialization] reading properties from: /seam.properties
            13:33:26,937 INFO [Initialization] reading properties from: /seam-jndi.properties
            13:33:26,937 INFO [Initialization] initializing Seam
            13:33:26,968 INFO [Component] Component: org.jboss.seam.core.init, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.cor
            e.Init
            13:33:26,988 INFO [Component] Component: org.jboss.seam.core.pages, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.co
            re.Pages
            13:33:26,998 INFO [Component] Component: org.jboss.seam.core.manager, scope: EVENT, type: JAVA_BEAN, class: org.jboss.seam.core.M
            anager
            13:33:27,018 INFO [Component] Component: switcher, scope: PAGE, type: JAVA_BEAN, class: org.jboss.seam.core.Switcher
            13:33:27,018 INFO [Component] Component: conversation, scope: CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.core.Conversat
            ion
            13:33:27,028 INFO [Component] Component: conversationList, scope: PAGE, type: JAVA_BEAN, class: org.jboss.seam.core.ConversationL
            ist
            13:33:27,038 INFO [Component] Component: conversationStack, scope: PAGE, type: JAVA_BEAN, class: org.jboss.seam.core.Conversation
            Stack
            13:33:27,038 INFO [Component] Component: facesContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.FacesConte
            xt
            13:33:27,038 INFO [Component] Component: eventContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.EventConte
            xt
            13:33:27,048 INFO [Component] Component: sessionContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.SessionC
            ontext
            13:33:27,048 INFO [Component] Component: statelessContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.Statel
            essContext
            13:33:27,048 INFO [Component] Component: applicationContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.Appl
            icationContext
            13:33:27,058 INFO [Component] Component: conversationContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.Con
            versationContext
            13:33:27,058 INFO [Component] Component: businessProcessContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.
            BusinessProcessContext
            13:33:27,068 INFO [Component] Component: resourceBundle, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.Resource
            Bundle
            13:33:27,068 INFO [Component] Component: org.jboss.seam.debug.introspector, scope: EVENT, type: JAVA_BEAN, class: org.jboss.seam.
            debug.Introspector
            13:33:27,098 INFO [ResourceBundle] resource bundle missing: messages
            13:33:27,098 INFO [Component] Component: org.jboss.seam.debug.contexts, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.sea
            m.debug.Contexts
            



            seam.properties
             org.jboss.seam.core.init.managedPersistenceContexts iplaycmsEntityManager
             iplaycmsEntityManager.persistenceUnitJndiName java:/IPlayCMSEntityManagerFactory
            


            seam-jndi.properties
             java.naming.factory.initial org.jnp.interfaces.LocalOnlyContextFactory
             java.naming.factory.url.pkgs org.jboss.naming:org.jnp.interfaces
            


            persistence.xml
             <property name="jboss.entity.manager.jndi.name" value="java:/IPlayCMSEntityManager"/>
             <property name="jboss.entity.manager.factory.jndi.name" value="java:/IPlayCMSEntityManagerFactory"/>
            


            web.xml
             <context-param>
             <param-name>org.jboss.seam.core.init.jndiPattern</param-name>
             <param-value>cms/#{ejbName}/local</param-value>
             </context-param>
            
             <context-param>
             <param-name>
             org.jboss.seam.core.init.managedPersistenceContexts
             </param-name>
             <param-value>iplaycmsEntityManager</param-value>
             </context-param>
            
             <context-param>
             <param-name>iplaycmsEntityManager.persistenceUnitJndiName</param-name>
             <param-value>
             java:/IPlayCMSEntityManagerFactory
             </param-value>
             </context-param>
            


            • 3. Re: No default persistence unit
              Thomas Heute Master

              Please show us you full persistence.xml

              I guess you inject your EntityManager using:
              @PersistenceContext
              private EntityManager em;
              Right ?

              • 4. Re: No default persistence unit
                krypton Novice

                Hi Thomas

                persistence.xml

                <entity-manager>
                 <name>iplaycmsDatabase</name>
                 <provider>org.hibernate.ejb.HibernatePersistence</provider>
                 <jta-data-source>java:/iplaycmsDatasource</jta-data-source>
                 <properties>
                 <property name="hibernate.dialect" value="org.hibernate.dialect.HSQLDialect"/>
                 <property name="hibernate.hbm2ddl.auto" value="update"/>
                 <property name="jboss.entity.manager.jndi.name" value="java:/IPlayCMSEntityManager"/>
                 <property name="jboss.entity.manager.factory.jndi.name" value="java:/IPlayCMSEntityManagerFactory"/>
                 </properties>
                </entity-manager>
                


                On of my session beas - same as example
                ....
                @Stateless
                @Name("login")
                @Interceptors(SeamInterceptor.class)
                public class LoginAction implements Login
                
                {
                
                 @In @Out
                 private User user;
                
                 @PersistenceContext
                 private EntityManager em;
                 ...
                


                I even tried chaning the variable name from em to iplaycmsEntityManager to match the configuration, but still nothing.

                any ideas ?

                • 5. Re: No default persistence unit
                  krypton Novice

                  Ah hmm I think i see where i *might* be going wrong. I am going to play with the persistence xml and see.

                  • 6. Re: No default persistence unit
                    Thomas Heute Master

                    Yes you missed line line in the Wiki for updating the persistence.xml

                    <persistence>
                     <persistence-unit name="iplaycmsDatabase">
                     <provider>org.hibernate.ejb.HibernatePersistence</provider>
                     <jta-data-source>java:/iplaycmsDatasource</jta-data-source>
                     <properties>
                     <property name="hibernate.dialect" value="org.hibernate.dialect.HSQLDialect"/>
                     <property name="hibernate.hbm2ddl.auto" value="update"/>
                     <property name="jboss.entity.manager.jndi.name" value="java:/IPlayCMSEntityManager"/>
                     <property name="jboss.entity.manager.factory.jndi.name" value="java:/IPlayCMSEntityManagerFactory"/>
                     </properties>
                     </persistence-unit>
                    </persistence>


                    Should work better

                    • 7. Re: No default persistence unit
                      krypton Novice

                      Hi again,

                      The errors have progressed to the following

                      Stack:

                      14:40:40,060 INFO [ServletContextListener] Welcome to Seam 1.0 beta 2
                      14:40:40,080 INFO [Initialization] reading properties from: /seam.properties
                      14:40:40,080 INFO [Initialization] reading properties from: /seam-jndi.properties
                      14:40:40,080 INFO [Initialization] initializing Seam
                      14:40:40,080 INFO [Component] Component: org.jboss.seam.core.init, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.cor
                      e.Init
                      14:40:40,090 ERROR [[/]] Exception sending context initialized event to listener instance of class org.jboss.seam.servlet.SeamList
                      ener
                      java.lang.IllegalArgumentException: java.beans.IntrospectionException: Method not found: isJndiPattern
                       at org.jboss.seam.Component.initInitializers(Component.java:251)
                       at org.jboss.seam.Component.<init>(Component.java:180)
                       at org.jboss.seam.Component.<init>(Component.java:139)
                       at org.jboss.seam.Component.<init>(Component.java:134)
                       at org.jboss.seam.init.Initialization.addComponent(Initialization.java:224)
                       at org.jboss.seam.init.Initialization.addComponents(Initialization.java:153)
                       at org.jboss.seam.init.Initialization.init(Initialization.java:83)
                       at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:59)
                       at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3669)
                       at org.apache.catalina.core.StandardContext.start(StandardContext.java:4104)
                       at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
                      


                      I have search through the forums and on the site for isJndiPattern, but nothing found, i'll try again

                      • 8. Re: No default persistence unit
                        krypton Novice

                        I found nothing in the cvs jboss-seam download i have from the last few days, there is nothing inthe forums or wiki or site AFAIK

                        Any ideas, its to do with the seam servlet, at the moment i can't access the cvs repos to d/l a fresh copy, but i am hoping that i need to add a configuration param in the web.xml ?

                        bwt, TIA ..

                        • 9. Re: No default persistence unit
                          Thomas Heute Master

                          the class org.jboss.seam.core.Init has a method setJndiPattern() since Jan 13th

                          (the error message says isJndiPattern, but is really looking for setJndiPattern)

                          Maybe you can try with the nightly build ?

                          • 10. Re: No default persistence unit
                            krypton Novice

                            Hi Thomas, just saw your message while typing this one up. Ok i am going
                            to try with the nightly build and go from there. Thanks again

                            -----------------------------------------------------------
                            On redeploy cycles, jboss complains the entity manager is already registered

                            15:02:41,517 WARN [ServiceController] Ignoring request to destroy nonexistent service: persistence.units:ear=cms.ear.ear,jar=cms.
                            ejb3.jar,unitName=iplaycmsEntityManager
                            15:02:41,517 WARN [ServiceController] Problem starting service jboss.j2ee:service=EJB3,module=cms.ejb3
                            java.lang.RuntimeException: javax.management.InstanceAlreadyExistsException: persistence.units:ear=cms.ear.ear,jar=cms.ejb3.jar,un
                            itName=iplaycmsEntityManager already registered.
                             at org.jboss.ejb3.JmxKernelAbstraction.install(JmxKernelAbstraction.java:80)
                             at org.jboss.ejb3.Ejb3Deployment.startPersistenceUnits(Ejb3Deployment.java:608)
                             at org.jboss.ejb3.Ejb3Deployment.start(Ejb3Deployment.java:452)
                             at org.jboss.ejb3.Ejb3Module.startService(Ejb3Module.java:139)
                             at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:274)
                             at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:230)
                             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:585)
                             at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
                             at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
                             at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
                             at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
                             at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
                             at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:943)
                             at $Proxy0.start(Unknown Source)
                             at org.jboss.system.ServiceController.start(ServiceController.java:428)
                             at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
                             at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                             at java.lang.reflect.Method.invoke(Method.java:585)
                             at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
                             at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
                             at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
                             at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
                             at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
                             at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
                             at $Proxy28.start(Unknown Source)
                             at org.jboss.ejb3.EJB3Deployer.start(EJB3Deployer.java:365)
                             at org.jboss.deployment.MainDeployer.start(MainDeployer.java:989)
                             at org.jboss.deployment.MainDeployer.start(MainDeployer.java:979)
                             at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:790)
                             at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:753)
                             at sun.reflect.GeneratedMethodAccessor15.invoke(Unknown Source)
                             at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                             at java.lang.reflect.Method.invoke(Method.java:585)
                             at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
                             at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
                             at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:118)
                             at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
                             at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127)
                             at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
                             at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
                             at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
                             at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
                             at $Proxy6.deploy(Unknown Source)
                             at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:319)
                             at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:507)
                             at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:192)
                             at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:203)
                             at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:182)
                            Caused by: javax.management.InstanceAlreadyExistsException: persistence.units:ear=cms.ear.ear,jar=cms.ejb3.jar,unitName=iplaycms
                            EntityManager already registered.
                             at org.jboss.mx.server.registry.BasicMBeanRegistry.add(BasicMBeanRegistry.java:742)
                             at org.jboss.mx.server.registry.BasicMBeanRegistry.registerMBean(BasicMBeanRegistry.java:210)
                             at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
                             at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                             at java.lang.reflect.Method.invoke(Method.java:585)
                             at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
                             at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
                             at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:118)
                             at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
                             at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127)
                             at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
                             at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
                             at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
                             at org.jboss.mx.server.MBeanServerImpl$3.run(MBeanServerImpl.java:1407)
                             at java.security.AccessController.doPrivileged(Native Method)
                             at org.jboss.mx.server.MBeanServerImpl.registerMBean(MBeanServerImpl.java:1402)
                             at org.jboss.mx.server.MBeanServerImpl.registerMBean(MBeanServerImpl.java:361)
                             at org.jboss.ejb3.JmxKernelAbstraction.install(JmxKernelAbstraction.java:73)
                             ... 50 more
                            15:02:41,517 INFO [EJB3Deployer] Deployed: file:/F:/projects/iplay/prod/jboss/server/iplayserver/tmp/deploy/tmp38815cms.ear-conte
                            nts/cms.ejb3
                            15:02:41,527 INFO [TomcatDeployer] deploy, ctxPath=/, warUrl=.../tmp/deploy/tmp38815cms.ear-contents/cms-exp.war/
                            15:02:43,120 INFO [ServletContextListener] Welcome to Seam 1.0 beta 2
                            15:02:43,140 INFO [Initialization] reading properties from: /seam.properties
                            15:02:43,140 INFO [Initialization] reading properties from: /seam-jndi.properties
                            15:02:43,140 INFO [Initialization] initializing Seam
                            15:02:43,140 INFO [Component] Component: org.jboss.seam.core.init, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.cor
                            


                            From my web.xml I removed the following as there were deployment errors

                             <context-param>
                             <param-name>org.jboss.seam.core.manager.conversationTimeout</param-name>
                             <param-value>120000</param-value>
                             </context-param>
                            
                             <!-- Global JNDI name pattern for JBoss EJB3 (change for other servers) -->
                            
                             <context-param>
                             <param-name>org.jboss.seam.core.init.jndiPattern</param-name>
                             <param-value>cms/#{ejbName}/local</param-value>
                             </context-param>
                            


                            When i do a clean start of the server, with tmp/work removed and a fresh deploy the following stack is
                            displayed

                            15:06:46,404 INFO [Component] Component: iplaycmsEntityManager, scope: CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.cor
                            e.ManagedPersistenceContext
                            15:06:46,434 INFO [Scanner] scanning: /F:/projects/iplay/prod/jboss/server/iplayserver/tmp/deploy/tmp49914cms.ear-contents/cms.ej
                            b3
                            15:06:46,514 ERROR [[/]] Exception sending context initialized event to listener instance of class org.jboss.seam.servlet.SeamList
                            ener
                            java.lang.IllegalArgumentException: You must specify org.jboss.seam.core.init.jndiPattern or use @JndiName: login
                             at org.jboss.seam.Component.getJndiName(Component.java:240)
                             at org.jboss.seam.Component.<init>(Component.java:166)
                             at org.jboss.seam.Component.<init>(Component.java:142)
                             at org.jboss.seam.Component.<init>(Component.java:137)
                             at org.jboss.seam.Component.<init>(Component.java:132)
                             at org.jboss.seam.init.Initialization.addComponent(Initialization.java:244)
                             at org.jboss.seam.init.Initialization.addComponents(Initialization.java:225)
                             at org.jboss.seam.init.Initialization.init(Initialization.java:93)
                             at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:59)
                             at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3669)
                             at org.apache.catalina.core.StandardContext.start(StandardContext.java:4104)
                             at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
                             at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
                             at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
                             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:585)
                             at org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)
                             at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:150)
                             at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
                            


                            Hmm. I can't see these in the examples, i can't access cvs yet, but are
                            they present in the latest examples - the jndiPattern value etc ? Perhaps
                            I need to build of a fresh source.


                            • 11. Re: No default persistence unit
                              krypton Novice

                              Hi again, I d/l a snapshot, rebuilt it all and it deploys fine, but calling a seam component - ie a session bean fails as it is not bound. Does anyone see anything specific that has changed recently to make this fail ? Sorry for this AGAIN :-(

                              Stack:

                              16:22:40,305 INFO [MyfacesConfig] No context init parameter 'org.apache.myfaces.ALLOW_JAVASCRIPT' found, using default value true
                              
                              16:22:40,305 INFO [MyfacesConfig] No context init parameter 'org.apache.myfaces.DETECT_JAVASCRIPT' found, using default value fal
                              se
                              16:22:40,305 INFO [MyfacesConfig] No context init parameter 'org.apache.myfaces.AUTO_SCROLL' found, using default value false
                              16:22:45,924 ERROR [[Faces Servlet]] Servlet.service() for servlet Faces Servlet threw exception
                              javax.faces.FacesException: Error calling action method of component with id _tagId0:_tagId6
                               at org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:79)
                               at javax.faces.component.UICommand.broadcast(UICommand.java:106)
                               at javax.faces.component.UIViewRoot._broadcastForPhase(UIViewRoot.java:90)
                               at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:164)
                               at org.apache.myfaces.lifecycle.LifecycleImpl.invokeApplication(LifecycleImpl.java:271)
                               at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:86)
                               at javax.faces.webapp.FacesServlet.service(FacesServlet.java:94)
                               at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
                               at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
                               at org.jboss.seam.servlet.SeamRedirectFilter.doFilter(SeamRedirectFilter.java:23)
                               at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
                               at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
                               at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)
                               at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
                               at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
                               at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
                               at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
                               at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)
                               at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:159)
                               at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)
                               at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
                               at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
                               at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
                               at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
                               at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
                               at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
                               at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
                               at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
                               at java.lang.Thread.run(Thread.java:595)
                              Caused by: org.jboss.seam.InstantiationException: Could not instantiate Seam component
                               at org.jboss.seam.Component.newInstance(Component.java:611)
                               at org.jboss.seam.Component.newInstance(Component.java:1093)
                               at org.jboss.seam.Component.getInstance(Component.java:1044)
                               at org.jboss.seam.Component.getInstance(Component.java:1027)
                               at org.jboss.seam.jsf.SeamVariableResolver.resolveVariable(SeamVariableResolver.java:43)
                               at com.sun.facelets.el.LegacyELContext$LegacyELResolver.getValue(LegacyELContext.java:130)
                               at com.sun.el.parser.AstIdentifier.getValue(AstIdentifier.java:41)
                               at com.sun.el.parser.AstValue.getTarget(AstValue.java:41)
                               at com.sun.el.parser.AstValue.invoke(AstValue.java:126)
                               at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:274)
                               at com.sun.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:68)
                               at com.sun.facelets.el.LegacyMethodBinding.invoke(LegacyMethodBinding.java:69)
                               at org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:63)
                               ... 28 more
                              Caused by: javax.naming.NameNotFoundException: LoginAction not bound
                               at org.jnp.server.NamingServer.getBinding(NamingServer.java:516)
                               at org.jnp.server.NamingServer.getBinding(NamingServer.java:524)
                               at org.jnp.server.NamingServer.getObject(NamingServer.java:530)
                               at org.jnp.server.NamingServer.lookup(NamingServer.java:282)
                               at org.jnp.server.NamingServer.lookup(NamingServer.java:256)
                               at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:610)
                               at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:572)
                               at javax.naming.InitialContext.lookup(InitialContext.java:351)
                               at org.jboss.seam.Component.instantiate(Component.java:651)
                               at org.jboss.seam.Component.newInstance(Component.java:607)
                               ... 40 more
                              


                              I think i may have to rebuild it all and morph the code from the current booking example

                              • 12. Re: No default persistence unit
                                Gavin King Master

                                I strongly recommend working from the version of the example in Seam CVS. A number of things have changed.

                                • 13. Re: No default persistence unit
                                  Gavin King Master

                                  I mean a number of things changed in both Seam and EJB3.

                                  • 14. Re: No default persistence unit
                                    krypton Novice

                                    Hi Gavin,

                                    I have compared the last nightly build and my current code and can't see any difference in the LoginAction or anything in relation to why the lookup fails. Do you have any ideas with this error ?

                                    TIA .. still looking / comparing

                                    1 2 Previous Next