Bom dia pessoal,
gostaria de saber porque está dando esse eror acima.
<%@taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@taglib uri="http://richfaces.org/rich" prefix="rich"%>
<%@taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<f:view>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<a4j:loadStyle src="/recursos/css/estilo.css"></a4j:loadStyle>
<title>SIGESOP</title>
</head>
<body>
<h:graphicImage value='/recursos/imagem/braslimo.png'
styleClass="imglogo" />
<h:form>
<h:panelGrid columns="2">
<rich:spacer height="10" />
<h:messages infoClass="success" errorClass="error" warnClass="warn" />
<h:outputText value="Usuário:" styleClass="login" />
<h:inputText id="usuario" value="#{usuariosBean.usuarios.usuario}"
size="20" styleClass="login1" />
<h:outputText value="Password:" styleClass="login2" />
<h:inputSecret value="#{usuariosBean.usuarios.senha}" size="20"
styleClass="login3" />
</h:panelGrid>
<rich:spacer height="20" />
<h:commandButton value="OK" action="#{usuariosBean.login}"
styleClass="login4">
</h:commandButton>
</h:form>
</body>
</html>
</f:view>
mb
public class UsuariosBean {
private Usuarios usuario;
private Usuarios usuarioLogin;
private UsuariosService usuariosService = new UsuariosService();
private SistemasService sistemasService = new SistemasService();
private List<Usuarios> usuarios;
private Sistemas sistemaSelecionado;
private Long codigoSistema;
private Boolean autenticado = false;
public String login() {
try {
usuarioLogin = usuariosService.login(usuario);
this.autenticado = true; // torna o usuario autenticado, ou seja, se ele n estiver autenticado, ele nunca vai entrar no sistema.
Mensagem.addMsgSucesso("Bem vindo, "+usuario.getUsuario()+".");
//usuario = null;
//return null;
//return "principal";
//return "listarSistemasUsuario";
//return usuario.getUsuario();
} catch (NegocioException e) {
Mensagem.addMsgErro(e.getMessage());
//Mensagem.addMsgSucesso("TESTE DE MENSAGEM.");
return null;
}
//finally {Mensagem.addMsgSucesso("FAZ DE QUALQUER JEITO");}
return "telaSistemas";
}
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>Limoeiro</display-name>
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
<context-param>
<param-name>facelets.REFRESH_PERIOD</param-name>
<param-value>2</param-value>
</context-param>
<context-param>
<param-name>facelets.DEVELOPMENT</param-name>
<param-value>true</param-value>
</context-param>
<context-param>
<param-name>javax.faces.STATE_SAVING_METHOD</param-name>
<param-value>server</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>
<context-param>
<param-name>org.ajax4jsf.SKIN</param-name>
<param-value>blueSky</param-value>
</context-param>
<context-param>
<param-name>org.ajax4jsf.COMPRESS_SCRIPT</param-name>
<param-value>true</param-value>
</context-param>
<context-param>
<param-name>org.ajax4jsf.COMPRESS_STYLE</param-name>
<param-value>true</param-value>
</context-param>
<context-param>
<param-name>org.ajax4jsf.xmlparser.ORDER</param-name>
<param-value>NEKO, TIDY</param-value>
</context-param>
<context-param>
<param-name>org.richfaces.CONTROL_SKINNING</param-name>
<param-value>enable</param-value>
</context-param>
<context-param>
<param-name>org.ajax4jsf.handleViewExpiredOnClient</param-name>
<param-value>true</param-value>
</context-param>
<context-param>
<param-name>org.richfaces.LoadStyleStrategy</param-name>
<param-value>ALL</param-value>
</context-param>
<context-param>
<param-name>org.richfaces.LoadScriptStrategy</param-name>
<param-value>ALL</param-value>
</context-param>
<!-- CONFIGURAÇÃO TOMAHAWK -->
<filter>
<filter-name>MyFacesExtensionsFilter</filter-name>
<filter-class>org.apache.myfaces.webapp.filter.ExtensionsFilter</filter-class>
<init-param>
<param-name>uploadMaxFileSize</param-name>
<param-value>20m</param-value>
</init-param>
</filter>
<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>
<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>*.jsf</url-pattern>
</servlet-mapping>
</web-app>