Tomcat message with JSF error 403

0

I'm using NetBeans 8.1 to develop an application in JSF, but when I run the facelets template page the message I'm posting in the forum appears.

My tomcat was installed along with netbeans , and I already researched some forums instructed me to change the type of administrator tomcat was using. I already put it as manager-gui , manager-script and nothing solved.

Could anyone help me with this error?

Projectstructure

Fileweb.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>semeru_jsf_maven</display-name> <welcome-file-list> <welcome-file>index.jsp</welcome-file> <!-- <welcome-file>index.html</welcome-file> <welcome-file>index.htm</welcome-file>--> </welcome-file-list> <!-- Duração da sessão --> <session-config> <session-timeout> 30 </session-timeout> </session-config> <!-- Configurações do tema do PrimeFaces --> <context-param> <param-name>primefaces.THEME</param-name> <param-value>sam</param-value> </context-param> <!-- Configurações do JavaServer Faces --> <context-param> <param-name>javax.faces.PROJECT_STAGE</param-name> <param-value>Development</param-value> </context-param> <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> <!-- SOLUÇAO foi tirar o bloqueador de xhtml <security-constraint> <display-name>Bloqueia o browser de acessar arquivos xhtml</display-name> <web-resource-collection> <web-resource-name>xhtml files</web-resource-name> <url-pattern>*.xhtml</url-pattern> </web-resource-collection> <auth-constraint/> </security-constraint> --> <!-- Configurações do PrimeFaces --> <servlet> <servlet-name>Resource Servlet</servlet-name> <servlet-class>org.primefaces.resource.ResourceServlet</servlet-class> </servlet> <servlet-mapping> <servlet-name>Resource Servlet</servlet-name> <url-pattern>/primefaces_resource/ </servlet-mapping> </web-app>

File faces-config.xml :

<?xml version="1.0" encoding="UTF-8"?>
<faces-config 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-facesconfig_2_0.xsd"
              version="2.0">

    <lifecycle>
        <phase-listener>br.com.semeru.util.PhaseListenerSemeru</phase-listener>
    </lifecycle>

</faces-config>
    
asked by anonymous 15.01.2016 / 17:04

0 answers