0 Replies Latest reply on Aug 18, 2005 4:15 PM by Shetal Bansal

    Cause of java.lang.NoSuchMethodException

    Shetal Bansal Newbie

      Hi,
      I am trying to deploy a new Ejb in jboss, and getting the following error:

      15:21:52,985 WARN [ServiceController] Problem creating service jboss.j2ee:jndiN
      ame=StoreAccessBean,service=EJB
      java.lang.NoSuchMethodException: Method not found in bean class: remove()
       at org.jboss.ejb.StatelessSessionContainer.setUpBeanMappingImpl(Stateles
      sSessionContainer.java:490)
       at org.jboss.ejb.StatelessSessionContainer.setupBeanMapping(StatelessSes
      sionContainer.java:524)
       at org.jboss.ejb.StatelessSessionContainer.create(StatelessSessionContai
      ner.java:162)
       at org.jboss.ejb.Container.invoke(Container.java:752)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
       at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceControl
      ler.java:978)
       at $Proxy5.create(Unknown Source)
       at org.jboss.system.ServiceController.create(ServiceController.java:315)
      
       at java.lang.reflect.Method.invoke(Native Method)
       at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBea
      nDispatcher.java:284)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
       at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
       at $Proxy13.create(Unknown Source)
       at org.jboss.ejb.EjbModule.createService(EjbModule.java:386)
       at org.jboss.system.ServiceMBeanSupport.create(ServiceMBeanSupport.java:
      136)
       at java.lang.reflect.Method.invoke(Native Method)
       at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBea
      nDispatcher.java:284)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
       at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceControl
      ler.java:978)
       at $Proxy5.create(Unknown Source)
       at org.jboss.system.ServiceController.create(ServiceController.java:315)
      
       at org.jboss.system.ServiceController.create(ServiceController.java:243)
      
       at java.lang.reflect.Method.invoke(Native Method)
       at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBea
      nDispatcher.java:284)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
       at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
       at $Proxy11.create(Unknown Source)
       at org.jboss.ejb.EJBDeployer.create(EJBDeployer.java:377)
       at org.jboss.deployment.MainDeployer.create(MainDeployer.java:760)
       at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:620)
       at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:585)
       at java.lang.reflect.Method.invoke(Native Method)
       at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBea
      nDispatcher.java:284)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
       at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
       at $Proxy4.deploy(Unknown Source)
       at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymen
      tScanner.java:435)
       at org.jboss.deployment.scanner.URLDeploymentScanner.scanDirectory(URLDe
      ploymentScanner.java:656)
       at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentS
      canner.java:507)
       at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(A
      bstractDeploymentScanner.java:261)
       at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:1
      65)
       at java.lang.reflect.Method.invoke(Native Method)
       at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBea
      nDispatcher.java:284)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
       at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceControl
      ler.java:978)
       at $Proxy0.start(Unknown Source)
       at org.jboss.system.ServiceController.start(ServiceController.java:398)
       at java.lang.reflect.Method.invoke(Native Method)
       at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBea
      nDispatcher.java:284)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
       at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
       at $Proxy3.start(Unknown Source)
       at org.jboss.deployment.SARDeployer.start(SARDeployer.java:249)
       at org.jboss.deployment.MainDeployer.start(MainDeployer.java:807)
       at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:621)
       at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:585)
       at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:569)
       at java.lang.reflect.Method.invoke(Native Method)
       at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBea
      nDispatcher.java:284)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
       at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:324)
       at org.jboss.system.server.ServerImpl.start(ServerImpl.java:221)
       at org.jboss.Main.boot(Main.java:148)
       at org.jboss.Main$1.run(Main.java:381)
       at java.lang.Thread.run(Thread.java:479)
      


      I have ejbRemove() method in my bean class, then why is the above error occuring?
      Can anyone tell me what could be the cause of this error?

      Waiting for a reply,
      Thanks in advance,
      Shetal