1 2 Previous Next 18 Replies Latest reply on Aug 7, 2007 8:52 AM by Pete Muir

    <s:convertEntity /> - how to make it works?

    Piotr Piwko Newbie

      Hello,

      I have searching for answer many hours and I can't find how to fix it. I have to use <s:convertEntity />, but to use it I have to place

      <lifecycle>
       <phase-listener>
       org.jboss.seam.jsf.TransactionalSeamPhaseListener
       </phase-listener>
      </lifecycle>

      in faces-config.xml. Right after the change and redeployment I get deployment exception:
      java.lang.IllegalStateException: No application context active


      This forum is my last resort. Please help.

        • 1. Re: <s:convertEntity /> - how to make it works?
          Pete Muir Master

          Yes, you have to use Seam Managed Transactions with s:convertEntity - we forgot to mention this in the docs for this release.

          Post the whole exception.

          • 2. Re: <s:convertEntity /> - how to make it works?
            Piotr Piwko Newbie

             

            2007-08-06 12:42:22,395 INFO [org.jboss.ejb3.EJBContainer] STARTED EJB: org.jboss.seam.transaction.EjbTransaction ejbName: EjbTransaction
            2007-08-06 12:42:22,440 INFO [org.jboss.ejb3.EJB3Deployer] Deployed: file:/home/pete/bin/jboss-4.2.1.GA/server/default/deploy/SeamAuction.ear/jboss-seam.jar
            2007-08-06 12:42:22,475 INFO [org.jboss.web.tomcat.service.TomcatDeployer] deploy, ctxPath=/SeamAuction, warUrl=.../deploy/SeamAuction.ear/SeamAuction.war/
            2007-08-06 12:42:23,635 INFO [org.apache.catalina.startup.ContextConfig] WARNING: Security role name NONE used in an <auth-constraint> without being defined in a <security-role>
            2007-08-06 12:42:25,183 ERROR [STDERR] java.lang.IllegalStateException: No application context active
            2007-08-06 12:42:25,187 ERROR [STDERR] at org.jboss.seam.Component.forName(Component.java:1690)
            2007-08-06 12:42:25,188 ERROR [STDERR] at org.jboss.seam.Component.getInstance(Component.java:1740)
            2007-08-06 12:42:25,189 ERROR [STDERR] at org.jboss.seam.Component.getInstance(Component.java:1723)
            2007-08-06 12:42:25,189 ERROR [STDERR] at org.jboss.seam.Component.getInstance(Component.java:1702)
            2007-08-06 12:42:25,192 ERROR [STDERR] at org.jboss.seam.core.ResourceBundle.instance(ResourceBundle.java:209)
            2007-08-06 12:42:25,192 ERROR [STDERR] at org.jboss.seam.jsf.SeamApplicationMessageBundle.handleGetObject(SeamApplicationMessageBundle.java:28)
            2007-08-06 12:42:25,200 ERROR [STDERR] at java.util.ResourceBundle.getObject(ResourceBundle.java:380)
            2007-08-06 12:42:25,201 ERROR [STDERR] at java.util.ResourceBundle.getString(ResourceBundle.java:346)
            2007-08-06 12:42:25,201 ERROR [STDERR] at com.sun.faces.util.MessageFactory.getMessage(MessageFactory.java:151)
            2007-08-06 12:42:25,201 ERROR [STDERR] at com.sun.faces.util.MessageFactory.getMessage(MessageFactory.java:122)
            2007-08-06 12:42:25,202 ERROR [STDERR] at com.sun.faces.util.MessageUtils.getExceptionMessageString(MessageUtils.java:277)
            2007-08-06 12:42:25,202 ERROR [STDERR] at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:828)
            2007-08-06 12:42:25,206 ERROR [STDERR] at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:486)
            2007-08-06 12:42:25,220 ERROR [STDERR] at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:381)
            2007-08-06 12:42:25,220 ERROR [STDERR] at org.jboss.web.jsf.integration.config.JBossJSFConfigureListener.contextInitialized(JBossJSFConfigureListener.java:69)
            2007-08-06 12:42:25,221 ERROR [STDERR] at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3854)
            2007-08-06 12:42:25,221 ERROR [STDERR] at org.apache.catalina.core.StandardContext.start(StandardContext.java:4359)
            2007-08-06 12:42:25,221 ERROR [STDERR] at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:761)
            2007-08-06 12:42:25,223 ERROR [STDERR] at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:741)
            2007-08-06 12:42:25,223 ERROR [STDERR] at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:553)
            2007-08-06 12:42:25,223 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            2007-08-06 12:42:25,223 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            2007-08-06 12:42:25,224 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            2007-08-06 12:42:25,224 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:597)
            2007-08-06 12:42:25,224 ERROR [STDERR] at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:297)
            2007-08-06 12:42:25,229 ERROR [STDERR] at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
            2007-08-06 12:42:25,229 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
            2007-08-06 12:42:25,230 ERROR [STDERR] at org.apache.catalina.core.StandardContext.init(StandardContext.java:5310)
            2007-08-06 12:42:25,230 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            2007-08-06 12:42:25,231 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            2007-08-06 12:42:25,231 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            2007-08-06 12:42:25,235 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:597)
            2007-08-06 12:42:25,235 ERROR [STDERR] at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:297)
            2007-08-06 12:42:25,236 ERROR [STDERR] at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
            2007-08-06 12:42:25,238 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
            2007-08-06 12:42:25,238 ERROR [STDERR] at org.jboss.web.tomcat.service.TomcatDeployer.performDeployInternal(TomcatDeployer.java:301)
            2007-08-06 12:42:25,239 ERROR [STDERR] at org.jboss.web.tomcat.service.TomcatDeployer.performDeploy(TomcatDeployer.java:104)
            2007-08-06 12:42:25,239 ERROR [STDERR] at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:375)
            2007-08-06 12:42:25,244 ERROR [STDERR] at org.jboss.web.WebModule.startModule(WebModule.java:83)
            2007-08-06 12:42:25,244 ERROR [STDERR] at org.jboss.web.WebModule.startService(WebModule.java:61)
            2007-08-06 12:42:25,244 ERROR [STDERR] at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
            2007-08-06 12:42:25,245 ERROR [STDERR] at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
            2007-08-06 12:42:25,245 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor284.invoke(Unknown Source)
            2007-08-06 12:42:25,245 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            2007-08-06 12:42:25,246 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:597)
            2007-08-06 12:42:25,246 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
            2007-08-06 12:42:25,249 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
            2007-08-06 12:42:25,249 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
            2007-08-06 12:42:25,251 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
            2007-08-06 12:42:25,265 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
            2007-08-06 12:42:25,265 ERROR [STDERR] at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
            2007-08-06 12:42:25,265 ERROR [STDERR] at $Proxy0.start(Unknown Source)
            2007-08-06 12:42:25,265 ERROR [STDERR] at org.jboss.system.ServiceController.start(ServiceController.java:417)
            2007-08-06 12:42:25,266 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
            2007-08-06 12:42:25,266 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            2007-08-06 12:42:25,266 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:597)
            2007-08-06 12:42:25,272 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
            2007-08-06 12:42:25,272 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
            2007-08-06 12:42:25,272 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
            2007-08-06 12:42:25,273 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
            2007-08-06 12:42:25,273 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
            2007-08-06 12:42:25,279 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
            2007-08-06 12:42:25,279 ERROR [STDERR] at $Proxy45.start(Unknown Source)
            2007-08-06 12:42:25,280 ERROR [STDERR] at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:466)
            2007-08-06 12:42:25,288 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            2007-08-06 12:42:25,288 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            2007-08-06 12:42:25,288 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            2007-08-06 12:42:25,296 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:597)
            2007-08-06 12:42:25,296 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
            2007-08-06 12:42:25,296 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
            2007-08-06 12:42:25,297 ERROR [STDERR] at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
            2007-08-06 12:42:25,297 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
            2007-08-06 12:42:25,297 ERROR [STDERR] at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
            2007-08-06 12:42:25,297 ERROR [STDERR] at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
            2007-08-06 12:42:25,298 ERROR [STDERR] at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238)
            2007-08-06 12:42:25,298 ERROR [STDERR] at org.jboss.ws.integration.jboss42.DeployerInterceptor.start(DeployerInterceptor.java:93)
            2007-08-06 12:42:25,298 ERROR [STDERR] at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubDeployerInterceptorSupport.java:188)
            2007-08-06 12:42:25,303 ERROR [STDERR] at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:95)
            2007-08-06 12:42:25,303 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
            2007-08-06 12:42:25,304 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
            2007-08-06 12:42:25,304 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
            2007-08-06 12:42:25,304 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
            2007-08-06 12:42:25,305 ERROR [STDERR] at $Proxy46.start(Unknown Source)
            2007-08-06 12:42:25,317 ERROR [STDERR] at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
            2007-08-06 12:42:25,317 ERROR [STDERR] at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1015)
            2007-08-06 12:42:25,318 ERROR [STDERR] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
            2007-08-06 12:42:25,318 ERROR [STDERR] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
            2007-08-06 12:42:25,318 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor19.invoke(Unknown Source)
            2007-08-06 12:42:25,318 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            2007-08-06 12:42:25,318 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:597)
            2007-08-06 12:42:25,319 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
            2007-08-06 12:42:25,319 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
            2007-08-06 12:42:25,319 ERROR [STDERR] at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
            2007-08-06 12:42:25,326 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
            2007-08-06 12:42:25,326 ERROR [STDERR] at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
            2007-08-06 12:42:25,326 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
            2007-08-06 12:42:25,336 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
            2007-08-06 12:42:25,336 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
            2007-08-06 12:42:25,337 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
            2007-08-06 12:42:25,337 ERROR [STDERR] at $Proxy9.deploy(Unknown Source)
            2007-08-06 12:42:25,337 ERROR [STDERR] at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
            2007-08-06 12:42:25,347 ERROR [STDERR] at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:610)
            2007-08-06 12:42:25,347 ERROR [STDERR] at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
            2007-08-06 12:42:25,347 ERROR [STDERR] at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:274)
            2007-08-06 12:42:25,347 ERROR [STDERR] at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:225)
            2007-08-06 12:42:25,375 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/SeamAuction]] Exception sending context initialized event to listener instance of class org.jboss.web.jsf.integration.config.JBossJSFConfigureListener
            javax.faces.FacesException: java.lang.IllegalStateException: No application context active
             at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:387)
             at org.jboss.web.jsf.integration.config.JBossJSFConfigureListener.contextInitialized(JBossJSFConfigureListener.java:69)
             at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3854)
             at org.apache.catalina.core.StandardContext.start(StandardContext.java:4359)
             at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:761)
             at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:741)
             at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:553)
             at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
             at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
             at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
             at java.lang.reflect.Method.invoke(Method.java:597)
             at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:297)
             at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
             at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
             at org.apache.catalina.core.StandardContext.init(StandardContext.java:5310)
             at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
             at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
             at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
             at java.lang.reflect.Method.invoke(Method.java:597)
             at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:297)
             at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
             at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
             at org.jboss.web.tomcat.service.TomcatDeployer.performDeployInternal(TomcatDeployer.java:301)
             at org.jboss.web.tomcat.service.TomcatDeployer.performDeploy(TomcatDeployer.java:104)
             at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:375)
             at org.jboss.web.WebModule.startModule(WebModule.java:83)
             at org.jboss.web.WebModule.startService(WebModule.java:61)
             at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
             at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
             at sun.reflect.GeneratedMethodAccessor284.invoke(Unknown Source)
             at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
             at java.lang.reflect.Method.invoke(Method.java:597)
             at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
             at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
             at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
             at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
             at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
             at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
             at $Proxy0.start(Unknown Source)
             at org.jboss.system.ServiceController.start(ServiceController.java:417)
             at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
             at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
             at java.lang.reflect.Method.invoke(Method.java:597)
             at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
             at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
             at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
             at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
             at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
             at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
             at $Proxy45.start(Unknown Source)
             at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:466)
             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.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
             at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
             at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
             at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
             at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
             at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
             at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238)
             at org.jboss.ws.integration.jboss42.DeployerInterceptor.start(DeployerInterceptor.java:93)
             at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubDeployerInterceptorSupport.java:188)
             at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:95)
             at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
             at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
             at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
             at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
             at $Proxy46.start(Unknown Source)
             at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
             at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1015)
             at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
             at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
             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 org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
             at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
             at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
             at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
             at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
             at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
             at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
             at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
             at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
             at $Proxy9.deploy(Unknown Source)
             at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
             at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:610)
             at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
             at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:274)
             at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:225)
            Caused by: java.lang.IllegalStateException: No application context active
             at org.jboss.seam.Component.forName(Component.java:1690)
             at org.jboss.seam.Component.getInstance(Component.java:1740)
             at org.jboss.seam.Component.getInstance(Component.java:1723)
             at org.jboss.seam.Component.getInstance(Component.java:1702)
             at org.jboss.seam.core.ResourceBundle.instance(ResourceBundle.java:209)
             at org.jboss.seam.jsf.SeamApplicationMessageBundle.handleGetObject(SeamApplicationMessageBundle.java:28)
             at java.util.ResourceBundle.getObject(ResourceBundle.java:380)
             at java.util.ResourceBundle.getString(ResourceBundle.java:346)
             at com.sun.faces.util.MessageFactory.getMessage(MessageFactory.java:151)
             at com.sun.faces.util.MessageFactory.getMessage(MessageFactory.java:122)
             at com.sun.faces.util.MessageUtils.getExceptionMessageString(MessageUtils.java:277)
             at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:828)
             at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:486)
             at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:381)
             ... 91 more
            2007-08-06 12:42:25,400 INFO [javax.servlet.ServletContextListener] Welcome to Seam 2.0.0.BETA1
            2007-08-06 12:42:25,524 INFO [org.jboss.seam.deployment.Scanner] scanning: /home/pete/bin/jboss-4.2.1.GA/server/default/deploy/SeamAuction.ear/SeamAuction.war/WEB-INF/lib/jboss-seam-ui.jar


            • 3. Re: <s:convertEntity /> - how to make it works?
              Pete Muir Master

              In Seam2 Seam Managed Transactions are enabled by default so you don't need to specify the TransactionalPhaseListener.

              • 4. Re: <s:convertEntity /> - how to make it works?
                Piotr Piwko Newbie

                Thanks for fast response. I will try it and write if this works.

                • 5. Re: <s:convertEntity /> - how to make it works?
                  Piotr Piwko Newbie

                  Do I still have to place

                  <persistence:managed-persistence-context name="entityManager" auto-create="true"
                  persistence-unit-jndi-name="java:/SeamAuctionEntityManagerFactory"/>

                  in components.xml and inject entity manager like this?
                  @In(create=true)
                   private EntityManager em;


                  • 7. Re: <s:convertEntity /> - how to make it works?
                    Piotr Piwko Newbie

                    Next exception appears during redeployment:

                    2007-08-06 13:15:43,343 INFO [org.jboss.seam.init.Initialization] reading /WEB-INF/components.xml
                    2007-08-06 13:15:43,375 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/SeamAuction]] Exception sending context initialized event to listener instance of class org.jboss.seam.servlet.SeamListener
                    java.lang.RuntimeException: error while reading /WEB-INF/components.xml
                     at org.jboss.seam.init.Initialization.initComponentsFromXmlDocument(Initialization.java:134)
                     at org.jboss.seam.init.Initialization.create(Initialization.java:84)
                     at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:34)
                     at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3854)
                     at org.apache.catalina.core.StandardContext.start(StandardContext.java:4359)
                     at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:761)
                     at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:741)
                     at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:553)
                     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                     at java.lang.reflect.Method.invoke(Method.java:597)
                     at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:297)
                     at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
                     at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                     at org.apache.catalina.core.StandardContext.init(StandardContext.java:5310)
                     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                     at java.lang.reflect.Method.invoke(Method.java:597)
                     at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:297)
                     at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
                     at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                     at org.jboss.web.tomcat.service.TomcatDeployer.performDeployInternal(TomcatDeployer.java:301)
                     at org.jboss.web.tomcat.service.TomcatDeployer.performDeploy(TomcatDeployer.java:104)
                     at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:375)
                     at org.jboss.web.WebModule.startModule(WebModule.java:83)
                     at org.jboss.web.WebModule.startService(WebModule.java:61)
                     at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
                     at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
                     at sun.reflect.GeneratedMethodAccessor284.invoke(Unknown Source)
                     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                     at java.lang.reflect.Method.invoke(Method.java:597)
                     at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                     at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                     at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
                     at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                     at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                     at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
                     at $Proxy0.start(Unknown Source)
                     at org.jboss.system.ServiceController.start(ServiceController.java:417)
                     at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
                     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                     at java.lang.reflect.Method.invoke(Method.java:597)
                     at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                     at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                     at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
                     at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                     at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                     at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
                     at $Proxy45.start(Unknown Source)
                     at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:466)
                     at sun.reflect.GeneratedMethodAccessor419.invoke(Unknown Source)
                     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                     at java.lang.reflect.Method.invoke(Method.java:597)
                     at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                     at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                     at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
                     at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                     at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
                     at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
                     at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238)
                     at org.jboss.ws.integration.jboss42.DeployerInterceptor.start(DeployerInterceptor.java:93)
                     at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubDeployerInterceptorSupport.java:188)
                     at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:95)
                     at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                     at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                     at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                     at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
                     at $Proxy46.start(Unknown Source)
                     at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
                     at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1015)
                     at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
                     at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
                     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 org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                     at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                     at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
                     at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                     at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
                     at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                     at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                     at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                     at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
                     at $Proxy9.deploy(Unknown Source)
                     at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
                     at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:610)
                     at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
                     at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:274)
                     at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:225)
                    Caused by: org.dom4j.DocumentException: Error on line 32 of document : The prefix "persistence" for element "persistence:managed-persistence-context" is not bound. Nested exception: The prefix "persistence" for element "persistence:managed-persistence-context" is not bound.
                     at org.dom4j.io.SAXReader.read(SAXReader.java:482)
                     at org.dom4j.io.SAXReader.read(SAXReader.java:343)
                     at org.jboss.seam.util.XML.getRootElement(XML.java:16)
                     at org.jboss.seam.init.Initialization.initComponentsFromXmlDocument(Initialization.java:130)
                     ... 91 more
                    2007-08-06 13:15:43,380 ERROR [org.apache.catalina.core.StandardContext] Error listenerStart


                    my persistence-dev.xml
                    version="1.0">
                    
                     <persistence-unit name="SeamAuction">
                     <provider>org.hibernate.ejb.HibernatePersistence</provider>
                     <jta-data-source>java:/SeamAuctionDatasource</jta-data-source>
                     <properties>
                     <property name="hibernate.hbm2ddl.auto" value="${hibernate.hbm2ddl.auto}"/>
                     <property name="hibernate.cache.use_query_cache" value="true"/>
                     <property name="hibernate.show_sql" value="true"/>
                     <property name="jboss.entity.manager.factory.jndi.name" value="java:/SeamAuctionEntityManagerFactory"/>
                     <property name="hibernate.default_schema" value="OBLIVION"/>
                     </properties>
                     </persistence-unit>
                    
                    </persistence>


                    • 8. Re: <s:convertEntity /> - how to make it works?
                      Pete Muir Master

                      So define the namespace in components.xml

                      • 9. Re: <s:convertEntity /> - how to make it works?
                        Piotr Piwko Newbie

                        During entering the page containing <s:convertEntity /> I get

                        2007-08-06 13:54:51,816 ERROR [STDERR] 2007-08-06 13:54:51 com.sun.facelets.FaceletViewHandler handleRenderException
                        SEVERE: Error Rendering View[/createAuction.xhtml]
                        java.lang.NullPointerException
                         at org.jboss.seam.persistence.HibernatePersistenceProvider.getSession(HibernatePersistenceProvider.java:157)
                         at org.jboss.seam.persistence.HibernatePersistenceProvider.getId(HibernatePersistenceProvider.java:114)
                         at org.jboss.seam.framework.EntityIdentifier.<init>(EntityIdentifier.java:15)
                         at org.jboss.seam.ui.converter.EntityConverterStore.put(EntityConverterStore.java:60)
                         at org.jboss.seam.ui.converter.EntityConverter.getAsString(EntityConverter.java:69)
                         at org.jboss.seam.ui.converter.PrioritizableConverter.getAsString(PrioritizableConverter.java:67)
                         at org.jboss.seam.ui.converter.ConverterChain.getAsString(ConverterChain.java:123)
                         at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.getFormattedValue(HtmlBasicRenderer.java:469)
                         at com.sun.faces.renderkit.html_basic.MenuRenderer.renderOption(MenuRenderer.java:502)
                         at com.sun.faces.renderkit.html_basic.MenuRenderer.renderOptions(MenuRenderer.java:757)
                         at com.sun.faces.renderkit.html_basic.MenuRenderer.renderSelect(MenuRenderer.java:811)
                         at com.sun.faces.renderkit.html_basic.MenuRenderer.encodeEnd(MenuRenderer.java:335)
                         at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:836)
                         at org.jboss.seam.ui.util.cdk.RendererBase.renderChild(RendererBase.java:190)
                         at org.jboss.seam.ui.util.cdk.RendererBase.renderChildren(RendererBase.java:166)
                         at org.jboss.seam.ui.renderkit.ValidateAllRendererBase.doEncodeChildren(ValidateAllRendererBase.java:33)
                         at org.jboss.seam.ui.util.cdk.RendererBase.encodeChildren(RendererBase.java:92)
                         at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:812)
                         at org.jboss.seam.ui.util.cdk.RendererBase.renderChild(RendererBase.java:186)
                         at org.jboss.seam.ui.util.cdk.RendererBase.renderChildren(RendererBase.java:166)
                         at org.jboss.seam.ui.renderkit.DecorateRendererBase.doEncodeChildren(DecorateRendererBase.java:94)
                         at org.jboss.seam.ui.util.cdk.RendererBase.encodeChildren(RendererBase.java:92)
                         at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:812)
                         at javax.faces.component.UIComponent.encodeAll(UIComponent.java:886)
                         at javax.faces.render.Renderer.encodeChildren(Renderer.java:137)
                         at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:812)
                         at javax.faces.component.UIComponent.encodeAll(UIComponent.java:886)
                         at javax.faces.component.UIComponent.encodeAll(UIComponent.java:892)
                         at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:577)
                         at org.ajax4jsf.framework.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:108)
                         at org.ajax4jsf.framework.ajax.AjaxViewHandler.renderView(AjaxViewHandler.java:233)
                         at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:106)
                         at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
                         at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144)
                         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
                         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
                         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                         at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
                         at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:87)
                         at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                         at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:63)
                         at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                         at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:46)
                         at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                         at org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:127)
                         at org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:277)
                         at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:40)
                         at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                         at org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:63)
                         at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                         at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:140)
                         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                         at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
                         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
                         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
                         at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
                         at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
                         at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
                         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
                         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
                         at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
                         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
                         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
                         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
                         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580)
                         at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
                         at java.lang.Thread.run(Thread.java:619)


                        my html code is:
                        <h:selectOneMenu value="#{am.newAuction.category}" required="true">
                         <s:selectItems value="#{categoryList}" var="item" label="#{item.name}"
                         noSelectionLabel="Please Select..."/>
                         <s:convertEntity />
                         </h:selectOneMenu>


                        without <s:convertEntity /> I get no exception

                        <persistence:managed-persistence-context name="em" auto-create="true"
                        persistence-unit-jndi-name="java:/SeamAuctionEntityManagerFactory"/>


                        @In(create=true)
                         private EntityManager em;
                        


                        • 10. Re: <s:convertEntity /> - how to make it works?
                          Pete Muir Master

                          So, you've configure s:convertEntity to know the name of your EntityManager (as you are using the non-standard one)?

                          • 11. Re: <s:convertEntity /> - how to make it works?
                            Piotr Piwko Newbie

                            In components.xml I have

                            <persistence:managed-persistence-context name="entityManager" auto-create="true"
                            persistence-unit-jndi-name="java:/SeamAuctionEntityManagerFactory"/>
                            
                            <component name="org.jboss.seam.ui.entityConverter">
                             <property name="entityManager">#{em}</property>
                            </component>
                            


                            still the same exception, seems like em is null
                            @In(create=true)
                             private EntityManager em;


                            • 12. Re: <s:convertEntity /> - how to make it works?
                              Pete Muir Master

                              Well you've called your EntityManager "entityManager" but seem to be injecting it as "em". I would really suggest giving the docs another read, you seem to be missing a grasp of some of the seam fundamentals from your responses in this topic (no offence intended)

                              • 13. Re: <s:convertEntity /> - how to make it works?
                                mgrouch Expert

                                Piotr,

                                Check also this thread

                                http://www.jboss.com/index.html?module=bb&op=viewtopic&t=115009

                                Might be EntitySelector is what you need...

                                • 14. Re: <s:convertEntity /> - how to make it works?
                                  Piotr Piwko Newbie

                                  Now I stuck on another exception:

                                  org.hibernate.TransientObjectException: The instance was not associated with this session


                                  Seems like <s:convertEntity> is little too hard for me.


                                  1 2 Previous Next