-
1. Re: Problem with deploy web application with JSF 1.2 to JBos
imyf_liang Dec 13, 2007 8:41 PM (in response to davesil)I have the same problem.
Maybe the different between the JBoss implemention and Sun implemention. -
2. Re: Problem with deploy web application with JSF 1.2 to JBos
pjmorce Jan 7, 2008 6:19 AM (in response to davesil)I have the same problem.
I have a webapplication which use JSF. Deploying this application to tomcat 6.0 works fine.
Deploying the same application to JBoss4.2.2 returns the error:
...
12:11:11,171 ERROR [[/faces-tutorial2]] Exception sending context initialized event to listener instance of class org.jboss.web.jsf.integration.config.JBossJSFConfigureListener
java.lang.ClassCastException: com.sun.faces.config.WebConfiguration
at com.sun.faces.config.WebConfiguration.getInstance(WebConfiguration.java:135)
at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:228)
at org.jboss.web.jsf.integration.config.JBossJSFConfigureListener.contextInitialized(JBossJSFConfigureListener.java:69)
...
any idea? -
3. Re: Problem with deploy web application with JSF 1.2 to JBos
mars1412 Feb 18, 2008 8:29 AM (in response to davesil)in my case, I think the problem is, that the application finds 2 different versions of jsf-impl.jar (which includes com.sun.faces.config.WebConfiguration):
- C:\Programme\jboss-4.2.0.GA\server\default\deploy\jboss-web.deployer\jsf-libs
- C:\Programme\jboss-4.2.0.GA\server\default\deploy\twentyfouract-ear.ear\twentyfouract.war\WEB-INF\lib
I removed the jsf-impl.jar from my .war and now it works
see also: http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4130103#4130103
- C:\Programme\jboss-4.2.0.GA\server\default\deploy\jboss-web.deployer\jsf-libs