3 Replies Latest reply on Nov 27, 2003 2:15 AM by jonlee

    java.NoSuchMethod error

    chengwah

      Hi,

      JBoss shows NoSuchMethod error when my servlet tries to run a method that returns a session bean home object.

      I used the same way to call entity bean from servlet and it's running fine. I'm sure I change the DD file according to session's entries.

      WHat could be the cause? FYI,
      JBoss : 3.2.2 RC4
      Platform : Win 2k.

      TIA

        • 1. Re: java.NoSuchMethod error
          u268

          1) no such method in remote interface
          2) just forgotten to rebuild & redeploy your EJB ;)

          • 2. Re: java.NoSuchMethod error
            chengwah

            Hi,

            I'm sure that the remote interface is there and I tried to rebuild, redeploy the EJB and restart JBoss. None seems solve the problem.

            FYI, I'm using a Controller (Sesssion Bean) to access the Entity bean from my Servlet.

            THe error message shows is as follows

            java.lang.NoSuchMethodError: util.EJBGetter.getUserClassCtrlHome()LsystemCode/security/userClass/UserClassControllerHome

            I really dun know the reason and has been stuck for quite some time.

            Urgent help is needed.

            TIA

            • 3. Re: java.NoSuchMethod error
              jonlee

              You really need to show some of the code otherwise people have nothing to analyze.