2 Replies Latest reply on Aug 22, 2002 10:21 AM by jlbakker

    method not found? expected 'remove()'?

    jlbakker

      Guys,

      [jboss 3.0.1/jdk1.4.0-01]

      I think I have a weird problem. I have ejb-jar.xml that lists 2 SL session beans and 1 entity bean. The first one mentioned is "Traffic".

      I pack the three beans in one file with ext. jar and deploy it default/deploy. Then I get a method not found exception:

      [ObjectName: jboss.j2ee:service=EJB,jndiName=com.blabla.traffic.TrafficHome
      state: FAILED
      I Depend On:
      Depends On Me: java.lang.NoSuchMethodException: Method not found in bean class:
      remove()]

      So, why does it expect remove? None of the three beans has a remove(...) (they all have ejbRemove()). What message is hidden behind this exception?

      Thanks for insight!

      John-Luc

        • 1. Re: method not found? expected 'remove()'?

          Have you declared a "remove" method in your
          remote interface?

          JBoss implements EJBObject.remove() not
          MyRemoteInterface.remove()

          Regards,
          Adrian

          • 2. Re: method not found? expected 'remove()'?
            jlbakker

            Hi,

            I fixed it and I it was my fault. I have a BaseInterface that extends EJBObject. Then my bean has a LocalInterface and a RemoteInterface, both extend the BaseInterface.

            So, I think the exception tried to tell me that the LocalInterface extended a EJBObject + a EJBLocalObject. Clearly, the LocalInterface should only extend the EJBLocalObject ...

            My mistake. Thanks for bearing with me. The exception message may improve, though.

            Regards,

            John-Luc