Hi,<br><br>I&#39;m trying to deploy an ear on JBoss <a href="http://4.2.2.GA">4.2.2.GA</a> using Seam <a href="http://2.0.0.GA">2.0.0.GA</a>.<br>Deployment is fine, no errors and I can see my EJB component loaded like this:
<br>12:27:50,101 INFO&nbsp; [Component] Component: cardsAction, scope: STATELESS, type: STATELESS_SESSION_BEAN, class: com.patelski.magic.inventory.action.CardActionImpl, JNDI: mtgInventory/CardActionImpl/local<br><br>But when I try to load a page that uses this component, I get this:
<br>12:28:10,928 WARN&nbsp; [lifecycle] executePhase(RENDER_RESPONSE 6,com.sun.faces.context.FacesContextImpl@d14192) threw exception<br>org.jboss.seam.InstantiationException: <b>Could not instantiate Seam component: cardsAction
</b><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.jboss.seam.Component.newInstance(Component.java:1962)<br>.....<br>Caused by: javax.naming.NameNotFoundException: <b>mtgInventory not bound</b><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.jnp.server.NamingServer.getBinding(NamingServer.java
:529)<br>.....<br>12:28:11,255 ERROR [ExceptionFilter] handling uncaught exception<br>javax.servlet.ServletException: Could not instantiate Seam component: cardsAction<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at javax.faces.webapp.FacesServlet.service
(FacesServlet.java:256)<br>.....<br>etc.<br><br><br>Settings I use here are:<br>In components.xml:<br>&lt;core:init jndi-pattern=&quot;mtgInventory/#{ejbName}/local&quot; /&gt;<br><br><br>I guess this has something to do with my JNDI-setting, but I don&#39;t know what.
<br>I&#39;ve tried several things, but the Seam tutorial settings won&#39;t even deploy:<br><a href="http://docs.jboss.org/seam/1.2.1.GA/reference/en/html/tutorial.html">http://docs.jboss.org/seam/1.2.1.GA/reference/en/html/tutorial.html
</a><br><pre class="programlisting"> &lt;core:init jndi-pattern=&quot;@jndiPattern@&quot;/&gt;</pre>This gives:<br>12:37:07,476 INFO&nbsp; [Initialization] reading /WEB-INF/components.xml<br>12:37:07,600 ERROR [[/mtg-inventory]] Exception sending context initialized event to listener instance of class 
org.jboss.seam.servlet.SeamListener<br>java.lang.RuntimeException: error while reading /WEB-INF/components.xml<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.jboss.seam.init.Initialization.initComponentsFromXmlDocument(Initialization.java:136)<br>.....
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:225)<br>Caused by: java.lang.IllegalArgumentException: Exception setting property org.jboss.seam.core.init.jndiPattern
 on component org.jboss.seam.core.init.&nbsp; <b>Expression @jndiPattern@ evaluated to null.</b><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.jboss.seam.init.Initialization.installComponentFromXmlElement(Initialization.java:407)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.jboss.seam.init.Initialization.installComponentsFromXmlElements
(Initialization.java:257)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.jboss.seam.init.Initialization.initComponentsFromXmlDocument(Initialization.java:132)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ... 92 more<br>Caused by: java.lang.IllegalArgumentException: null value<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at 
org.jboss.seam.util.Conversions$FlatPropertyValue.&lt;init&gt;(Conversions.java:275)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.jboss.seam.init.Initialization.getPropertyValue(Initialization.java:462)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.jboss.seam.init.Initialization.installComponentFromXmlElement
(Initialization.java:402)<br><br>