Hi,
I'm trying to deploy an ear on JBoss 4.2.2.GA using Seam 2.0.0.GA.
Deployment is fine, no errors and I can see my EJB component loaded like this:
12:27:50,101 INFO [Component] Component: cardsAction, scope: STATELESS, type: STATELESS_SESSION_BEAN, class: com.patelski.magic.inventory.action.CardActionImpl, JNDI: mtgInventory/CardActionImpl/local
But when I try to load a page that uses this component, I get this:
12:28:10,928 WARN [lifecycle] executePhase(RENDER_RESPONSE 6,com.sun.faces.context.FacesContextImpl@d14192) threw exception
org.jboss.seam.InstantiationException: Could not instantiate Seam component: cardsAction
at org.jboss.seam.Component.newInstance(Component.java:1962)
.....
Caused by: javax.naming.NameNotFoundException: mtgInventory not bound
at org.jnp.server.NamingServer.getBinding(NamingServer.java
:529)
.....
12:28:11,255 ERROR [ExceptionFilter] handling uncaught exception
javax.servlet.ServletException: Could not instantiate Seam component: cardsAction
at javax.faces.webapp.FacesServlet.service
(FacesServlet.java:256)
.....
etc.
Settings I use here are:
In components.xml:
<core:init jndi-pattern="mtgInventory/#{ejbName}/local" />
I guess this has something to do with my JNDI-setting, but I don't know what.
I've tried several things, but the Seam tutorial settings won't even deploy:
http://docs.jboss.org/seam/1.2.1.GA/reference/en/html/tutorial.html
<core:init jndi-pattern="@jndiPattern@"/>This gives: