Hi <br><br>Please any help on this ? <br><br>Regards<br>Érico<br><br><div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername">Érico</b> <span dir="ltr">&lt;<a href="mailto:ericomtx@gmail.com">ericomtx@gmail.com</a>&gt;</span><br>
Date: 2011/10/12<br>Subject: deploying m faces 2.0 war samples in jboss 5.1 or 6.0 final<br>To: <a href="mailto:jboss-user@lists.jboss.org">jboss-user@lists.jboss.org</a><br><br><br>Hi <br><br>I am facing the following error when deploying the 2 war :<br>
<h1><font size="2"><span>myfaces-example-simple20-1.1.11.war and tiles 1.1.11</span></font></h1>files in jboss 5.1.0 : <br>
<br>obs: the same is happening in JBoss 6.0 Final<br><br>SEVERE [org.apache.myfaces.shared_impl.webapp.webxml.WebXmlParser] (main) Unable to parse web.xml<br>
java.lang.ClassCastException: org.apache.xerces.jaxp.DocumentBuilderFactoryImpl cannot be cast to javax.xml.parsers.DocumentBuilderFactory<br><br>...<br><br>Caused by: java.lang.ClassCastException: org.apache.xerces.jaxp.DocumentBuilderFactoryImpl cannot be cast to javax.xml.parsers.DocumentBuilderFactory<br>


<br>...<br><br>ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/myfaces-example-simple20-1.1.11]] (main) Exception sending context initialized event to listener instance of class org.jboss.web.jsf.integration.config.JBossJSFConfigureListener<br>


<br>...<br><br>Caused by: java.lang.InstantiationException: org.apache.myfaces.webapp.filter.TomahawkFacesContextFactory<br><br>I have copied the 2 JSF jar files (myfaces-api-2.0.4.jar and myfaces-impl-2.0.4.jar) to jsf-libs in JBOSS_HOME/SERVER/DEFAULT/DEPLOY/jbossweb.sar as it is described in : <br>


<br>1. <a href="http://community.jboss.org/wiki/upgradejbossastojsf2" target="_blank">http://community.jboss.org/wiki/upgradejbossastojsf2</a><br><br>2. <a href="http://community.jboss.org/wiki/JBoss5AndMyFaces" target="_blank">http://community.jboss.org/wiki/JBoss5AndMyFaces</a><br>


<br>I have added in both applications web.xml the context parameter : <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><br>Can you guys help me out on this ? I need to copy/paste the other common jar files that come along with myfaces binaries ? <br><br>Also is there any configuration for TomaHawk ?<br><br>Thks&amp;Regards<br>
<font color="#888888">

Érico<br>
</font></div><br>