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
@Stateless
public class FilmServiceBean implements FilmService
{
@PersistenceContext(unitName="FSWise")
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.*;
@Local
public interface FilmService
{
and this is how I access the bean:
public class Utils
{
public static FilmService getFilmService()
{
try
{
InitialContext ctx = new InitialContext();
return (FilmService) ctx.lookup("FSWise/FilmServiceBean/local");
}
catch (Exception e)
{
e.printStackTrace();
return null;
}
}
}
Any ideas?
This is the exception thrown when a local interface is accessed remotely - if you send your jar/war to bdecoste@jboss.com, I'll take a look.