salve galera !!
então estou com um probleminha aqui com spring annotation…c alguem puder me dar um help !!
java.lang.IllegalStateException: No WebApplicationContext found: no ContextLoaderListener registered?
org.springframework.web.jsf.FacesContextUtils.getRequiredWebApplicationContext(FacesContextUtils.java:83)
org.springframework.web.jsf.DelegatingPhaseListenerMulticaster.getWebApplicationContext(DelegatingPhaseListenerMulticaster.java:123)
org.springframework.web.jsf.DelegatingPhaseListenerMulticaster.getBeanFactory(DelegatingPhaseListenerMulticaster.java:112)
org.springframework.web.jsf.DelegatingPhaseListenerMulticaster.getDelegates(DelegatingPhaseListenerMulticaster.java:98)
net.java.dev.springannotation.jsf.utils.DelegatingPhaseListenerMulticaster.beforePhase(DelegatingPhaseListenerMulticaster.java:29)
com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:192)
com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:90)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)
minha configuração no web.xml
<context-param>
<param-name>contextConfigLocation</param-name> <param-value>classpath*:applicationContext.xml</param-value>
</context-param>
<context-param>
<param-name>contextClass</param-name>
<param-value>net.java.dev.springannotation.web.TOAnnotationXmlWebApplicationContext</param-value>
</context-param>
e o bean que estou tentanto injetar…
import javax.faces.application.FacesMessage;
import javax.faces.component.UIComponent;
import javax.faces.context.FacesContext;
import javax.faces.validator.Validator;
import javax.faces.validator.ValidatorException;
import net.java.dev.springannotation.annotation.DataModel;
import net.sourceforge.sannotations.annotation.Bean;
import net.sourceforge.sannotations.annotation.Scope;
@Bean(name="login", scope = Scope.SESSION)
public class Login implements Validator {
@DataModel
private boolean loginOk;
prlo pouco que entendo acho que minha app não está encontrando meu applicationContext.xml , porem ele esta no src da minha aplica !! vlew
se alguem puder me dar ajudar, help-me !!