Questions Tagged With configurationhttps://answers.axonivy.com/tags/configuration/?type=rss&user=Nikel%20Weisquestions tagged <span class="tag">configuration</span>enThu, 28 Nov 2013 10:48:28 -0500How to develop/debug classes that are integrated in the faces-config.xml?https://answers.axonivy.com/questions/153/how-to-develop-debug-classes-that-are-integrated-in-the-faces-config-xml<p>What is the best way/practice to develop and debug classes which need to be referenced in the faces-config.xml? I've this problem with custom validators and a custom phase listener that should be implemented. </p> <p>My current approach is to close the Designer and start it again for every debug or development step, which makes development of custom validators and PhaseListeners a pain. Is there a better way to have access to debugging &amp; development facilities?</p>Nikel WeisThu, 28 Nov 2013 10:48:28 -0500https://answers.axonivy.com/questions/153/how-to-develop-debug-classes-that-are-integrated-in-the-faces-config-xmlconfigurationfaces-config.xmlHow to integrate custom PhaseListener in faces-config.xml?https://answers.axonivy.com/questions/117/how-to-integrate-custom-phaselistener-in-faces-config-xml<p>I want to implement a custom PhaseListener in my faces-config.xml like it is <a href="http://stackoverflow.com/questions/8388854/how-to-implement-a-phaselistener-which-runs-at-end-of-lifecycle">suggested</a> at stack overflow. So this is my faces-config.xml:</p> <pre><code>&lt;lifecycle&gt; &lt;phase-listener&gt;org.apache.myfaces.extensions.validator.core.startup.ExtValStartupListener&lt;/phase-listener&gt; &lt;phase-listener&gt;org.apache.myfaces.extensions.validator.beanval.startup.JSF2AwareBeanValidationStartupListener&lt;/phase-listener&gt; &lt;phase-listener&gt;org.apache.myfaces.extensions.validator.beanval.startup.BeanValidationStartupListener&lt;/phase-listener&gt; &lt;phase-listener&gt;de.azt.MyPhaseListener&lt;/phase-listener&gt; &lt;/lifecycle&gt; </code></pre> <p>And this is MyPhaseListener-Dummy: </p> <pre><code>public class MyPhaseListener implements PhaseListener { @Override public PhaseId getPhaseId() { return PhaseId.RENDER_RESPONSE; } @Override public void beforePhase(PhaseEvent event) { // Do your job here which should run right before the RENDER_RESPONSE. } @Override public void afterPhase(PhaseEvent event) { // Do your job here which should run right after the RENDER_RESPONSE. } } </code></pre> <p>But this approach leads the application server to crash:</p> <pre><code>HTTP Status 500 - serialFactory type Exception report message serialFactory description The server encountered an internal error that prevented it from fulfilling this request. exception javax.servlet.ServletException: serialFactory javax.faces.webapp.FacesServlet.service(FacesServlet.java:229) org.primefaces.webapp.filter.FileUploadFilter.doFilter(FileUploadFilter.java:79) ch.ivyteam.ivy.dialog.execution.jsf.controller.rest.IvyRestServiceFilter.doFilter(IvyRestServiceFilter.java:54) ch.ivyteam.ivy.dialog.execution.jsf.controller.IvyFacesInstanceFilter.filterAsSystem(IvyFacesInstanceFilter.java:104) ch.ivyteam.ivy.dialog.execution.jsf.controller.IvyFacesInstanceFilter.access$0(IvyFacesInstanceFilter.java:79) ch.ivyteam.ivy.dialog.execution.jsf.controller.IvyFacesInstanceFilter$1.call(IvyFacesInstanceFilter.java:55) ch.ivyteam.ivy.dialog.execution.jsf.controller.IvyFacesInstanceFilter$1.call(IvyFacesInstanceFilter.java:1) ch.ivyteam.ivy.security.internal.SecurityManager.executeAsSystem(SecurityManager.java:1425) </code></pre> <p>So how is it possible to implement a custom PhaseListener?</p>Nikel WeisFri, 22 Nov 2013 16:31:49 -0500https://answers.axonivy.com/questions/117/how-to-integrate-custom-phaselistener-in-faces-config-xmlconfigurationprimefaces