복붙노트

[SPRING] javax.faces.el.VariableResolver SpringBeanFacesELResolver를 사용하는 클래스 캐스트 예외

SPRING

javax.faces.el.VariableResolver SpringBeanFacesELResolver를 사용하는 클래스 캐스트 예외

JSF2 및 Spring 3.0.5로 업그레이드하려고하는데 Tomcat에 배포 할 때 다음 오류가 발생합니다.

어떤 도움을 주셔서 감사합니다.

SEVERE: Exception sending context initialized event to listener instance of class com.sun.faces.config.ConfigureListener
java.lang.RuntimeException: com.sun.faces.config.ConfigurationException: CONFIGURATION FAILED! org.springframework.web.jsf.el.SpringBeanFacesELResolver cannot be cast to javax.faces.el.VariableResolver
    at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:292)
    at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4723)
    at org.apache.catalina.core.StandardContext$1.call(StandardContext.java:5226)
    at org.apache.catalina.core.StandardContext$1.call(StandardContext.java:5221)
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
    at java.util.concurrent.FutureTask.run(FutureTask.java:138)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
    at java.lang.Thread.run(Thread.java:619)
Caused by: com.sun.faces.config.ConfigurationException: CONFIGURATION FAILED! org.springframework.web.jsf.el.SpringBeanFacesELResolver cannot be cast to javax.faces.el.VariableResolver
    at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:375)
    at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:225)
    ... 8 more
Caused by: java.lang.ClassCastException: org.springframework.web.jsf.el.SpringBeanFacesELResolver cannot be cast to javax.faces.el.VariableResolver
    at com.sun.faces.config.processor.ApplicationConfigProcessor.addVariableResolver(ApplicationConfigProcessor.java:652)
    at com.sun.faces.config.processor.ApplicationConfigProcessor.process(ApplicationConfigProcessor.java:305)
    at com.sun.faces.config.processor.AbstractConfigProcessor.invokeNext(AbstractConfigProcessor.java:114)
    at com.sun.faces.config.processor.LifecycleConfigProcessor.process(LifecycleConfigProcessor.java:116)
    at com.sun.faces.config.processor.AbstractConfigProcessor.invokeNext(AbstractConfigProcessor.java:114)
    at com.sun.faces.config.processor.FactoryConfigProcessor.process(FactoryConfigProcessor.java:222)
    at com.sun.faces.config.ConfigManager.initialize(ConfigM

anager.java:360)

해결법

  1. ==============================

    1.너무 많은 정보를 제공하지는 않지만 구성에 잘못된 것이 있어야합니다. 팁 :

    너무 많은 정보를 제공하지는 않지만 구성에 잘못된 것이 있어야합니다. 팁 :

    여기와 여기에서 몇 가지 예를 찾을 수 있습니다. 문제를 해결할 수 없으면 일부 구성 파일을 게시하십시오. (appcontext.xml, web.xml, faces-config.xml)

  2. from https://stackoverflow.com/questions/6457635/javax-faces-el-variableresolver-classcast-exception-with-springbeanfaceselresolv by cc-by-sa and MIT license