Sorry, please ignore the stack trace posted above. It should read:
javax.naming.NameNotFoundException: TestBean not bound org.jnp.server.NamingServer.getBinding(NamingServer.java:491)
Your @local annotation is missing.
From reading the documentation I shouldn't need @local for a stateless session bean right? Or am I missing something?
All the examples I look at do not have the @local annotation.
Where would I put that annotation? On the interface? Thanks.
Ok, I found this in the JBoss docs.
"EJB 3.0 beans must be packaged in a JAR file with the suffix .jar. "
Does anyone know if it is possible to have the JBoss deployer scan for class files outside of a .jar?
From reading the documentation I shouldn't need @local for a stateless session bean right?
Nope. On the the page you linked in your first ppost it clearly says:
Take a look at CalculatorRemote.java. To define this as the remote interface of Calculator bean you either annotate the bean class and specify what the remote interfaces are, or you annotate each remote interface the bean class implements with @javax.ejb.Remote. only need to annotate the bean class with @javax.ejb.Remote. Similar for CalculatorLocal.java as you need to annotate the bean class with @javax.ejb.Local for it to be the local interface of the CalculatorBean.
Even after adding the @Local annotation, it is still not working. I even tried adding my bean to the persistence.xml file as follows:
No go. Any ideas here?