4 Replies Latest reply on Jan 14, 2008 10:31 AM by Pete Muir

    Help with a common exception

    James Cranwell-Ward Newbie


      I have looked around a bit and it seems that this is a common deployment exception that happens for a number of reasons.

      In may case seam cant read my components.xml file:

      
      <?xml version="1.0" encoding="UTF-8"?>
      <components xmlns="http://jboss.com/products/seam/components"
       xmlns:core="http://jboss.com/products/seam/core"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xsi:schemaLocation=
       "http://jboss.com/products/seam/core http://jboss.com/products/seam/core-1.1.xsd
       http://jboss.com/products/seam/components http://jboss.com/products/seam/components-1.1.xsd">
      
       <!-- JNDI name pattern for JBoss EJB 3.0 -->
       <core:init debug="true" jndi-pattern="@jndiPattern@"/>
      
       <!-- Determines whether an embeded EJB container is installed -->
       <core:ejb installed="@embeddedEjb@"/>
      
       <!-- For use with jBPM pageflow or process management -->
       <core:jbpm>
       <core:pageflow-definitions>
       <value>newApplication.jpdl.xml</value>
       </core:pageflow-definitions>
       </core:jbpm>
      
      </components>
      
      


      I also have a components.properties file in the same dir:

      
      embeddedEjb false
      jndiPattern #{ejbName}/local
      
      


      I cant really see anything wrong, but i get this exception during deployment:

      
      15:11:45,475 INFO [Initialization] reading /WEB-INF/components.xml
      15:11:45,578 ERROR [[/enum-rtk]] Exception sending context initialized event to listener instance of class org.jboss.seam.servlet.SeamListener
      java.lang.RuntimeException: error while reading /WEB-INF/components.xml
       at org.jboss.seam.init.Initialization.initComponentsFromXmlDocument(Initialization.java:137)
       at org.jboss.seam.init.Initialization.create(Initialization.java:87)
       at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:33)
      
      


      Has any one got any ideas?

      Cheers,

      James