Hi <br><br>I am trying to run myfaces-example-simple20-1.1.<div id=":pg">11 in a JBoss 5.1.0 and I am getting the following error : <br><br><font size="4">Error: javax.faces.application.Application.createComponent(Ljavax/faces/context/FacesContext;Ljava/lang/String;Ljava/lang/String;)Ljavax/faces/component/UIComponent;</font><br>


<br>I have tried several changes in the deployment descriptor and removing myfaces and el jar files from the project but none worked<br><br>my web.xml is as follows : <br><br>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;<br>


&lt;web-app xmlns:xsi=&quot;<a href="http://www.w3.org/2001/XMLSchema-instance" target="_blank">http://www.w3.org/2001/XMLSchema-instance</a>&quot; xmlns=&quot;<a href="http://java.sun.com/xml/ns/javaee" target="_blank">http://java.sun.com/xml/ns/javaee</a>&quot; xmlns:web=&quot;<a href="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" target="_blank">http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd</a>&quot; xsi:schemaLocation=&quot;<a href="http://java.sun.com/xml/ns/javaee" target="_blank">http://java.sun.com/xml/ns/javaee</a> <a href="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" target="_blank">http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd</a>&quot; version=&quot;2.5&quot;&gt;<br>


  &lt;description&gt;debug web.xml&lt;/description&gt;<br>  &lt;context-param&gt;<br>    &lt;description&gt;Comma separated list of URIs of (additional) faces config files.<br>            (e.g. /WEB-INF/my-config.xml)<br>


            See JSF 1.0 PRD2, 10.3.2<br>            Attention: You do not need to put /WEB-INF/faces-config.xml in here.<br>    &lt;/description&gt;<br>    &lt;param-name&gt;javax.faces.CONFIG_FILES&lt;/param-name&gt;<br>


    &lt;param-value&gt;/WEB-INF/examples-config.xml,/WEB-INF/testSuite-config.xml&lt;/param-value&gt;<br>  &lt;/context-param&gt;<br>  <br>  &lt;context-param&gt;<br>    &lt;description&gt;State saving method: &quot;client&quot; or &quot;server&quot; (= default)<br>


            See JSF Specification 2.5.3&lt;/description&gt;<br>    &lt;param-name&gt;javax.faces.STATE_SAVING_METHOD&lt;/param-name&gt;<br>    &lt;param-value&gt;server&lt;/param-value&gt;<br>  &lt;/context-param&gt;<br>

  <br>
  &lt;context-param&gt;<br>    &lt;description&gt;Only applicable if state saving method is &quot;server&quot; (= default).<br>            Defines the amount (default = 20) of the latest views are stored in session.&lt;/description&gt;<br>


    &lt;param-name&gt;org.apache.myfaces.NUMBER_OF_VIEWS_IN_SESSION&lt;/param-name&gt;<br>    &lt;param-value&gt;20&lt;/param-value&gt;<br>  &lt;/context-param&gt;<br>  <br>  &lt;context-param&gt;<br>    &lt;description&gt;Only applicable if state saving method is &quot;server&quot; (= default).<br>


            If true (default) the state will be serialized to a byte stream before it <br>            is written to the session.<br>            If false the state will not be serialized to a byte stream.&lt;/description&gt;<br>


    &lt;param-name&gt;org.apache.myfaces.SERIALIZE_STATE_IN_SESSION&lt;/param-name&gt;<br>    &lt;param-value&gt;true&lt;/param-value&gt;<br>  &lt;/context-param&gt;<br>  <br>  &lt;context-param&gt;<br>    &lt;description&gt;Only applicable if state saving method is &quot;server&quot; (= default) and if <br>


            org.apache.myfaces.SERIALIZE_STATE_IN_SESSION is true (= default)<br>            If true (default) the serialized state will be compressed before it <br>            is written to the session. If false the state will not be compressed.&lt;/description&gt;<br>


    &lt;param-name&gt;org.apache.myfaces.COMPRESS_STATE_IN_SESSION&lt;/param-name&gt;<br>    &lt;param-value&gt;true&lt;/param-value&gt;<br>  &lt;/context-param&gt;<br>  <br>  &lt;context-param&gt;<br>    &lt;description&gt;This parameter tells MyFaces if javascript code should be allowed in the<br>


            rendered HTML output.<br>            If javascript is allowed, command_link anchors will have javascript code<br>            that submits the corresponding form.<br>            If javascript is not allowed, the state saving info and nested parameters<br>


            will be added as url parameters.<br>            Default: &quot;true&quot;&lt;/description&gt;<br>    &lt;param-name&gt;org.apache.myfaces.ALLOW_JAVASCRIPT&lt;/param-name&gt;<br>    &lt;param-value&gt;true&lt;/param-value&gt;<br>


  &lt;/context-param&gt;<br>  <br>  &lt;context-param&gt;<br>    &lt;param-name&gt;org.apache.myfaces.DETECT_JAVASCRIPT&lt;/param-name&gt;<br>    &lt;param-value&gt;false&lt;/param-value&gt;<br>  &lt;/context-param&gt;<br>


  <br>  &lt;context-param&gt;<br>    &lt;description&gt;If true, rendered HTML code will be formatted, so that it is &quot;human readable&quot;.<br>            i.e. additional line separators and whitespace will be written, that do not<br>


            influence the HTML code.<br>            Default: &quot;true&quot;&lt;/description&gt;<br>    &lt;param-name&gt;org.apache.myfaces.PRETTY_HTML&lt;/param-name&gt;<br>    &lt;param-value&gt;true&lt;/param-value&gt;<br>


  &lt;/context-param&gt;<br>  <br>  &lt;context-param&gt;<br>    &lt;description&gt;If true, a javascript function will be rendered that is able to restore the<br>            former vertical scroll on every request. Convenient feature if you have pages<br>


            with long lists and you do not want the browser page to always jump to the top<br>            if you trigger a link or button action that stays on the same page.<br>            Default: &quot;false&quot;&lt;/description&gt;<br>


    &lt;param-name&gt;org.apache.myfaces.AUTO_SCROLL&lt;/param-name&gt;<br>    &lt;param-value&gt;true&lt;/param-value&gt;<br>  &lt;/context-param&gt;<br><br>    &lt;context-param&gt;<br>          &lt;description&gt;<br>

              Validate managed beans, navigation rules and ensure that forms are not nested.<br>
          &lt;/description&gt;<br>           &lt;param-name&gt;org.apache.myfaces.VALIDATE&lt;/param-name&gt;<br>           &lt;param-value&gt;true&lt;/param-value&gt;<br>    &lt;/context-param&gt;<br><br>  &lt;context-param&gt;<br>


    &lt;description&gt;A class implementing the<br>            org.apache.myfaces.shared.renderkit.html.util.AddResource<br>            interface. It is responsible to<br>               place scripts and css on the right position in your HTML document.<br>


            Default: &quot;org.apache.myfaces.shared.renderkit.html.util.DefaultAddResource&quot;<br>            Follow the description on the MyFaces-Wiki-Performance page to enable<br>            StreamingAddResource instead of DefaultAddResource if you want to<br>


            gain performance.<br>    &lt;/description&gt;<br>    &lt;param-name&gt;org.apache.myfaces.ADD_RESOURCE_CLASS&lt;/param-name&gt;<br>    &lt;!-- param-value&gt;org.apache.myfaces.renderkit.html.util.DefaultAddResource&lt;/param-value --&gt;<br>


    &lt;param-value&gt;org.apache.myfaces.renderkit.html.util.NonBufferingAddResource&lt;/param-value&gt;<br>    &lt;!--param-value&gt;org.apache.myfaces.component.html.util.StreamingAddResource&lt;/param-value --&gt;<br>


  &lt;/context-param&gt;<br><br>  <br>  &lt;context-param&gt;<br>    &lt;param-name&gt;org.apache.myfaces.DISABLE_TOMAHAWK_FACES_CONTEXT_WRAPPER&lt;/param-name&gt;<br>    &lt;param-value&gt;false&lt;/param-value&gt;<br>  &lt;/context-param&gt;<br>


  <br>  <br>  &lt;context-param&gt;<br>    &lt;description&gt;<br>        A very common problem in configuring MyFaces-web-applications<br>        is that the Extensions-Filter is not configured at all<br>        or improperly configured. This parameter will check for a properly<br>


        configured Extensions-Filter if it is needed by the web-app.<br>        In most cases this check will work just fine, there might be cases<br>        where an internal forward will bypass the Extensions-Filter and the check<br>


        will not work. If this is the case, you can disable the check by setting<br>        this parameter to false.<br>    &lt;/description&gt;<br>    &lt;param-name&gt;org.apache.myfaces.CHECK_EXTENSIONS_FILTER&lt;/param-name&gt;<br>


    &lt;param-value&gt;true&lt;/param-value&gt;<br>  &lt;/context-param&gt;<br>     <br>     &lt;!-- JBossEL --&gt;<br>    &lt;context-param&gt;<br>        &lt;param-name&gt;org.apache.myfaces.EXPRESSION_FACTORY&lt;/param-name&gt;<br>


        &lt;param-value&gt;org.jboss.el.ExpressionFactoryImpl&lt;/param-value&gt;<br>    &lt;/context-param&gt;<br>     <br>  &lt;context-param&gt;<br>    &lt;param-name&gt;javax.faces.PROJECT_STAGE&lt;/param-name&gt;<br>


    &lt;param-value&gt;Development&lt;/param-value&gt;<br>  &lt;/context-param&gt;<br>  <br>  &lt;context-param&gt;<br>    &lt;param-name&gt;org.apache.myfaces.USE_MULTIPLE_JS_FILES_FOR_JSF_UNCOMPRESSED_JS&lt;/param-name&gt;<br>


    &lt;param-value&gt;true&lt;/param-value&gt;<br>  &lt;/context-param&gt;<br>  <br>    <br>  &lt;context-param&gt;<br>    &lt;param-name&gt;org.jboss.jbossfaces.WAR_BUNDLES_JSF_IMPL&lt;/param-name&gt;<br>    &lt;param-value&gt;true&lt;/param-value&gt;<br>


  &lt;/context-param&gt;<br><br>  &lt;listener&gt;<br>    &lt;listener-class&gt;com.sun.faces.config.ConfigureListener&lt;/listener-class&gt;<br>  &lt;/listener&gt; <br><br>  &lt;filter&gt;<br>    &lt;filter-name&gt;extensionsFilter&lt;/filter-name&gt;<br>


    &lt;filter-class&gt;org.apache.myfaces.webapp.filter.ExtensionsFilter&lt;/filter-class&gt;<br>    &lt;init-param&gt;<br>      &lt;description&gt;Set the size limit for uploaded files.<br>                Format: 10 - 10 bytes<br>


                        10k - 10 KB<br>                        10m - 10 MB<br>                        1g - 1 GB&lt;/description&gt;<br>      &lt;param-name&gt;uploadMaxFileSize&lt;/param-name&gt;<br>      &lt;param-value&gt;100m&lt;/param-value&gt;<br>


    &lt;/init-param&gt;<br>    &lt;init-param&gt;<br>      &lt;description&gt;Set the threshold size - files<br>                    below this limit are stored in memory, files above<br>                    this limit are stored on disk.<br>


