JSF/Tomcat não roda no servidor RESOLVIDO

0 respostas
vertuam

Ola All,

Estou começando a estudar JSF tenho a minha aplicação local que estava rodando no glassfish subi para o servidor web que utiliza tomcat e não funcionou, mudei em minha maquina tbm para tomcat e esta funcionando local, mas quando coloco no servidor na web ela não roda.

O que recebo é apenas:

HTTP Status 404 - 

--------------------------------------------------------------------------------

type Status report

message 

description The requested resource () is not available.


--------------------------------------------------------------------------------

Apache Tomcat/6.0.20

Segue o meu web.xml

<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
    <servlet>
        <servlet-name>Faces Servlet</servlet-name>
        <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
        <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet-mapping>
        <servlet-name>Faces Servlet</servlet-name>
        <url-pattern>/faces/*</url-pattern>
    </servlet-mapping>
    <session-config>
        <session-timeout>30</session-timeout>
    </session-config>
    <welcome-file-list>
        <welcome-file>faces/index.jsp</welcome-file>
    </welcome-file-list>
    <!-- Configuração do RichFaces -->
    <context-param>
        <param-name>org.richfaces.SKIN</param-name>
        <param-value>blueSky</param-value>
    </context-param>
    <filter>
        <display-name>RichFaces Filter</display-name>
        <filter-name>richfaces</filter-name>
        <filter-class>org.ajax4jsf.Filter</filter-class>
    </filter>
    <filter-mapping>
        <filter-name>richfaces</filter-name>
        <servlet-name>Faces Servlet</servlet-name>
        <dispatcher>REQUEST</dispatcher>
        <dispatcher>FORWARD</dispatcher>
        <dispatcher>INCLUDE</dispatcher>
    </filter-mapping>
    <listener>
        <listener-class>com.sun.faces.config.ConfigureListener</listener-class>
    </listener>
    <error-page>
        <error-code>500</error-code>
        <location>/view/error/500erro.jsp</location>
    </error-page>
    <error-page>
        <error-code>404</error-code>
        <location>/view/error/404erro.jsp</location>
    </error-page>
</web-app>

Se alguem tiver alguma ideia, fico grato, por hora vou tentando por aqui.

Abraços

Renato

Criado 11 de janeiro de 2011
Respostas 0
Participantes 1