| Author |
Error Deploying JSF application in JBOSS
|
srikanthre reddy
Greenhorn
Joined: Sep 19, 2009
Posts: 1
|
|
hi,
Please find the below exception when am trying to deploy an JSF application in Jboss server
19:30:33,975 ERROR [[/CallGapRESTClient]] Exception sending context initialized event to listener instance of class org.jboss.web.jsf.integration.config.JBossJSFConfigureListener
com.sun.faces.config.ConfigurationException: CONFIGURATION FAILED! com.sun.faces.lifecycle.LifecycleFactoryImpl cannot be cast to javax.faces.lifecycle.LifecycleFactory
at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:213)
at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:196)
at org.jboss.web.jsf.integration.config.JBossJSFConfigureListener.contextInitialized(JBossJSFConfigureListener.java:75)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3910)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4393)
at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:312)
at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:144)
at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:461)
at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)
at org.jboss.web.deployers.WebModule.start(WebModule.java:97)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
|
 |
Tim Holloway
Saloon Keeper
Joined: Jun 25, 2001
Posts: 14456
|
|
I've seen that before, but I don't remember the details. Are you including the JSF-IMPL jar in your WAR? If so, remove it. It's conflicting with the one in JBOSS.
The builtin JBOSS JSP implementation is the Sun RI. If you need a different one (for example, MyFaces), there's stuff in the web.xml file you'll have to configure.
|
Customer surveys are for companies who didn't pay proper attention to begin with.
|
 |
Rahul Mishra
Ranch Hand
Joined: Jan 22, 2006
Posts: 211
|
|
Jboss comes with its own verion of JSF implementation...are you trying to use another JSF implmentation by including another JSF implementation in your WAR?
I have seen this error on Jboss 4.2.2.
Also check in your Web.xml that you have configured the listener correctly..
|
OCMJEA/SCEA, SCDJWS, SCBCD 1.3, SCJP 1.4
My SCEA experience:http://javalogue.blogspot.com/
|
 |
Dima Koles
Greenhorn
Joined: Jun 13, 2010
Posts: 2
|
|
Even you don't include jsf libruaries from WEB-INF/lib in classpath they are deployed automatically according to spec
Physically deletion jsf libs from WEB-INF/lib directory works for me
|
 |
 |
|
|
subject: Error Deploying JSF application in JBOSS
|
|
|