How do I implement a simple phase listener in Seam?
Issue
- How to implement a simple phase listener in Seam
-
Having problems registering a simple phase listener class in faces-config.xml as I get the following errors during application startup/redeploy
ERROR [[/seam_webapp]] Exception sending context initialized event to listener instance of class org.jboss.web .jsf.integration.config.JBossJSFConfigureListener com.sun.faces.config.ConfigurationException: CONFIGURATION FAILED! Source Document: jndi:/localhost/seam_cms/WEB-INF/faces-config.xml Cause: Unable to find class 'com.domain.company.listeners.CustomPhaseListener' at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:215) at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:196) at org.jboss.web.jsf.integration.config.JBossJSFConfigureListener.contextInitialized(JBossJSFConfigureListener.java:60)
Environment
- JBoss Enterprise Application Platform (EAP) 5.0.0
- Seam 2.2.EAP5
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