<br>                Format: 10 - 10 bytes<br>                        10k - 10 KB<br>                        10m - 10 MB<br>                        1g - 1 GB&lt;/description&gt;<br>      &lt;param-name&gt;uploadThresholdSize&lt;/param-name&gt;<br>


      &lt;param-value&gt;100k&lt;/param-value&gt;<br>    &lt;/init-param&gt;<br>  &lt;/filter&gt;<br>  &lt;filter-mapping&gt;<br>    &lt;filter-name&gt;extensionsFilter&lt;/filter-name&gt;<br>    &lt;url-pattern&gt;*.jsf&lt;/url-pattern&gt;<br>


  &lt;/filter-mapping&gt;<br>  &lt;filter-mapping&gt;<br>    &lt;filter-name&gt;extensionsFilter&lt;/filter-name&gt;<br>    &lt;url-pattern&gt;/faces/*&lt;/url-pattern&gt;<br>  &lt;/filter-mapping&gt;<br><br><br>  &lt;servlet&gt;<br>


    &lt;servlet-name&gt;Faces Servlet&lt;/servlet-name&gt;<br>    &lt;servlet-class&gt;javax.faces.webapp.FacesServlet&lt;/servlet-class&gt;<br>    &lt;load-on-startup&gt;1&lt;/load-on-startup&gt;<br>  &lt;/servlet&gt;<br>


  <br>  &lt;servlet&gt;<br>    &lt;servlet-name&gt;SourceCodeServlet&lt;/servlet-name&gt;<br>    &lt;servlet-class&gt;org.apache.myfaces.examples.webapp.SourceCodeServlet&lt;/servlet-class&gt;<br>  &lt;/servlet&gt;<br>  <br>


  <br>  &lt;servlet-mapping&gt;<br>    &lt;servlet-name&gt;Faces Servlet&lt;/servlet-name&gt;<br>    &lt;url-pattern&gt;*.jsf&lt;/url-pattern&gt;<br>  &lt;/servlet-mapping&gt;<br>  <br>  &lt;servlet-mapping&gt;<br>    &lt;servlet-name&gt;Faces Servlet&lt;/servlet-name&gt;<br>


    &lt;url-pattern&gt;/faces/*&lt;/url-pattern&gt;<br>  &lt;/servlet-mapping&gt;<br>  <br>  &lt;servlet-mapping&gt;<br>    &lt;servlet-name&gt;SourceCodeServlet&lt;/servlet-name&gt;<br>    &lt;url-pattern&gt;*.source&lt;/url-pattern&gt;<br>


  &lt;/servlet-mapping&gt;<br>  <br>  &lt;welcome-file-list&gt;<br>    &lt;welcome-file&gt;index.html&lt;/welcome-file&gt;<br>  &lt;/welcome-file-list&gt;<br>&lt;/web-app&gt;<br><br>I have also created a jboss-classloading.xml in WEB-INF directory in my war file with the following content :<br>


<br>    &lt;classloading xmlns=&quot;urn:jboss:classloading:1.0&quot;   <br>                  name=&quot;myfaces-example-simple20-1.1.11.war&quot;   <br>                  domain=&quot;localhost&quot;&gt;  <br>      <br>                  parent-domain=&quot;Ignored&quot;  <br>


       <br>                  export-all=&quot;NON_EMPTY&quot;   <br>                  import-all=&quot;true&quot;&gt;   <br>    &lt;/classloading&gt;  <br><br>Can you guys help us out on this ? I can  not change the JBoss version ...<br>
<br>Thks<br><font color="#888888">Érico</font></div>