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:
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.
It looks like the problem is solved after updating the JBoss version from JBoss-3.2.2RC3 to JBoss-3.2.0RC4.