<html>
<head>
<meta name="generator" content="Windows Mail 17.5.9600.20911">
<style data-externalstyle="true"><!--
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph {
margin-top:0in;
margin-right:0in;
margin-bottom:0in;
margin-left:.5in;
margin-bottom:.0001pt;
}
p.MsoNormal, li.MsoNormal, div.MsoNormal {
margin:0in;
margin-bottom:.0001pt;
}
p.MsoListParagraphCxSpFirst, li.MsoListParagraphCxSpFirst, div.MsoListParagraphCxSpFirst,
p.MsoListParagraphCxSpMiddle, li.MsoListParagraphCxSpMiddle, div.MsoListParagraphCxSpMiddle,
p.MsoListParagraphCxSpLast, li.MsoListParagraphCxSpLast, div.MsoListParagraphCxSpLast {
margin-top:0in;
margin-right:0in;
margin-bottom:0in;
margin-left:.5in;
margin-bottom:.0001pt;
line-height:115%;
}
--></style></head>
<body dir="ltr">
<div data-externalstyle="false" dir="ltr" style="font-family: 'Meiryo', 'Calibri', 'Segoe UI', 'Microsoft YaHei UI', 'Microsoft JhengHei UI', 'Malgun Gothic', 'sans-serif';font-size:11.4975pt;">
<div><div><div style="font-size: 13.33px;">Hello, I need a help for migration project.</div><div style="font-size: 13.33px;">Currently, we use S2JSF which is old framework. </div><div style="font-size: 13.33px;">It uses "myfaces-1.0.9.jar" for JSF.</div><div style="font-size: 13.33px;"><br></div><div style="font-size: 13.33px;">When I deployed application on Glassfish v3, Exception is happened as below.</div><div style="font-size: 13.33px;">I wrote about listener configuration in web.xml.</div><div style="font-size: 13.33px;">I wrote JSF configuration in glassfish-web.xml</div><div style="font-size: 13.33px;"><br></div><div style="font-size: 13.33px;">However, glassfish said that a context listener is not set up.</div><div style="font-size: 13.33px;">Why? I can not find the reason.</div><div style="font-size: 13.33px;">I wrote listener configuration on web.xml but Glassfish does not recognize listener configuration.</div><div style="font-size: 13.33px;">Could you guys help me? </div><div style="font-size: 13.33px;"><br></div><div style="font-size: 13.33px;">Plus, </div><div style="font-size: 13.33px;">When I deployed an application on WebLogic12C and Tomcat7, The application can be deployed on both of them.</div><div style="font-size: 13.33px;"><br></div><div style="font-size: 13.33px;">*Configuration</div><div style="font-size: 13.33px;">JDK1.7</div><div style="font-size: 13.33px;">Windows Server 2012</div><div style="font-size: 13.33px;">Oracle12C</div><div style="font-size: 13.33px;"><br></div><div style="font-size: 13.33px;">*Web site for 2SJSF</div><div style="font-size: 13.33px;"><a href="http://s2jsf.seasar.org/en/" target="_parent"><u><font color="#0066cc">http://s2jsf.seasar.org/en/</font></u></a><br></div><div style="font-size: 13.33px;"><u><br></u></div><div style="font-size: 13.33px;"><u><br></u></div><div style="font-size: 13.33px;">*web.xml (Listener configuration)</div><div style="font-size: 13.33px;"> <!-- Listener, that does all the startup work (configuration, init). --></div><div style="font-size: 13.33px;"> <listener></div><div style="font-size: 13.33px;"> <listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class></div><div style="font-size: 13.33px;"> </listener></div><div style="font-size: 13.33px;"> </div><div style="font-size: 13.33px;"> </div><div style="font-size: 13.33px;">*glassfish-web.xml configuration</div><div style="font-size: 13.33px;"><!DOCTYPE glassfish-web-app PUBLIC</div><div style="font-size: 13.33px;">"-//GlassFish.org//DTD GlassFish Application Server 3.1 Servlet 3.0//EN"</div><div style="font-size: 13.33px;">"<a href="http://glassfish.org/dtds/glassfish-web-app_3_0-1.dtd" target="_parent"><u><font color="#0066cc">http://glassfish.org/dtds/glassfish-web-app_3_0-1.dtd</font></u></a>"></div><div style="font-size: 13.33px;"><glassfish-web-app error-url=""></div><div style="font-size: 13.33px;"> <class-loader delegate="false"/></div><div style="font-size: 13.33px;"> <property name="useBundledJsf" value="true" /></div><div style="font-size: 13.33px;"></glassfish-web-app></div><div style="font-size: 13.33px;"><br></div><div style="font-size: 13.33px;"><br></div><div style="font-size: 13.33px;">*Server.log</div><div style="font-size: 13.33px;">[#|2015-07-31T11:18:18.189+0900|SEVERE|glassfish3.1.2|org.apache.catalina.core.ContainerBase|_ThreadID=86;_ThreadName=Thread-2;|ContainerBase.addChild: start: </div><div style="font-size: 13.33px;">org.apache.catalina.LifecycleException: org.apache.catalina.LifecycleException: java.lang.IllegalStateException: No Factories configured for this Application - typically this is because a context listener is not setup in your web.xml.</div><div style="font-size: 13.33px;">A typical config looks like this;</div><div style="font-size: 13.33px;"><listener></div><div style="font-size: 13.33px;"> <listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class></div><div style="font-size: 13.33px;"></listener></div><div style="font-size: 13.33px;"><br></div></div></div><div data-signatureblock="true"><div></div><div><br></div></div>
</div>
</body>
</html>