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><?xml version="1.0" encoding="UTF-8"?><br>
<web-app xmlns:xsi="<a href="http://www.w3.org/2001/XMLSchema-instance" target="_blank">http://www.w3.org/2001/XMLSchema-instance</a>" xmlns="<a href="http://java.sun.com/xml/ns/javaee" target="_blank">http://java.sun.com/xml/ns/javaee</a>" xmlns:web="<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>" xsi:schemaLocation="<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>" version="2.5"><br>
<description>debug web.xml</description><br> <context-param><br> <description>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> </description><br> <param-name>javax.faces.CONFIG_FILES</param-name><br>
<param-value>/WEB-INF/examples-config.xml,/WEB-INF/testSuite-config.xml</param-value><br> </context-param><br> <br> <context-param><br> <description>State saving method: "client" or "server" (= default)<br>
See JSF Specification 2.5.3</description><br> <param-name>javax.faces.STATE_SAVING_METHOD</param-name><br> <param-value>server</param-value><br> </context-param><br>
<br>
<context-param><br> <description>Only applicable if state saving method is "server" (= default).<br> Defines the amount (default = 20) of the latest views are stored in session.</description><br>
<param-name>org.apache.myfaces.NUMBER_OF_VIEWS_IN_SESSION</param-name><br> <param-value>20</param-value><br> </context-param><br> <br> <context-param><br> <description>Only applicable if state saving method is "server" (= 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.</description><br>
<param-name>org.apache.myfaces.SERIALIZE_STATE_IN_SESSION</param-name><br> <param-value>true</param-value><br> </context-param><br> <br> <context-param><br> <description>Only applicable if state saving method is "server" (= 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.</description><br>
<param-name>org.apache.myfaces.COMPRESS_STATE_IN_SESSION</param-name><br> <param-value>true</param-value><br> </context-param><br> <br> <context-param><br> <description>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: "true"</description><br> <param-name>org.apache.myfaces.ALLOW_JAVASCRIPT</param-name><br> <param-value>true</param-value><br>
</context-param><br> <br> <context-param><br> <param-name>org.apache.myfaces.DETECT_JAVASCRIPT</param-name><br> <param-value>false</param-value><br> </context-param><br>
<br> <context-param><br> <description>If true, rendered HTML code will be formatted, so that it is "human readable".<br> i.e. additional line separators and whitespace will be written, that do not<br>
influence the HTML code.<br> Default: "true"</description><br> <param-name>org.apache.myfaces.PRETTY_HTML</param-name><br> <param-value>true</param-value><br>
</context-param><br> <br> <context-param><br> <description>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: "false"</description><br>
<param-name>org.apache.myfaces.AUTO_SCROLL</param-name><br> <param-value>true</param-value><br> </context-param><br><br> <context-param><br> <description><br>
Validate managed beans, navigation rules and ensure that forms are not nested.<br>
</description><br> <param-name>org.apache.myfaces.VALIDATE</param-name><br> <param-value>true</param-value><br> </context-param><br><br> <context-param><br>
<description>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: "org.apache.myfaces.shared.renderkit.html.util.DefaultAddResource"<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> </description><br> <param-name>org.apache.myfaces.ADD_RESOURCE_CLASS</param-name><br> <!-- param-value>org.apache.myfaces.renderkit.html.util.DefaultAddResource</param-value --><br>
<param-value>org.apache.myfaces.renderkit.html.util.NonBufferingAddResource</param-value><br> <!--param-value>org.apache.myfaces.component.html.util.StreamingAddResource</param-value --><br>
</context-param><br><br> <br> <context-param><br> <param-name>org.apache.myfaces.DISABLE_TOMAHAWK_FACES_CONTEXT_WRAPPER</param-name><br> <param-value>false</param-value><br> </context-param><br>
<br> <br> <context-param><br> <description><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> </description><br> <param-name>org.apache.myfaces.CHECK_EXTENSIONS_FILTER</param-name><br>
<param-value>true</param-value><br> </context-param><br> <br> <!-- JBossEL --><br> <context-param><br> <param-name>org.apache.myfaces.EXPRESSION_FACTORY</param-name><br>
<param-value>org.jboss.el.ExpressionFactoryImpl</param-value><br> </context-param><br> <br> <context-param><br> <param-name>javax.faces.PROJECT_STAGE</param-name><br>
<param-value>Development</param-value><br> </context-param><br> <br> <context-param><br> <param-name>org.apache.myfaces.USE_MULTIPLE_JS_FILES_FOR_JSF_UNCOMPRESSED_JS</param-name><br>
<param-value>true</param-value><br> </context-param><br> <br> <br> <context-param><br> <param-name>org.jboss.jbossfaces.WAR_BUNDLES_JSF_IMPL</param-name><br> <param-value>true</param-value><br>
</context-param><br><br> <listener><br> <listener-class>com.sun.faces.config.ConfigureListener</listener-class><br> </listener> <br><br> <filter><br> <filter-name>extensionsFilter</filter-name><br>
<filter-class>org.apache.myfaces.webapp.filter.ExtensionsFilter</filter-class><br> <init-param><br> <description>Set the size limit for uploaded files.<br> Format: 10 - 10 bytes<br>
10k - 10 KB<br> 10m - 10 MB<br> 1g - 1 GB</description><br> <param-name>uploadMaxFileSize</param-name><br> <param-value>100m</param-value><br>
</init-param><br> <init-param><br> <description>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</description><br> <param-name>uploadThresholdSize</param-name><br>
<param-value>100k</param-value><br> </init-param><br> </filter><br> <filter-mapping><br> <filter-name>extensionsFilter</filter-name><br> <url-pattern>*.jsf</url-pattern><br>
</filter-mapping><br> <filter-mapping><br> <filter-name>extensionsFilter</filter-name><br> <url-pattern>/faces/*</url-pattern><br> </filter-mapping><br><br><br> <servlet><br>
<servlet-name>Faces Servlet</servlet-name><br> <servlet-class>javax.faces.webapp.FacesServlet</servlet-class><br> <load-on-startup>1</load-on-startup><br> </servlet><br>
<br> <servlet><br> <servlet-name>SourceCodeServlet</servlet-name><br> <servlet-class>org.apache.myfaces.examples.webapp.SourceCodeServlet</servlet-class><br> </servlet><br> <br>
<br> <servlet-mapping><br> <servlet-name>Faces Servlet</servlet-name><br> <url-pattern>*.jsf</url-pattern><br> </servlet-mapping><br> <br> <servlet-mapping><br> <servlet-name>Faces Servlet</servlet-name><br>
<url-pattern>/faces/*</url-pattern><br> </servlet-mapping><br> <br> <servlet-mapping><br> <servlet-name>SourceCodeServlet</servlet-name><br> <url-pattern>*.source</url-pattern><br>
</servlet-mapping><br> <br> <welcome-file-list><br> <welcome-file>index.html</welcome-file><br> </welcome-file-list><br></web-app><br><br>I have also created a jboss-classloading.xml in WEB-INF directory in my war file with the following content :<br>
<br> <classloading xmlns="urn:jboss:classloading:1.0" <br> name="myfaces-example-simple20-1.1.11.war" <br> domain="localhost"> <br> <br> parent-domain="Ignored" <br>
<br> export-all="NON_EMPTY" <br> import-all="true"> <br> </classloading> <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>