Hi,<br><br>I'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 [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 [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> at org.jboss.seam.Component.newInstance(Component.java:1962)<br>.....<br>Caused by: javax.naming.NameNotFoundException: <b>mtgInventory not bound</b><br> 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> 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><core:init jndi-pattern="mtgInventory/#{ejbName}/local" /><br><br><br>I guess this has something to do with my JNDI-setting, but I don't know what.
<br>I've tried several things, but the Seam tutorial settings won'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"> <core:init jndi-pattern="@jndiPattern@"/></pre>This gives:<br>12:37:07,476 INFO [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> at org.jboss.seam.init.Initialization.initComponentsFromXmlDocument(Initialization.java:136)<br>.....
<br> 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. <b>Expression @jndiPattern@ evaluated to null.</b><br> at org.jboss.seam.init.Initialization.installComponentFromXmlElement(Initialization.java:407)<br> at org.jboss.seam.init.Initialization.installComponentsFromXmlElements
(Initialization.java:257)<br> at org.jboss.seam.init.Initialization.initComponentsFromXmlDocument(Initialization.java:132)<br> ... 92 more<br>Caused by: java.lang.IllegalArgumentException: null value<br> at
org.jboss.seam.util.Conversions$FlatPropertyValue.<init>(Conversions.java:275)<br> at org.jboss.seam.init.Initialization.getPropertyValue(Initialization.java:462)<br> at org.jboss.seam.init.Initialization.installComponentFromXmlElement
(Initialization.java:402)<br><br>