1 Reply Latest reply on Oct 10, 2003 1:30 AM by sysuser1

    NoSuchMethodError in singleton

    sysuser1

      Hi all,

      I've done a very simple singleton (EJBHomeFactory) in order to get and cache both local and remote home interfaces.
      The code is:
      EJBHomeFactory factory = EJBHomeFactory.getFactory();
      EJBLocalHome home = factory.lookUpLocalHome(UsuarioLocalHome.class);

      In the second line, I get the following exception:
      java.lang.NoSuchMethodError: com.tid.score.util.EJBHomeFactory.lookUpLocalHome(Ljava/lang/Class;)Ljavax/ejb/EJBLocalHome;
      at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:292)

      This singleton is called inside the method of a session bean, and all the classes and EJBs are in a JAR file under the deploy directory.

      What's the problem?. I'm completely sure that the singleton is updated in the JAR file.

      Thanks,
      Jorge