Erro Jsf

4 respostas
maurenginaldo

Oi pessoal,

estou com um problema com Jsf, quando vou rodar minha aplicação está dando erro. Estou usando:

Tomcat 6
SUN-RI 1.2_07
RichFaces 3.1.3

O erro é:

SEVERE: Exception sending context initialized event to listener instance of class com.sun.faces.config.ConfigureListener
com.sun.faces.config.ConfigurationException: CONFIGURATION FAILED! null
...

Segue meu web.xml

<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xmlns="http://java.sun.com/xml/ns/javaee"
	xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
	xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
	id="WebApp_ID" version="2.5">
	<display-name>Sistemas</display-name>

     <context-param>
        <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
        <param-value>client</param-value>
    </context-param>
    <context-param>
        <param-name>com.sun.faces.validateXml</param-name>
        <param-value>true</param-value>
    </context-param>
    <context-param>
        <param-name>com.sun.faces.verifyObjects</param-name>
        <param-value>false</param-value>
    </context-param>

    <!-- RichFaces -->
    <context-param>
        <param-name>org.richfaces.SKIN</param-name>
        <param-value>blueSky</param-value>
    </context-param>
    <!-- RichFaces Filter -->
    <filter> 
        <display-name>RichFaces Filter</display-name> 
        <filter-name>richfaces</filter-name> 
        <filter-class>org.ajax4jsf.Filter</filter-class> 
    </filter>
    <!-- RichFaces Mapping --> 
    <filter-mapping> 
        <filter-name>richfaces</filter-name> 
        <servlet-name>Faces Servlet</servlet-name>
        <dispatcher>REQUEST</dispatcher>
        <dispatcher>FORWARD</dispatcher>
        <dispatcher>INCLUDE</dispatcher>
    </filter-mapping>
    <!-- RichFaces Listener -->
    <listener>
        <listener-class>com.sun.faces.config.ConfigureListener</listener-class>
    </listener>

    <!-- Faces Servlet -->
	<servlet>
		<servlet-name>Faces Servlet</servlet-name>
		<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
		<load-on-startup>1</load-on-startup>
	</servlet>
	
    <!-- Faces Servlet Mapping -->
	<servlet-mapping>
		<servlet-name>Faces Servlet</servlet-name>
		<url-pattern>*.jsf</url-pattern>
	</servlet-mapping>

	<error-page>
		<error-code>500</error-code>
		<location>/erro.jsp</location>
	</error-page>

	<error-page>
		<error-code>404</error-code>
		<location>/erro.jsp</location>
	</error-page>

	<welcome-file-list>
		<welcome-file>index.html</welcome-file>
		<welcome-file>index.htm</welcome-file>
		<welcome-file>index.jsp</welcome-file>
	</welcome-file-list>

	<session-config>
		<session-timeout>30</session-timeout>
	</session-config>

</web-app>

Obrigado.

4 Respostas

Leozin



com.sun.faces.config.ConfigureListener

onde que você achou essa linha? onde que disse que é Listener do RichFaces?

Ps.: remova essa linha

maurenginaldo

Eu peguei essa configuração no site que contém a documentação do richfaces.

http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone/docs/devguide/en/html/GettingStarted.html

Porém já testei removendo a linha e da o mesmo erro.

Leozin

que estranho…

já tentou no Jboss?

maurenginaldo

Nossa cara nem acredito resolvi,

Estou desenvolvendo com SVN e dentre tantas mudanças no web.xml (estou migrando do MyFaces para o SUN-RI), apagando e criando ele de novo, o meu web.xml estava com a versão deleted (como se estivesse apagado).

Apaguei e criei ele de novo e deu certo!!!

Valeu pela força.

Criado 11 de janeiro de 2008
Ultima resposta 11 de jan. de 2008
Respostas 4
Participantes 2