This content has been marked as final.
Show 2 replies
-
1. Re: Deployment Exception
ipazmino Sep 9, 2008 4:41 PM (in response to ipazmino)According to the http://wiki.jboss.org/wiki/JBossWithJSFCDDL, about using JBoss 4.2.x built-in JSF 1.2 support, the MyFaces jars should not be included in my war.
But when they are excluded from the WEB-INF/lib in the war file, I get the following error:ERROR [[/richfaces-test]] Error configuring application listener of class org.apache.myfaces.webapp.Startup ServletContextListener java.lang.ClassNotFoundException: org.apache.myfaces.webapp.StartupServletContextListener
Any ideas? -
2. Re: Deployment Exception
ipazmino Sep 9, 2008 5:35 PM (in response to ipazmino)In the other, if this jars are included the following errors are shown:
INFO [MyfacesConfig] Starting up Tomahawk on the RI-JSF-Implementation. INFO [MyfacesConfig] Starting up Tomahawk on the MyFaces-JSF-Implementation ERROR [MyfacesConfig] Both MyFaces and the RI are on your classpath. Please make sure to use only one of the two JSF-implementations.
which leads to the following error:INFO [FacesConfigurator] Serialization provider : class org.apache.myfaces.shared_impl.util.serial.DefaultSerialFactory INFO [AbstractFacesInitializer] ServletContext 'D:\java\jboss-4.2.3.GA\server\testingField\.\tmp\deploy\tmp31897richfaces-test-exp.war\' initialized. ERROR [[/richfaces-test]] Exception sending context initialized event to listener instance of class com.sun.faces.config.ConfigureListener com.sun.faces.config.ConfigurationException: CONFIGURATION FAILED! org.ajax4jsf.application.DebugLifecycleFactory
To avoid this, according to http://wiki.jboss.org/wiki/JBoss5AndMyFaces, the following context param should be added to the web.xml<context-param> <param-name>org.jboss.jbossfaces.WAR_BUNDLES_JSF_IMPL</param-name> <param-value>true</param-value> </context-param>
but then, the same error is presented16:32:59,343 INFO [MyfacesConfig] Starting up Tomahawk on the RI-JSF-Implementation. 16:32:59,343 INFO [MyfacesConfig] Starting up Tomahawk on the MyFaces-JSF-Implementation 16:32:59,343 ERROR [MyfacesConfig] Both MyFaces and the RI are on your classpath. Please make sure to use only one of th e two JSF-implementations. 16:32:59,390 INFO [FacesConfigurator] Reading standard config META-INF/standard-faces-config.xml 16:32:59,546 INFO [FacesConfigurator] Reading config : jar:file:/D:/java/jboss-4.2.3.GA/server/testingField/tmp/deploy/ tmp36083richfaces-test-exp.war/WEB-INF/lib/richfaces-impl-3.2.1.GA.jar!/META-INF/faces-config.xml 16:32:59,546 INFO [FacesConfigurator] Reading config : jar:file:/D:/java/jboss-4.2.3.GA/server/testingField/tmp/deploy/ tmp36083richfaces-test-exp.war/WEB-INF/lib/richfaces-ui-3.2.1.GA.jar!/META-INF/faces-config.xml 16:32:59,562 INFO [FacesConfigurator] Reading config /WEB-INF/faces-config.xml 16:32:59,781 INFO [FacesConfigurator] Starting up MyFaces-package : myfaces-api in version : 1.2.4 from path : file:/D: /java/jboss-4.2.3.GA/server/testingField/tmp/deploy/tmp36083richfaces-test-exp.war/WEB-INF/lib/myfaces-api-1.2.4.jar 16:32:59,781 INFO [FacesConfigurator] Starting up MyFaces-package : myfaces-impl in version : 1.2.4 from path : file:/D :/java/jboss-4.2.3.GA/server/testingField/tmp/deploy/tmp36083richfaces-test-exp.war/WEB-INF/lib/myfaces-impl-1.2.4.jar 16:32:59,781 INFO [FacesConfigurator] MyFaces-package : tomahawk-sandbox15 not found. 16:32:59,781 INFO [FacesConfigurator] MyFaces-package : tomahawk-sandbox not found. 16:32:59,781 INFO [FacesConfigurator] MyFaces-package : tomahawk not found. 16:32:59,828 WARN [LocaleUtils] Locale name in faces-config.xml null or empty, setting locale to default locale : en_US 16:33:01,156 INFO [FacesConfigurator] Serialization provider : class org.apache.myfaces.shared_impl.util.serial.Default SerialFactory 16:33:01,171 INFO [AbstractFacesInitializer] ServletContext 'D:\java\jboss-4.2.3.GA\server\testingField\.\tmp\deploy\tm p36083richfaces-test-exp.war\' initialized. 16:33:02,187 ERROR [[/richfaces-test]] Exception sending context initialized event to listener instance of class com.sun .faces.config.ConfigureListener com.sun.faces.config.ConfigurationException: CONFIGURATION FAILED! org.ajax4jsf.application.DebugLifecycleFactory at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:212) at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:195) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3856)