File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSF and the fly likes Error Deploying JSF application in JBOSS Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » JSF
Reply Bookmark "Error Deploying JSF application in JBOSS" Watch "Error Deploying JSF application in JBOSS" New topic
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
    
    7

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

 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Error Deploying JSF application in JBOSS
 
Similar Threads
upgrading JBOSS 5 CR1 with JSF 2.0.1
Deploying JSF App On JBoss
JBoss 5.0.1 + Spring 2.5.6 + JSF 1.2
TypeMismatchNamingException On JBoss.
HTTP 404 error on migrating : JBOSS EAP 5.1 and SEAM 2.2