1 Reply Latest reply on Dec 17, 2001 1:53 AM by Fusayuki Minamoto

    DeploymentException - NoSuchMethod...

    Ben Shan Newbie

      im getting a deployment exception trying to deploy a jar file. its related to 1 of the beans in the jar, and i know which 1 it is, but i cant figure out which method it thinks is missing. i can remove the bean, and the jar deploys ok. can anyone help?

      here's the text from the console:

      [Container factory] Deploying xxxx.1Bean
      [Container factory] Deploying xxxx.2Bean
      [Container factory] Deploying xxxx.3Bean

      [Container factory] java.lang.NoSuchMethodException
      [Container factory] at java.lang.Class.getMethod0(Native Method)
      [Container factory] at java.lang.Class.getMethod(Class.java:888)
      [Container factory] at org.jboss.ejb.plugins.CMPPersistenceManager.createMethodCache(CMPPersistenceManager.ja

      [Container factory] at org.jboss.ejb.plugins.CMPPersistenceManager.init(CMPPersistenceManager.java:102)
      [Container factory] at org.jboss.ejb.EntityContainer.init(EntityContainer.java:291)
      [Container factory] at org.jboss.ejb.Application.init(Application.java:202)
      [Container factory] at org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:372)
      [Container factory] at org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:304)
      [Container factory] at java.lang.reflect.Method.invoke(Native Method)
      [Container factory] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
      [Container factory] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
      [Container factory] at org.jboss.deployment.J2eeDeployer.startModules(J2eeDeployer.java:494)
      [Container factory] at org.jboss.deployment.J2eeDeployer.startApplication(J2eeDeployer.java:468)
      [Container factory] at org.jboss.deployment.J2eeDeployer.deploy(J2eeDeployer.java:208)
      [Container factory] at java.lang.reflect.Method.invoke(Native Method)
      [Container factory] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
      [Container factory] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
      [Container factory] at org.jboss.ejb.AutoDeployer.deploy(AutoDeployer.java:379)
      [Container factory] at org.jboss.ejb.AutoDeployer.run(AutoDeployer.java:217)
      [Container factory] at java.lang.Thread.run(Thread.java:484)
      [J2EE Deployer Default] Starting test.jar failed!
      [Default] org.jboss.ejb.DeploymentException: Could not deploy file:/C:/bshan_programs/jboss/tmp/deploy/Default/te
      , Cause:java.lang.NoSuchMethodException

        • 1. Re: DeploymentException - NoSuchMethod...
          Fusayuki Minamoto Apprentice

          With JBoss 2.4.3, I have a verifier message with ejbCreate and ejbPostCreate mismatch:

          [Verifier]
          Bean : BookmarkBean
          Method : public Long ejbCreate(Long, String, String)
          Section: 9.2.4
          Warning: For each ejbCreate(...) method, the entity bean class must define a matching ejbPostCreate(...) method.
          [Container factory] Deploying BookmarkBean
          [Container factory] java.lang.NoSuchMethodException
          [Container factory] at java.lang.Class.getMethod0(Native Method)
          [Container factory] at java.lang.Class.getMethod(Class.java:888)
          [Container factory] at org.jboss.ejb.plugins.CMPPersistenceManager.createMethodCache(CMPPersistenceManager.java:122)

          Miki