11 Replies Latest reply on Apr 15, 2008 5:21 PM by Nicolai Abruzzese

    Why <transaction:ejb-transaction> is generating NameNotFoundException

    Hussein Baghdadi Novice

      Hi.


      It seems that NameNotFoundException: EjbSynchronizations not bound is famous these days.


      My application is an EAR app generated by seam-gen tool.


      The old forum suggests to declare jboss-seam.jar as an EJB module, this is done automatically to me, thanks to seam-gen.


      I have this line in components.xml



      <transaction:ejb-transaction/>




      With this line, I got NameNotFoundException: EjbSynchronizations  but every thing works smoothly when
      I comment it.


      Would you please explain this issue to me?


      BTW, I got this exception when I was trying to run integeration tests, I didn't try to deploy the ear yet.


      I use: Seam 2.0.0GA


      Thanks.

        • 1. Re: Why <transaction:ejb-transaction> is generating NameNotFoundException
          Jay Balunas Novice

          • Could you elaboraite on integration tests

          • Are you sure that EJB's were deployed? 

          • When you do deploy the app does it work?

          • 2. Re: Why <transaction:ejb-transaction> is generating NameNotFoundException
            Nicolai Abruzzese Newbie

            I'm having the same problem! with seam 2.0.0.ga

             <transaction:ejb-transaction>



            I'm using a J2EE archtype proyect:

            core clases(remote interfaces)
            ejb3 EntityHome (Core Clasess)


            The problem seem that when transacion:ejb is enabled in xml file, the following error aprears:


            2008-04-09 10:59:49,796 DEBUG [org.jboss.seam.deployment.ComponentScanner] found component class: com/mycompnay/erp/ejb/catalogos/impl/CuentaContableAdministradorImpl.class
            2008-04-09 10:59:49,796 DEBUG [org.jboss.seam.deployment.ComponentScanner] could not load class (missing dependency): com.mycompnay.erp.ejb.catalogos.impl.CuentaContableAdministradorImpl
            java.lang.NoClassDefFoundError: com/mycompnay/erp/ejb/catalogos/CuentaContableAdministrador
                 at java.lang.ClassLoader.defineClass1(Native Method)
                 at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
                 at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
                 at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
                 at java.net.URLClassLoader.access$000(URLClassLoader.java:56)
                 at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
                 at java.security.AccessController.doPrivileged(Native Method)
                 at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
                 at org.jboss.mx.loading.RepositoryClassLoader.findClassLocally(RepositoryClassLoader.java:675)
                 at org.jboss.mx.loading.RepositoryClassLoader.findClass(RepositoryClassLoader.java:655)
                 at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
                 at org.jboss.mx.loading.RepositoryClassLoader.loadClassLocally(RepositoryClassLoader.java:193)
                 at org.jboss.mx.loading.ClassLoadingTask$ThreadTask.run(ClassLoadingTask.java:131)
                 at org.jboss.mx.loading.LoadMgr3.nextTask(LoadMgr3.java:399)
                 at org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryClassLoader.java:520)
                 at org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassLoader.java:408)
                 at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
                 at java.net.FactoryURLClassLoader.loadClass(URLClassLoader.java:594)
                 at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
                 at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1345)
                 at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1204)
                 at org.jboss.seam.deployment.ComponentScanner.handleItem(ComponentScanner.java:71)
                 at org.jboss.seam.deployment.Scanner.handleArchive(Scanner.java:158)
                 at org.jboss.seam.deployment.Scanner.scan(Scanner.java:132)
                 at org.jboss.seam.deployment.ComponentScanner.getClasses(ComponentScanner.java:49)
                 at org.jboss.seam.init.Initialization.scanForComponents(Initialization.java:678)
                 at org.jboss.seam.init.Initialization.init(Initialization.java:536)
                 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.GeneratedMethodAccessor148.invoke(Unknown Source)
                 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.GeneratedMethodAccessor144.invoke(Unknown Source)
                 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.GeneratedMethodAccessor3.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.GeneratedMethodAccessor128.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)
            2008-04-09 10:59:49,812 DEBUG [org.jboss.seam.deployment.Scanner] found: com/mycompnay/erp/ejb/catalogos/impl/DerivacionValorDimensionAdministradorImpl.class
            2008-04-09 10:59:49,812 DEBUG [org.jboss.seam.deployment.ComponentScanner] found component class: com/mycompnay/erp/ejb/catalogos/impl/DerivacionValorDimensionAdministradorImpl.class
            2008-04-09 10:59:49,812 DEBUG [org.jboss.seam.deployment.ComponentScanner] could not load class (missing dependency): com.mycompnay.erp.ejb.catalogos.impl.DerivacionValorDimensionAdministradorImpl
            java.lang.NoClassDefFoundError: com/mycompnay/erp/ejb/catalogos/DerivacionValorDimensionAdministrador
            
            

            • 3. Re: Why <transaction:ejb-transaction> is generating NameNotFoundException
              eric jung Newbie

              I don't see NameNotFoundException in that stack trace. I see:

              java.lang.NoClassDefFoundError: com/mycompnay/erp/ejb/catalogos/DerivacionValorDimensionAdministrador

              • 4. Re: Why <transaction:ejb-transaction> is generating NameNotFoundException
                Nicolai Abruzzese Newbie

                Didn't make my self clear.
                1st I had the NameNotFoundException EjbSynchronizations
                then I've changed to transaction:ejb-transaction in the components.xml file and the stacktrace shown before came up

                • 5. Re: Why <transaction:ejb-transaction> is generating NameNotFoundException
                  eric jung Newbie

                  It can't find your class com/mycompnay/erp/ejb/catalogos/DerivacionValorDimensionAdministrador. That is your class, right? It needs to be in your .jar file, and the .jar file needs to be in the root of the .ear file. Which application server are you using? JBoss?

                  • 6. Re: Why <transaction:ejb-transaction> is generating NameNotFoundException
                    Nicolai Abruzzese Newbie

                    com/mycompnay/erp/ejb/catalogos/DerivacionValorDimensionAdministrador is my remote interface, and it's located in my primary-source.jar (core classes), the ejb's are located in the ejb.jar (EJB's)


                    in response to:
                    ... It needs to be in your .jar file, and the .jar file needs to be in the root of the .ear file.

                    This is my ear-1.0.ear file


                    \ear-1.0\ (28)                                                                                                                                                                                           -------------------------------
                    antlr-runtime-3.0.jar                                      92 015
                    commons-beanutils-1.7.0.jar                               188 671
                    commons-collections-3.2.jar                               571 259
                    commons-digester-1.8.jar                                  143 602
                    commons-logging-1.0.4.jar                                  38 015
                    core-3.2.3.v_686_R32x.jar                               4 014 911
                    dom4j-1.6.1-jboss.jar                                     303 207
                    drools-compiler-4.0.3.jar                                 559 952
                    drools-core-4.0.3.jar                                   1 068 389
                    el-api-1.0.jar                                             29 309
                    hibernate-validator-3.0.0.ga.jar                           60 992
                    janino-2.5.10.jar                                         451 973
                    jboss-el-2.0.0.GA.jar                                     133 966
                    jbpm-jpdl-3.2.2.jar                                       668 249
                    joda-time-1.4.jar                                         521 484
                    jsf-api-1.1_02.jar                                        353 002
                    jsf-impl-1.1_02.jar                                       791 660
                    jstl-1.0.jar                                               20 801
                    mvel14-1.2.10.jar                                         421 233
                    persistence-api-1.0.jar                                    52 150
                    richfaces-api-3.1.3.GA.jar                                111 979
                    richfaces-impl-3.1.3.GA.jar                             1 298 805
                    richfaces-ui-3.1.3.GA.jar 
                    
                    
                    ejbs-1.0.jar   
                    primary-source-1.0.jar                                 1 787 738
                    servlet-admin-1.0.war                                       2 364
                    servlet-customer-1.0.war                                4 907 347
                    
                    




                    Yes, I'm using JBoss 4.2.1.ga and here's my maven pom file of the proyect, I've added jboss-seam.jar as dependency, but no luck!



                    <?xml version="1.0" encoding="UTF-8"?>
                    <project>
                        <modelVersion>4.0.0</modelVersion>
                        <groupId>com.nicolini11</groupId>
                        <version>1.0</version>
                        <artifactId>project</artifactId>
                        <packaging>pom</packaging>
                        <name>ERP Binaria Master Project</name>
                        <modules>
                            <module>primary-source</module>
                            <module>ejbs</module>
                            <module>servlet-admin</module>
                            <module>servlet-customer</module>
                            <module>ear</module>
                            <module>ejb-mock</module>
                            
                            
                        </modules>
                        <issueManagement>
                            <system>bugzilla</system>
                            <url>http://mercurio.nicolini11.lo/bugzilla/</url>
                        </issueManagement>
                        <ciManagement>
                            <system>hudson</system>
                            <url>http://mercurio.nicolini11.lo:8080/hudson/</url>
                        </ciManagement>
                        <inceptionYear>2007</inceptionYear>
                        <mailingLists>
                            
                        </mailingLists>
                        <developers>
                            
                        </developers>
                        <scm>
                            
                        </scm>
                        <build>
                            <plugins>
                                <plugin>
                                    <artifactId>maven-compiler-plugin</artifactId>
                                    <version>RELEASE</version>
                                    <configuration>
                                        <source>1.5</source>
                                        <target>1.5</target>
                                        <encoding>UTF-8</encoding>
                                    </configuration>
                                </plugin>
                                <plugin>
                                    <artifactId>maven-resources-plugin</artifactId>
                                    <version>RELEASE</version>
                                    <configuration>
                                        <encoding>UTF-8</encoding>
                                    </configuration>
                                </plugin>
                            </plugins>
                        </build>
                        <dependencyManagement>
                            <dependencies>
                                <dependency>
                                    <groupId>com.nicolini11.project</groupId>
                                    <artifactId>servlet-admin</artifactId>
                                    <version>1.0</version>
                                    <type>war</type>
                                </dependency>
                                <dependency>
                                    <groupId>com.nicolini11.project</groupId>
                                    <artifactId>servlet-customer</artifactId>
                                    <version>1.0</version>
                                    <type>war</type>
                                </dependency>
                                <dependency>
                                    <groupId>com.nicolini11.project</groupId>
                                    <artifactId>primary-source</artifactId>
                                    <version>1.0</version>
                                    <type>jar</type>
                                </dependency>
                                <dependency>
                                    <groupId>com.nicolini11.project</groupId>
                                    <artifactId>ejbs</artifactId>
                                    <version>1.0</version>
                                    <type>ejb</type>
                                </dependency>
                                <dependency>
                                    <groupId>com.nicolini11.project</groupId>
                                    <artifactId>ejb-mock</artifactId>
                                    <version>1.0</version>
                                    <type>jar</type>
                                </dependency>
                                <dependency>
                                    <groupId>org.jboss.seam</groupId>
                                    <artifactId>jboss-seam</artifactId>
                                    <version>2.0.0.GA</version>
                                    <type>jar</type>
                                    
                                </dependency>
                            </dependencies>
                        </dependencyManagement>
                        <distributionManagement>
                            <site>
                                <id>default</id>
                                <name>Default Site</name>
                                <url>file:///var/www/html/erp-site</url>
                            </site>
                        </distributionManagement>
                    </project>
                    


                    • 7. Re: Why <transaction:ejb-transaction> is generating NameNotFoundException
                      mars1412 Apprentice

                      just a guess: do you have an empty seam.properties fiel in your jar?


                      back to the original problem here - I got the ejb-transaction thing running, but I still have
                      issues

                      • 8. Re: Why <transaction:ejb-transaction> is generating NameNotFoundException
                        Nicolai Abruzzese Newbie

                        yes, empty seam.properties.
                        Seams that I've broke something on the way but it's fixed again.


                        But the original problem, remains..
                        Seam 2.0.0.ga - Jboss 4.2.1



                        2008-04-11 17:28:47,703 DEBUG [org.jboss.seam.util.Naming] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
                        2008-04-11 17:28:47,703 DEBUG [org.jboss.seam.util.Naming] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
                        2008-04-11 17:28:47,703 DEBUG [org.jboss.seam.util.Naming] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
                        2008-04-11 17:28:47,703 DEBUG [org.jboss.seam.util.Work] beginning transaction
                        2008-04-11 17:28:47,703 DEBUG [org.jboss.seam.transaction.UTTransaction] beginning JTA transaction
                        2008-04-11 17:28:47,703 DEBUG [org.jboss.seam.Component] instantiating Seam component: org.jboss.seam.transaction.synchronizations
                        2008-04-11 17:28:47,703 DEBUG [org.jboss.seam.util.Naming] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
                        2008-04-11 17:28:47,703 ERROR [STDERR] 11-04-2008 05:28:47 PM com.sun.facelets.FaceletViewHandler handleRenderException
                        GRAVE: Error Rendering View[/transaccionNueva.xhtml]
                        org.jboss.seam.InstantiationException: Could not instantiate Seam component: org.jboss.seam.transaction.synchronizations
                             at org.jboss.seam.Component.newInstance(Component.java:1962)
                             at org.jboss.seam.Component.getInstance(Component.java:1865)
                             at org.jboss.seam.Component.getInstance(Component.java:1844)
                             at org.jboss.seam.Component.getInstance(Component.java:1838)
                             at org.jboss.seam.transaction.AbstractUserTransaction.getSynchronizations(AbstractUserTransaction.java:79)
                             at org.jboss.seam.transaction.UTTransaction.begin(UTTransaction.java:40)
                             at org.jboss.seam.util.Work.workInTransaction(Work.java:35)
                             at org.jboss.seam.transaction.TransactionInterceptor.aroundInvoke(TransactionInterceptor.java:32)
                             at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
                             at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:42)
                             at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
                             at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:106)
                             at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:155)
                             at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:91)
                             at org.jboss.seam.ui.converter.EntityConverterStore_$$_javassist_6.put(EntityConverterStore_$$_javassist_6.java)
                             at org.jboss.seam.ui.converter.EntityConverter.getAsString(EntityConverter.java:67)
                             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:104)
                             at org.jboss.seam.ui.util.cdk.RendererBase.encodeChildren(RendererBase.java:92)
                             at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:812)
                             at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:271)
                             at com.sun.faces.renderkit.html_basic.GridRenderer.encodeChildren(GridRenderer.java:242)
                             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:592)
                             at org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:108)
                             at org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:216)
                             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.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:307)
                             at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                             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:85)
                             at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                             at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
                             at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                             at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:44)
                             at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                             at org.jboss.seam.web.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:42)
                             at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                             at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:141)
                             at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:281)
                             at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:60)
                             at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                             at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58)
                             at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                             at org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:68)
                             at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                             at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
                             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.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)
                        Caused by: javax.naming.NameNotFoundException: remote not bound
                             at org.jnp.server.NamingServer.getBinding(NamingServer.java:529)
                             at org.jnp.server.NamingServer.getBinding(NamingServer.java:537)
                             at org.jnp.server.NamingServer.getObject(NamingServer.java:543)
                             at org.jnp.server.NamingServer.lookup(NamingServer.java:296)
                             at org.jnp.server.NamingServer.lookup(NamingServer.java:270)
                             at org.jnp.server.NamingServer.lookup(NamingServer.java:270)
                             at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:627)
                             at org.
                        2008-04-11 17:28:47,703 ERROR [STDERR] jnp.interfaces.NamingContext.lookup(NamingContext.java:589)
                             at javax.naming.InitialContext.lookup(InitialContext.java:392)
                             at org.jboss.seam.Component.instantiateSessionBean(Component.java:1279)
                             at org.jboss.seam.Component.instantiate(Component.java:1265)
                             at org.jboss.seam.Component.newInstance(Component.java:1958)
                             ... 87 more




                        • 10. Re: Why <transaction:ejb-transaction> is generating NameNotFoundException
                          Nicolai Abruzzese Newbie

                          jndi-pattern is in the components.xml of the web app (servlet-customer.war)



                          <components xmlns="http://jboss.com/products/seam/components"
                                      xmlns:core="http://jboss.com/products/seam/core"
                                      xmlns:persistence="http://jboss.com/products/seam/persistence"
                                      xmlns:security="http://jboss.com/products/seam/security"
                                      xmlns:transaction="http://jboss.com/products/seam/transaction"
                                      xmlns:drools="http://jboss.com/products/seam/drools"
                                      xmlns:web="http://jboss.com/products/seam/web"
                                      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                                      xsi:schemaLocation=
                                      "http://jboss.com/products/seam/core http://jboss.com/products/seam/core-2.0.xsd
                                      http://jboss.com/products/seam/persistence http://jboss.com/products/seam/persistence-2.0.xsd
                                      http://jboss.com/products/seam/components http://jboss.com/products/seam/components-2.0.xsd
                                      http://jboss.com/products/seam/security http://jboss.com/products/seam/security-2.0.xsd
                                      http://jboss.com/products/seam/web http://jboss.com/products/seam/web-2.0.xsd
                                      http://jboss.com/products/seam/transaction http://jboss.com/products/seam/transaction-2.0.xsd
                          http://jboss.com/products/seam/drools http://jboss.com/products/seam/drools-2.0.xsd">
                              
                              <core:init debug="true" transaction-management-enabled="false" jndi-pattern="ear-1.0/#{ejbName}/remote/>
                              <core:timeZone/>
                              <core:timeZoneSelector/>
                              
                          
                              <web:exception-filter url-pattern="*.seam"/>
                              <web:redirect-filter url-pattern="*.seam"/>
                              <web:character-encoding-filter encoding="UTF-8" override-client="true" url-pattern="*.seam"/>
                              
                              <security:identity authenticate-method="#{authenticationController.authenticate}"/>
                              
                              <event type="org.jboss.seam.postAuthenticate">
                                  <action execute="#{authenticationController.redirectToStart}"/>
                              </event>
                              
                              <drools:rule-base name="securityRules">
                                  <drools:rule-files>
                                      <value>/META-INF/security.drl</value>
                                  </drools:rule-files>
                              </drools:rule-base>
                              
                                <core:jbpm>
                                  <core:process-definitions>
                                      <value>todo.jpdl.xml</value>
                                  </core:process-definitions>
                              </core:jbpm>
                          
                          </components>



                          The ejbs components.xml



                          <components xmlns="http://jboss.com/products/seam/components"
                                      xmlns:core="http://jboss.com/products/seam/core"
                                      xmlns:persistence="http://jboss.com/products/seam/persistence"
                                      xmlns:security="http://jboss.com/products/seam/security"
                                      xmlns:transaction="http://jboss.com/products/seam/transaction"
                                      xmlns:drools="http://jboss.com/products/seam/drools"
                                      xmlns:web="http://jboss.com/products/seam/web"
                                      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                                      xsi:schemaLocation=
                                      "http://jboss.com/products/seam/core http://jboss.com/products/seam/core-2.0.xsd
                                      http://jboss.com/products/seam/persistence http://jboss.com/products/seam/persistence-2.0.xsd
                                      http://jboss.com/products/seam/components http://jboss.com/products/seam/components-2.0.xsd
                                      http://jboss.com/products/seam/security http://jboss.com/products/seam/security-2.0.xsd
                                      http://jboss.com/products/seam/web http://jboss.com/products/seam/web-2.0.xsd
                                      http://jboss.com/products/seam/transaction http://jboss.com/products/seam/transaction-2.0.xsd
                          http://jboss.com/products/seam/drools http://jboss.com/products/seam/drools-2.0.xsd">
                          
                          
                              <transaction:ejb-transaction/>
                              <persistence:managed-persistence-context name="entityManager"
                                                                auto-create="true"
                                                                persistence-unit-jndi-name="java:/parametrosManager" />
                              
                              
                          </components>
                          




                          • 11. Re: Why <transaction:ejb-transaction> is generating NameNotFoundException
                            Nicolai Abruzzese Newbie

                            Not sure if this is the way but NameNotFoundException is gone with this


                            @TransactionManagement(TransactionManagementType.BEAN)
                            


                            But other things came out:



                            javax.persistence.TransactionRequiredException: no transaction is in progress



                            I'll check this out in other posts.