1 Reply Latest reply on May 19, 2006 2:24 PM by William DeCoste

    EJBException - Invalid invocation of local interface (null c

    Tomasz Zab?ocki Newbie

      The issue is:

      I'm using JBoss 4.0.3SP1 with EJB3 RC6 deployed. It's a web app in JSF with an EJB3 back-end. The issue is:

      I have a local interface, i try to access it locally (from the web package). Both packages seem to be in the same JVM. When I try to access an EJB method I get an

      ...some (in my opinion) unimportant stack trace blurbs
      then comes:

      Caused by: javax.ejb.EJBException: Invalid invocation of local interface (null container)
      at org.jboss.ejb3.stateless.StatelessLocalProxy.invoke(StatelessLocalProxy.java:75)
      at $Proxy73...

      this is the beginning of my EJB3 bean
      public class FilmServiceBean implements FilmService
      EntityManager em;

      and of its interface

      package pl.com.filmservice.ejb;

      import java.sql.Date;
      import java.util.List;
      import javax.ejb.Local;
      import pl.com.filmservice.par.*;

      public interface FilmService

      and this is how I access the bean:

      public class Utils
      public static FilmService getFilmService()
      InitialContext ctx = new InitialContext();
      return (FilmService) ctx.lookup("FSWise/FilmServiceBean/local");
      catch (Exception e)
      return null;

      Any ideas?