<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">

<div>
        <table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                <tbody>
                        <tr>

                                <td>

                                        <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                                                <tbody>
                                                        <tr>
                                                                <td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
                                                                        <h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
                                                                        <!-- To have a header image/logo replace the name below with your img tag -->
                                                                        <!-- Email clients will render the images when the message is read so any image -->
                                                                        <!-- must be made available on a public server, so that all recipients can load the image. -->
                                                                        <a href="http://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">JBoss Community</a></h1>
                                                                </td>

                                                        </tr>
                                                        <tr>
                                                                <td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px;  -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
    AS 7 + MyFaces
</h3>
<span style="margin-bottom: 10px;">
    created by <a href="http://community.jboss.org/people/esteve">Esteve Aviles</a> in <i>JBoss AS7 Development</i> - <a href="http://community.jboss.org/message/615453#615453">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">

<div class="jive-rendered-content"><p>Hi,</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>I have tested myfaces JSF impl with jboss-as-kitchensink JBoss AS 7 example and failed to startup.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>I only added this dependencies to the pom.xml:</p><table><tbody><tr><td style=";"></td><td style=";">&lt;dependency&gt;</td></tr></tbody></table><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><table><tbody><tr><td style=";"></td><td style=";"></td><td style=";"></td><td style=";">&lt;groupId&gt;org.apache.myfaces.core&lt;/groupId&gt;</td></tr><tr><td style=";"></td><td style=";"></td><td style=";"></td><td style=";">&lt;artifactId&gt;myfaces-api&lt;/artifactId&gt;</td></tr><tr><td style=";"></td><td style=";"></td><td style=";"></td><td style=";">&lt;version&gt;2.1.1&lt;/version&gt;</td></tr><tr><td style=";"></td><td style=";"></td><td style=";"></td><td style=";">&lt;scope&gt;compile&lt;/scope&gt;</td></tr><tr><td style=";"></td><td style=";"></td><td style=";">&lt;/dependency&gt;</td></tr><tr><td style=";"></td><td style=";"></td><td style=";">&lt;dependency&gt;</td></tr><tr><td style=";"></td><td style=";"></td><td style=";"></td><td style=";">&lt;groupId&gt;org.apache.myfaces.core&lt;/groupId&gt;</td></tr><tr><td style=";"></td><td style=";"></td><td style=";"></td><td style=";">&lt;artifactId&gt;myfaces-impl-ee6&lt;/artifactId&gt;</td></tr><tr><td style=";"></td><td style=";"></td><td style=";"></td><td style=";">&lt;version&gt;2.1.1&lt;/version&gt;</td></tr><tr><td style=";"></td><td style=";"></td><td style=";"></td><td style=";">&lt;scope&gt;compile&lt;/scope&gt;</td></tr><tr><td style=";"></td><td style=";"></td><td style=";">&lt;/dependency&gt;</td></tr></tbody></table><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><table><tbody><tr><td style=";"></td><td style=";"></td><td style=";">&lt;dependency&gt;</td></tr><tr><td style=";"></td><td style=";"></td><td style=";"></td><td style=";">&lt;groupId&gt;org.apache.myfaces.core&lt;/groupId&gt;</td></tr><tr><td style=";"></td><td style=";"></td><td style=";"></td><td style=";">&lt;artifactId&gt;myfaces-impl&lt;/artifactId&gt;</td></tr><tr><td style=";"></td><td style=";"></td><td style=";"></td><td style=";">&lt;version&gt;2.1.1&lt;/version&gt;</td></tr><tr><td style=";"></td><td style=";"></td><td style=";"></td><td style=";">&lt;scope&gt;compile&lt;/scope&gt;</td></tr><tr><td style=";"></td><td style=";"></td><td style=";">&lt;/dependency&gt;</td></tr></tbody></table><table><tbody><tr><td style=";"><br/></td></tr></tbody></table><table><tbody><tr><td style=";"><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></td></tr></tbody></table><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>The dependency is added to de MANIFEST.MF too:</p><p>Dependencies: org.apache.log4j, javax.faces.api</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>14:04:40,625 ERROR [org.apache.catalina.core.StandardContext] (MSC service thread 1-1) Error listenerStart</p><p>14:04:40,625 ERROR [org.apache.catalina.core.StandardContext] (MSC service thread 1-1) Fall&#243; en arranque del Contexto [/jboss-as-kitchensink] debido a errores previos</p><p>14:04:40,626 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/jboss-as-kitchensink]] (MSC service thread 1-1) Excepci&#243;n enviando evento de contexto destru&#237;do a instancia de escuchador de clase org.apache.myfaces.webapp.StartupServletContextListener: java.lang.IllegalStateException: La aplicaci&#243;n no se ha inicializado correctamente durante el inicio, no se encuentra la f&#225;brica: javax.faces.application.ApplicationFactory</p><p>&#160;&#160;&#160; at javax.faces.FactoryFinder$FactoryManager.getFactory(FactoryFinder.java:804) [jboss-jsf-api_2.0_spec-1.0.0.Final.jar:1.0.0.Final]</p><p>&#160;&#160;&#160; at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:306) [jboss-jsf-api_2.0_spec-1.0.0.Final.jar:1.0.0.Final]</p><p>&#160;&#160;&#160; at org.apache.myfaces.context.servlet.FacesContextImplBase.getApplication(FacesContextImplBase.java:137) [myfaces-impl-2.1.1.jar:]</p><p>&#160;&#160;&#160; at org.apache.myfaces.context.servlet.FacesContextImplBase.getELContext(FacesContextImplBase.java:186) [myfaces-impl-2.1.1.jar:]</p><p>&#160;&#160;&#160; at javax.faces.component.UIViewRoot.setLocale(UIViewRoot.java:1456) [jboss-jsf-api_2.0_spec-1.0.0.Final.jar:1.0.0.Final]</p><p>&#160;&#160;&#160; at org.apache.myfaces.webapp.AbstractFacesInitializer._createFacesContext(AbstractFacesInitializer.java:404) [myfaces-impl-2.1.1.jar:]</p><p>&#160;&#160;&#160; at org.apache.myfaces.webapp.AbstractFacesInitializer.initShutdownFacesContext(AbstractFacesInitializer.java:386) [myfaces-impl-2.1.1.jar:]</p><p>&#160;&#160;&#160; at org.apache.myfaces.webapp.StartupServletContextListener.contextDestroyed(StartupServletContextListener.java:147) [myfaces-impl-2.1.1.jar:]</p><p>&#160;&#160;&#160; at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:3465) [jbossweb-7.0.0.CR4.jar:7.0.0.Final]</p><p>&#160;&#160;&#160; at org.apache.catalina.core.StandardContext.stop(StandardContext.java:3970) [jbossweb-7.0.0.CR4.jar:7.0.0.Final]</p><p>&#160;&#160;&#160; at org.apache.catalina.core.StandardContext.start(StandardContext.java:3888) [jbossweb-7.0.0.CR4.jar:7.0.0.Final]</p><p>&#160;&#160;&#160; at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:70) [jboss-as-web-7.0.0.Final.jar:7.0.0.Final]</p><p>&#160;&#160;&#160; at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1765)</p><p>&#160;&#160;&#160; at org.jboss.msc.service.ServiceControllerImpl$ClearTCCLTask.run(ServiceControllerImpl.java:2291)</p><p>&#160;&#160;&#160; at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [:1.6.0_16]</p><p>&#160;&#160;&#160; at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [:1.6.0_16]</p><p>&#160;&#160;&#160; at java.lang.Thread.run(Thread.java:619) [:1.6.0_16]</p></div>

<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
    <p style="margin: 0;">Reply to this message by <a href="http://community.jboss.org/message/615453#615453">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in JBoss AS7 Development at <a href="http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2225">Community</a></p>
</div></td>
                        </tr>
                    </tbody>
                </table>


                </td>
            </tr>
        </tbody>
    </table>

</div>

</body>
</html>