1 2 3 Previous Next 34 Replies Latest reply on May 9, 2006 1:55 PM by mrboxer24

    Method not found: isJndiName

      Hi,

      I've been trying to use the Seam skeleton generator but am unable to deploy the resulting application. I am getting the following exception at deploy time:


      java.lang.IllegalArgumentException: java.beans.IntrospectionException: Method not found: isJndiName
      at org.jboss.seam.Component.initInitializers(Component.java:267)
      at org.jboss.seam.Component.<init>(Component.java:187)
      at org.jboss.seam.Component.<init>(Component.java:142)
      at org.jboss.seam.Component.<init>(Component.java:137)
      at org.jboss.seam.init.Initialization.addComponent(Initialization.java:239)
      at org.jboss.seam.init.Initialization.addComponents(Initialization.java:196)
      at org.jboss.seam.init.Initialization.init(Initialization.java:93)
      at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:30)
      at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3692)
      at org.apache.catalina.core.StandardContext.start(StandardContext.java:4127)
      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:164)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      at org.apache.catalina.core.StandardContext.init(StandardContext.java:5031)
      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:164)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeployInternal(TomcatDeployer.java:297)
      at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeploy(TomcatDeployer.java:103)
      at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:371)
      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.GeneratedMethodAccessor93.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: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:260)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      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.GeneratedMethodAccessor5.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: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:260)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:190)
      at $Proxy30.start(Unknown Source)
      at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:469)
      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: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.mx.server.Invocation.invoke(Invocation.java:88)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:260)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:190)
      at $Proxy31.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.GeneratedMethodAccessor13.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: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:260)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:190)
      at $Proxy6.deploy(Unknown Source)
      at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:334)
      at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:504)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:207)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:218)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:197)
      Caused by: java.beans.IntrospectionException: Method not found: isJndiName
      at java.beans.PropertyDescriptor.<init>(PropertyDescriptor.java:89)
      at java.beans.PropertyDescriptor.<init>(PropertyDescriptor.java:53)
      at org.jboss.seam.Component.initInitializers(Component.java:263)
      ... 93 more


      I'm using JBoss 4.0.4 RC1, Seam 1.0 beta 2, Hibernate Tools 3.1.0 beta 4. Can anyone shed some light on this error?

        • 1. Re: Method not found: isJndiName
          theute

          This is the reverse engineering tool and this has been fixed, see the other thread about it.

          • 2. Re: Method not found: isJndiName
            desropolis

            Which other thread? I searched on 'Method not found: isJndiName' but got nothing.

            Regards,
            Dean

            • 3. Re: Method not found: isJndiName
              gavin.king

              The setting is supposed to be named:

              org.jboss.seam.core.init.jndiPattern

              It may have been broken in some build of Hibernate Tools, but the current nightly build is working AFAIK.

              • 4. Re: Method not found: isJndiName
                shinerella

                This afternoon I had exactly this problem, I have already recreate everything but I dont know where's the problem yet

                • 5. Re: Method not found: isJndiName
                  theute

                  You need to get a newest Hibernate Tools built it has been fixed a while ago.

                  As Gavin stated, the current nightly build doesn't have this bug.

                  • 6. Re: Method not found: isJndiName
                    smirgla1

                    I had the same problem although I took the latest HT nightly.
                    I solved it by commention out
                    org.jboss.seam.core.init.jndiPattern seamapp/#{ejbName}/local
                    in seam.properties and adding the line
                    @JndiName(beanName) - name of the bean starting with a low-cap.
                    to every application Bean.

                    • 7. Re: Method not found: isJndiName
                      smirgla1

                      I have found another problem caused by my "fix", so finally this is what made my application work:

                      - If not present, in seam.properties and add the line
                      org.jboss.seam.core.init.jndiPattern seamapp/#{ejbName}/local
                      (seamapp being the application name)

                      - In every Bean, enter
                      @JndiName(beanName)
                      (beanName the _exact_ bean name)

                      • 8. Re: Method not found: isJndiName
                        gavin.king

                        If you have to do all that stuff, you are *not* using the correct versions of Seam and JBoss AS.

                        You MUST use:

                        Seam 1.0 beta 2
                        JBoss AS 4.0.4

                        • 9. Re: Method not found: isJndiName
                          theute

                          You don't need to specify the jndiName, just the jndiPattern

                          If you manually install a new version of an eclipse plugin, you need to restart eclipse by typing "eclipse -clean"

                          • 10. Re: Method not found: isJndiName
                            hurzeler

                            By the love of god I don't seem to be able to get rid of the

                            Method not found: isJndiName

                            exception.

                            My versions are
                            JBoss 4.0.4RC1
                            Seam 1.0 beta2
                            Hibernate 3.1.0 beta4

                            My application is called
                            mhl
                            and the beans are in a package called
                            com.mhl.ejb
                            and the seams JndiPattern is
                            org.jboss.seam.core.init.jndiPattern mhl/#{ejbName}/local

                            What is wrong and how can I troubleshoot i.e. fix this?

                            Please help.

                            Thanks Bernie

                            • 11. Re: Method not found: isJndiName
                              smirgla1

                              I use 4.04RC1, JBossIDE 1.5, Seam nightly 10.Feb.2006.
                              To prove the problem once again:

                              I cleaned eclipse, created a new project following the step-by-step instruction, started the application and got:
                              ----
                              [[/seamapp]] Exception sending context initialized event to listener instance of class org.jboss.seam.servlet.SeamListener
                              java.lang.IllegalArgumentException: java.beans.IntrospectionException: Method not found: isJndiName
                              ----


                              # seam.properties
                              org.jboss.seam.core.init.managedPersistenceContexts entityManager
                              entityManager.jndiName java:/EntityManager
                              #org.jboss.seam.core.manager.conversationTimeout 30000
                              org.jboss.seam.core.init.jndiPattern seamapp/#{ejbName}/local

                              • 12. Re: Method not found: isJndiName
                                theute

                                Show me your seam.properties

                                • 13. Re: Method not found: isJndiName
                                  smirgla1

                                   

                                  "hurzeler" wrote:
                                  By the love of god I don't seem to be able to get rid of the

                                  Method not found: isJndiName
                                  l

                                  What is wrong and how can I troubleshoot i.e. fix this?


                                  I'm just wondering, have you tried my approach with injection JndiName into each bean? Inject @JndiName that is equal to @Name.

                                  Ok, I'm not sayint this is in any way right, but it works for me.

                                  • 14. Re: Method not found: isJndiName
                                    theute

                                     

                                    "hurzeler" wrote:

                                    Hibernate 3.1.0 beta4


                                    You need the nightly build of Hibernate Tools or Eclipse IDE, same for smirgla1

                                    http://download.jboss.org/jbosside/builds/nightly/


                                    1 2 3 Previous Next