3 Replies Latest reply on Aug 9, 2002 12:53 PM by Colin Thorburn

    Can't find ejbPostCreate()

    Jordan Thomas Newbie

      Hi,

      When I deploy my file I get an error saying that it can't find ejb[post]create. I have made sure that the parameters of the ejbPostCreate method are exactly the same as the ejbCreate method (i.e. copy and paste) and both of the methods are definately there. I am at an end so any help would be fantastic.

      TIA

      Jordan


      12:13:42,327 ERROR [EjbModule] Initialization failed
      java.lang.NoSuchMethodException: Can't find ejb[Post]Create in scoop.ejb.CompanyCMP
      at org.jboss.ejb.plugins.CMPPersistenceManager.createMethodCache(CMPPersistenceManager.java:189)
      at org.jboss.ejb.plugins.CMPPersistenceManager.create(CMPPersistenceManager.java:147)
      at org.jboss.ejb.EntityContainer.create(EntityContainer.java:337)
      at org.jboss.ejb.Container.invoke(Container.java:789)
      at org.jboss.ejb.EntityContainer.invoke(EntityContainer.java:1055)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:491)
      at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:894).....



      12:13:42,347 ERROR [MainDeployer] could not create deployment: njar:file:/C:/jboss/server/default/tmp/deploy/server/default/deploy/scoop.ear/77.scoop.ear^/scoop-ejb.jar
      org.jboss.deployment.DeploymentException: error in create of EjbModule: njar:file:/C:/jboss/server/default/tmp/deploy/server/default/deploy/scoop.ear/77.scoop.ear^/scoop-ejb.jar; - nested throwable: (java.lang.NoSuchMethodException: Can't find ejb[Post]Create in scoop.ejb.CompanyCMP)
      at org.jboss.ejb.EJBDeployer.create(EJBDeployer.java:384)
      at org.jboss.deployment.MainDeployer.create(MainDeployer.java:637)
      at org.jboss.deployment.MainDeployer.create(MainDeployer.java:631)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:512)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:481)
      at sun.reflect.GeneratedMethodAccessor8.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:491)
      at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
      at $Proxy4.deploy(Unknown Source)
      at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:405)
      at org.jboss.deployment.scanner.URLDeploymentScanner.scanDirectory(URLDeploymentScanner.java:586)
      at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:465)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:237)
      at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:162)
      at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:491)
      at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:894)
      at $Proxy0.start(Unknown Source)....