Bom dia galera, ao clicar no commandButton da minha aplicação para chmar um método no Java causa esta excpetion.
HTTP Status 500 -
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
javax.servlet.ServletException: Error calling action method of component with id form:_idJsp8
javax.faces.webapp.FacesServlet.service(FacesServlet.java:154)
org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:127)
org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:277)
org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:147)
root cause
javax.faces.FacesException: Error calling action method of component with id form:_idJsp8
org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:72)
javax.faces.component.UICommand.broadcast(UICommand.java:109)
org.ajax4jsf.framework.ajax.AjaxViewRoot.processEvents(AjaxViewRoot.java:180)
org.ajax4jsf.framework.ajax.AjaxViewRoot.broadcastEvents(AjaxViewRoot.java:158)
org.ajax4jsf.framework.ajax.AjaxViewRoot.processApplication(AjaxViewRoot.java:346)
org.apache.myfaces.lifecycle.InvokeApplicationExecutor.execute(InvokeApplicationExecutor.java:32)
org.apache.myfaces.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:95)
org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:70)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:139)
org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:127)
org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:277)
org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:147)
root cause
javax.faces.el.EvaluationException: Exception while invoking expression #{seguradora.buscaDados}
org.apache.myfaces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:168)
org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:61)
javax.faces.component.UICommand.broadcast(UICommand.java:109)
org.ajax4jsf.framework.ajax.AjaxViewRoot.processEvents(AjaxViewRoot.java:180)
org.ajax4jsf.framework.ajax.AjaxViewRoot.broadcastEvents(AjaxViewRoot.java:158)
org.ajax4jsf.framework.ajax.AjaxViewRoot.processApplication(AjaxViewRoot.java:346)
org.apache.myfaces.lifecycle.InvokeApplicationExecutor.execute(InvokeApplicationExecutor.java:32)
org.apache.myfaces.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:95)
org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:70)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:139)
org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:127)
org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:277)
org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:147)
root cause
java.lang.NoSuchMethodException: br.com.hibernate.model.TsSeguradora.buscaDados()
java.lang.Class.getMethod(Unknown Source)
org.apache.myfaces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:121)
org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:61)
javax.faces.component.UICommand.broadcast(UICommand.java:109)
org.ajax4jsf.framework.ajax.AjaxViewRoot.processEvents(AjaxViewRoot.java:180)
org.ajax4jsf.framework.ajax.AjaxViewRoot.broadcastEvents(AjaxViewRoot.java:158)
org.ajax4jsf.framework.ajax.AjaxViewRoot.processApplication(AjaxViewRoot.java:346)
org.apache.myfaces.lifecycle.InvokeApplicationExecutor.execute(InvokeApplicationExecutor.java:32)
org.apache.myfaces.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:95)
org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:70)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:139)
org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:127)
org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:277)
org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:147)
Aqui está a minha JSP:
seguradora.jsp
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="https://ajax4jsf.dev.java.net/ajax" prefix="a4j"%>
<%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%>
<%@ taglib uri="http://myfaces.apache.org/sandbox" prefix="s"%>
<%@ page import="br.com.monisat.util.JsfHelper"%>
<%@ page import="br.com.monisat.seguradora.Seguradora" %>
<html>
<head>
<%@include file="../home/importar.jsp"%>
</head>
<body>
<f:view>
<h:form id="form">
<div id="toolbar-home">
<div class="migalha">
<b>Consulta Seguradora</b>
</div>
<div class="clear"></div>
</div>
<f:verbatim>
<br>
<br>
<br>
<h1>Dados da Pesquisa</h1>
<br>
</f:verbatim>
<t:div>
<!-- Formulário -->
<h:panelGrid columns="2" id="campos">
<h:outputLabel value="Placa"/>
<t:inputText id="placa" value="#{seguradora.placa}" />
<h:outputLabel value="Chassis"/>
<t:inputText id="chassis" value="#{seguradora.chassis}"/>
<h:outputLabel value="Nome do Cliente"/>
<t:inputText id="nomeCliente" value="#{seguradora.nomeCliente}"/>
<h:outputText value="CPF/CNPJ"/>
<t:inputText id="cpfCnpj" value="#{seguradora.cpfCnpj}"/>
<h:outputLabel value="Corretora"/>
<t:inputText id="nomeSeguradora" value="#{seguradora.nome}"/>
</h:panelGrid>
<f:verbatim><br></f:verbatim>
<h:commandButton action="#{seguradora.buscaDados}" onclick="if( ! validar() ) return false;"
value="Consulta" styleClass="garbo-button border"/>
</t:div>
</h:form>
</f:view>
<script type="text/javascript">
function validar(){
var list = new Lista( "form" );
list.add("placa", "Placa");
list.add("chassis", "Chassis");
list.add("nomeCliente", "Cliente");
list.add("cpfCnpj", "CPF/CNPJ")
list.add("nomeSeguradora", "Corretora");
return valida(list);
}''
</script>
</body>
</html>
Esta aqui eh o meu Bean
Seguradora.java
package br.com.monisat.seguradora;
import java.util.Hashtable;
import br.com.hibernate.dao.TsTopConfigDao;
import br.com.hibernate.dao.TsVeiculoDao;
import br.com.hibernate.model.TsSeguradora;
import br.com.monisat.util.SendEmail;
public class Seguradora extends SeguradoraForm {
private TsSeguradora seguradora = null;
private TsSeguradora segAux = new TsSeguradora();
public TsSeguradora getSeguradora() {
return seguradora;
}
public void setSeguradora(TsSeguradora seguradora) {
this.seguradora = seguradora;
}
public String buscaDados() {
String retorno = "";
segAux.setPlaca(getPlaca());
segAux.setChassis(getChassis());
segAux.setCpfCnpj(getCpfCnpj());
segAux.setNomeCliente(getNomeCliente());
segAux.setNome(getNomeSeguradora());
seguradora = new TsVeiculoDao().dadosSeguradora(segAux);
if (seguradora != null) {
retorno = chamaTela(seguradora);
} else {
retorno = enviaEmail(segAux.getPlaca(), segAux.getChassis(), segAux.getNome(),
segAux.getNomeCliente(), segAux.getCpfCnpj());
}
return retorno;
}
public String chamaTela(TsSeguradora seguradora) {
return "../seguradoraRetorno";
}
public String abrirConsulta() {
return "../seguradora";
}
}
O erro ocorre na chamada do método buscaDados().
Alguém pode me ajudar? Desde já agradeço!
Att.
Diego Silva
Ele está buscando o método em outra classe, não no seu ManagedBean.
veja o pacote:
br.com.hibernate.model.TsSeguradora.buscaDados()
Como está configurado o nome do seu ManagedBean?
Valeu Digão…
Cara… q estranho, não sei te dizer pq está buscando em outro local, nem tenho este metodo dentro do
br.com.hibernate.model.TsSeguradora
Este método fica dentro do Seguradora.
Segue abaixo a classe TsSeguradora
package br.com.hibernate.model;
import java.io.Serializable;
import java.util.Date;
import javax.persistence.Entity;
import javax.persistence.Id;
@Entity
public class TsSeguradora implements Serializable{
private static final long serialVersionUID = 1L;
@Id
private Integer idSeguradora;
private String nome;
private String loginWeb;
private String senhaWeb;
private String placa;
private String nomeCliente;
private String chassis;
private String cor;
private String modelo;
private String ano;
private Date dataAtivacao;
private String situacao;
private String cpfCnpj;
public Integer getIdSeguradora() {
return idSeguradora;
}
public void setIdSeguradora(Integer idSeguradora) {
this.idSeguradora = idSeguradora;
}
public String getNome() {
return nome;
}
public void setNome(String nome) {
this.nome = nome;
}
public String getLoginWeb() {
return loginWeb;
}
public void setLoginWeb(String loginWeb) {
this.loginWeb = loginWeb;
}
public String getSenhaWeb() {
return senhaWeb;
}
public void setSenhaWeb(String senhaWeb) {
this.senhaWeb = senhaWeb;
}
public String getPlaca() {
return placa;
}
public void setPlaca(String placa) {
this.placa = placa;
}
public String getNomeCliente() {
return nomeCliente;
}
public void setNomeCliente(String nomeCliente) {
this.nomeCliente = nomeCliente;
}
public String getChassis() {
return chassis;
}
public void setChassis(String chassis) {
this.chassis = chassis;
}
public String getCor() {
return cor;
}
public void setCor(String cor) {
this.cor = cor;
}
public String getModelo() {
return modelo;
}
public void setModelo(String modelo) {
this.modelo = modelo;
}
public String getAno() {
return ano;
}
public void setAno(String ano) {
this.ano = ano;
}
public Date getDataAtivacao() {
return dataAtivacao;
}
public void setDataAtivacao(Date dataAtivacao) {
this.dataAtivacao = dataAtivacao;
}
public String getSituacao() {
return situacao;
}
public void setSituacao(String situacao) {
this.situacao = situacao;
}
public String getCpfCnpj() {
return cpfCnpj;
}
public void setCpfCnpj(String cpfCnpj) {
this.cpfCnpj = cpfCnpj;
}
}
O q pode estar acontecendo para ter mudado?
Abraço!
O fato do método não existir nessa classe é justamente a causa do problema.
Me mostre a configuração do seu managed bean, que creio que está em xml.
Segue o faces-config.xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE faces-config PUBLIC
"-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN"
"http://java.sun.com/dtd/web-facesconfig_1_1.dtd">
<faces-config>
<application>
<message-bundle>message</message-bundle>
<locale-config>
<default-locale>pt_BR</default-locale>
</locale-config>
</application>
<converter>
<display-name>Conversor Hora HH:mm</display-name>
<converter-id>converteHora</converter-id>
<converter-class>br.com.viasoft.converters.ConverteHora</converter-class>
</converter>
<converter>
<display-name>Conversor Hora HH:mm</display-name>
<converter-id>converteDataHora</converter-id>
<converter-class>br.com.viasoft.converters.ConverteDataHora</converter-class>
</converter>
<managed-bean>
<managed-bean-name>login</managed-bean-name>
<managed-bean-class>br.com.monisat.login.Login</managed-bean-class>
<managed-bean-scope>request</managed-bean-scope>
</managed-bean>
<managed-bean>
<managed-bean-name>logout</managed-bean-name>
<managed-bean-class>br.com.monisat.login.Logout</managed-bean-class>
<managed-bean-scope>request</managed-bean-scope>
</managed-bean>
<managed-bean>
<managed-bean-name>logon</managed-bean-name>
<managed-bean-class>br.com.monisat.seguradora.login.Logon</managed-bean-class>
<managed-bean-scope>request</managed-bean-scope>
</managed-bean>
<managed-bean>
<managed-bean-name>logoff</managed-bean-name>
<managed-bean-class>br.com.monisat.seguradora.login.Logoff</managed-bean-class>
<managed-bean-scope>request</managed-bean-scope>
</managed-bean>
<managed-bean>
<managed-bean-name>home</managed-bean-name>
<managed-bean-class>br.com.monisat.home.Home</managed-bean-class>
<managed-bean-scope>session</managed-bean-scope>
</managed-bean>
<managed-bean>
<managed-bean-name>motorista</managed-bean-name>
<managed-bean-class>br.com.monisat.cadastros.Motorista</managed-bean-class>
<managed-bean-scope>request</managed-bean-scope>
</managed-bean>
<managed-bean>
<managed-bean-name>veiculo</managed-bean-name>
<managed-bean-class>br.com.monisat.cadastros.Veiculo</managed-bean-class>
<managed-bean-scope>request</managed-bean-scope>
</managed-bean>
<managed-bean>
<managed-bean-name>semiReboque</managed-bean-name>
<managed-bean-class>br.com.monisat.cadastros.SemiReboque</managed-bean-class>
<managed-bean-scope>request</managed-bean-scope>
</managed-bean>
<managed-bean>
<managed-bean-name>telefone</managed-bean-name>
<managed-bean-class>br.com.monisat.cadastros.Telefone</managed-bean-class>
<managed-bean-scope>request</managed-bean-scope>
</managed-bean>
<managed-bean>
<managed-bean-name>vinculaSemiRe</managed-bean-name>
<managed-bean-class>br.com.monisat.cadastros.VinculaSemiRe</managed-bean-class>
<managed-bean-scope>request</managed-bean-scope>
</managed-bean>
<managed-bean>
<managed-bean-name>gerenciamento</managed-bean-name>
<managed-bean-class>br.com.monisat.gerenciamento.Gerenciamento</managed-bean-class>
<managed-bean-scope>session</managed-bean-scope>
</managed-bean>
<managed-bean>
<managed-bean-name>rota</managed-bean-name>
<managed-bean-class>br.com.monisat.gerenciamento.Rota</managed-bean-class>
<managed-bean-scope>request</managed-bean-scope>
</managed-bean>
<managed-bean>
<managed-bean-name>rotaFinaliza</managed-bean-name>
<managed-bean-class>br.com.monisat.gerenciamento.RotaFinaliza</managed-bean-class>
<managed-bean-scope>session</managed-bean-scope>
</managed-bean>
<managed-bean>
<managed-bean-name>entregas</managed-bean-name>
<managed-bean-class>br.com.monisat.gerenciamento.Entregas</managed-bean-class>
<managed-bean-scope>session</managed-bean-scope>
</managed-bean>
<managed-bean>
<managed-bean-name>finalizacao</managed-bean-name>
<managed-bean-class>br.com.monisat.gerenciamento.Finalizacao</managed-bean-class>
<managed-bean-scope>request</managed-bean-scope>
</managed-bean>
<managed-bean>
<managed-bean-name>detalhes</managed-bean-name>
<managed-bean-class>br.com.monisat.gerenciamento.Detalhes</managed-bean-class>
<managed-bean-scope>request</managed-bean-scope>
</managed-bean>
<managed-bean>
<managed-bean-name>tipo</managed-bean-name>
<managed-bean-class>br.com.monisat.gerenciamento.Tipo</managed-bean-class>
<managed-bean-scope>request</managed-bean-scope>
</managed-bean>
<managed-bean>
<managed-bean-name>localizaplaca</managed-bean-name>
<managed-bean-class>br.com.monisat.gerenciamento.LocalizaPlaca</managed-bean-class>
<managed-bean-scope>request</managed-bean-scope>
</managed-bean>
<managed-bean>
<managed-bean-name>grid</managed-bean-name>
<managed-bean-class>br.com.monisat.grid.Grid</managed-bean-class>
<managed-bean-scope>session</managed-bean-scope>
</managed-bean>
<managed-bean>
<managed-bean-name>rotaInf</managed-bean-name>
<managed-bean-class>br.com.monisat.gerenciamento.RotaInf</managed-bean-class>
<managed-bean-scope>session</managed-bean-scope>
</managed-bean>
<managed-bean>
<managed-bean-name>mapa</managed-bean-name>
<managed-bean-class>br.com.monisat.grid.Mapa</managed-bean-class>
<managed-bean-scope>request</managed-bean-scope>
</managed-bean>
<managed-bean>
<managed-bean-name>eventoDesc</managed-bean-name>
<managed-bean-class>br.com.monisat.gerenciamento.EventoDesc</managed-bean-class>
<managed-bean-scope>session</managed-bean-scope>
</managed-bean>
<managed-bean>
<managed-bean-name>aceite</managed-bean-name>
<managed-bean-class>br.com.monisat.gerenciamento.Aceite</managed-bean-class>
<managed-bean-scope>request</managed-bean-scope>
</managed-bean>
<managed-bean>
<managed-bean-name>infoAdicional</managed-bean-name>
<managed-bean-class>br.com.monisat.gerenciamento.InfoAdicional</managed-bean-class>
<managed-bean-scope>session</managed-bean-scope>
</managed-bean>
<managed-bean>
<managed-bean-name>form</managed-bean-name>
<managed-bean-class>br.com.monisat.graficos.Form</managed-bean-class>
<managed-bean-scope>request</managed-bean-scope>
</managed-bean>
<managed-bean>
<managed-bean-name>report</managed-bean-name>
<managed-bean-class>br.com.monisat.graficos.Report</managed-bean-class>
<managed-bean-scope>request</managed-bean-scope>
</managed-bean>
<managed-bean>
<managed-bean-name>seguradora</managed-bean-name>
<managed-bean-class>br.com.monisat.seguradora.Seguradora</managed-bean-class>
<managed-bean-scope>request</managed-bean-scope>
</managed-bean>
<navigation-rule>
<display-name>*</display-name>
<from-view-id>*</from-view-id>
<navigation-case>
<from-outcome>login</from-outcome>
<to-view-id>/login/login.jsp</to-view-id>
<redirect/>
</navigation-case>
<navigation-case>
<from-outcome>logout</from-outcome>
<to-view-id>/login/logout.jsp</to-view-id>
<redirect/>
</navigation-case>
<navigation-case>
<from-outcome>logon</from-outcome>
<to-view-id>/seguradora/login/logon.jsp</to-view-id>
<redirect/>
</navigation-case>
<navigation-case>
<from-outcome>logoff</from-outcome>
<to-view-id>/seguradora/login/logoff.jsp</to-view-id>
<redirect/>
</navigation-case>
<navigation-case>
<from-outcome>default</from-outcome>
<to-view-id>/seguradora/default.jsp</to-view-id>
<redirect/>
</navigation-case>
<navigation-case>
<from-outcome>home</from-outcome>
<to-view-id>/home/home.jsp</to-view-id>
<redirect/>
</navigation-case>
<navigation-case>
<from-outcome>motorista</from-outcome>
<to-view-id>/cadastros/motorista.jsp</to-view-id>
<redirect/>
</navigation-case>
<navigation-case>
<from-outcome>cadmotorista</from-outcome>
<to-view-id>/cadastros/cadmotorista.jsp</to-view-id>
<redirect/>
</navigation-case>
<navigation-case>
<from-outcome>cadsemireboque</from-outcome>
<to-view-id>/cadastros/cadsemireboque.jsp</to-view-id>
<redirect/>
</navigation-case>
<navigation-case>
<from-outcome>cadveiculo</from-outcome>
<to-view-id>/cadastros/cadveiculo.jsp</to-view-id>
<redirect/>
</navigation-case>
<navigation-case>
<from-outcome>cadastro</from-outcome>
<to-view-id>/cadastros/cadastro.jsp</to-view-id>
<redirect/>
</navigation-case>
<navigation-case>
<from-outcome>veiculo</from-outcome>
<to-view-id>/cadastros/veiculo.jsp</to-view-id>
<redirect/>
</navigation-case>
<navigation-case>
<from-outcome>semiReboque</from-outcome>
<to-view-id>/cadastros/semireboque.jsp</to-view-id>
<redirect/>
</navigation-case>
<navigation-case>
<from-outcome>telefone</from-outcome>
<to-view-id>/cadastros/telefone.jsp</to-view-id>
<redirect/>
</navigation-case>
<navigation-case>
<from-outcome>vinculaSemiRe</from-outcome>
<to-view-id>/cadastros/vinculaSemiRe.jsp</to-view-id>
<redirect/>
</navigation-case>
<navigation-case>
<from-outcome>vinculaSemiRe2</from-outcome>
<to-view-id>/cadastros/vinculaSemiRe2.jsp</to-view-id>
<redirect/>
</navigation-case>
<navigation-case>
<from-outcome>gerenciamento</from-outcome>
<to-view-id>/gerenciamento/gerenciamento.jsp</to-view-id>
<redirect/>
</navigation-case>
<navigation-case>
<from-outcome>eventoDesc</from-outcome>
<to-view-id>/gerenciamento/eventoDesc.jsp</to-view-id>
<redirect/>
</navigation-case>
<navigation-case>
<from-outcome>eventoDescForm</from-outcome>
<to-view-id>/gerenciamento/eventoDescForm.jsp</to-view-id>
<redirect/>
</navigation-case>
<navigation-case>
<from-outcome>infoAdicional</from-outcome>
<to-view-id>/gerenciamento/infoAdicional.jsp</to-view-id>
<redirect/>
</navigation-case>
<navigation-case>
<from-outcome>infoAdicionalForm</from-outcome>
<to-view-id>/gerenciamento/infoAdicionalForm.jsp</to-view-id>
<redirect/>
</navigation-case>
<navigation-case>
<from-outcome>rota</from-outcome>
<to-view-id>/gerenciamento/rota.jsp</to-view-id>
<redirect/>
</navigation-case>
<navigation-case>
<from-outcome>rotaFinaliza</from-outcome>
<to-view-id>/gerenciamento/rotaFinaliza.jsp</to-view-id>
<redirect/>
</navigation-case>
<navigation-case>
<from-outcome>entregas</from-outcome>
<to-view-id>/gerenciamento/entregas.jsp</to-view-id>
<redirect/>
</navigation-case>
<navigation-case>
<from-outcome>finalizacao</from-outcome>
<to-view-id>/gerenciamento/finalizacao.jsp</to-view-id>
<redirect/>
</navigation-case>
<navigation-case>
<from-outcome>detalhes</from-outcome>
<to-view-id>/gerenciamento/detalhes.jsp</to-view-id>
<redirect/>
</navigation-case>
<navigation-case>
<from-outcome>tipo</from-outcome>
<to-view-id>/gerenciamento/tipo.jsp</to-view-id>
<redirect/>
</navigation-case>
<navigation-case>
<from-outcome>grid</from-outcome>
<to-view-id>/grid/grid.jsp</to-view-id>
<redirect/>
</navigation-case>
<navigation-case>
<from-outcome>mapa</from-outcome>
<to-view-id>/grid/mapa.jsp</to-view-id>
<redirect/>
</navigation-case>
<navigation-case>
<from-outcome>rotaInf</from-outcome>
<to-view-id>/gerenciamento/rotaInf.jsp</to-view-id>
<redirect/>
</navigation-case>
<navigation-case>
<from-outcome>menuCad</from-outcome>
<to-view-id>/cadastros/menu.jsp</to-view-id>
<redirect/>
</navigation-case>
<navigation-case>
<from-outcome>menuGeren</from-outcome>
<to-view-id>/gerenciamento/menu.jsp</to-view-id>
<redirect/>
</navigation-case>
<navigation-case>
<from-outcome>localizaplaca</from-outcome>
<to-view-id>/gerenciamento/localizaplaca.jsp</to-view-id>
<redirect/>
</navigation-case>
<navigation-case>
<from-outcome>aceite</from-outcome>
<to-view-id>/gerenciamento/aceite.jsp</to-view-id>
<redirect/>
</navigation-case>
<navigation-case>
<from-outcome>form</from-outcome>
<to-view-id>/grafico/form.jsp</to-view-id>
<redirect/>
</navigation-case>
<navigation-case>
<from-outcome>report</from-outcome>
<to-view-id>/grafico/report.jsp</to-view-id>
<redirect/>
</navigation-case>
<navigation-case>
<from-outcome>reportdetalhe</from-outcome>
<to-view-id>/grafico/reportdetalhe.jsp</to-view-id>
<redirect/>
</navigation-case>
<navigation-case>
<from-outcome>rotaAberta</from-outcome>
<to-view-id>/gerenciamento/rotaAberta.jsp</to-view-id>
<redirect/>
</navigation-case>
<navigation-case>
<from-outcome>planilha</from-outcome>
<to-view-id>/grid/planilha.jsp</to-view-id>
<redirect/>
</navigation-case>
<navigation-case>
<from-outcome>seguradora</from-outcome>
<to-view-id>/seguradora/seguradora.jsp</to-view-id>
<redirect/>
</navigation-case>
<navigation-case>
<from-outcome>seguradoraRetorno</from-outcome>
<to-view-id>/seguradora/seguradoraRetorno.jsp</to-view-id>
<redirect/>
</navigation-case>
<navigation-case>
<from-outcome>erroSeguradora</from-outcome>
<to-view-id>/seguradora/erroSeguradora.jsp</to-view-id>
<redirect/>
</navigation-case>
<navigation-case>
<from-outcome>gridExcel</from-outcome>
<to-view-id>/grid/gridExcel.jsp</to-view-id>
<redirect/>
</navigation-case>
</navigation-rule>
<lifecycle>
<phase-listener>br.com.monisat.phaselistener.Listener</phase-listener>
</lifecycle>
</faces-config>
Meu web.xml
<?xml version="1.0" encoding="ISO-8859-1"?>
<!-- web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:javaee="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/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"-->
<web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
<display-name>monisat</display-name>
<context-param>
<param-name>
net.sf.jsfcomp.chartcreator.USE_CHARTLET
</param-name>
<param-value>true</param-value>
</context-param>
<servlet>
<servlet-name>Chartlet</servlet-name>
<servlet-class>
net.sf.jsfcomp.chartcreator.Chartlet
</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>Chartlet</servlet-name>
<url-pattern>*.chart</url-pattern>
</servlet-mapping>
<context-param>
<param-name>javax.faces.STATE_SAVING_METHOD</param-name>
<param-value>server</param-value>
</context-param>
<context-param>
<param-name>org.apache.myfaces.ALLOW_JAVASCRIPT</param-name>
<param-value>true</param-value>
</context-param>
<context-param>
<param-name>org.apache.myfaces.DETECT_JAVASCRIPT</param-name>
<param-value>false</param-value>
</context-param>
<context-param>
<param-name>org.apache.myfaces.PRETTY_HTML</param-name>
<param-value>true</param-value>
</context-param>
<context-param>
<param-name>org.apache.myfaces.AUTO_SCROLL</param-name>
<param-value>true</param-value>
</context-param>
<context-param>
<param-name>org.apache.myfaces.ADD_RESOURCE_CLASS</param-name>
<param-value>
org.apache.myfaces.renderkit.html.util.DefaultAddResource
</param-value>
</context-param>
<context-param>
<param-name>maxInactiveInterval</param-name>
<param-value>10000</param-value>
</context-param>
<filter>
<display-name>Ajax4jsf Filter</display-name>
<filter-name>ajax4jsf</filter-name>
<filter-class>org.ajax4jsf.Filter</filter-class>
<init-param>
<param-name>enable-cache</param-name>
<param-value>true</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>ajax4jsf</filter-name>
<servlet-name>Faces Servlet</servlet-name>
<dispatcher>REQUEST</dispatcher>
<dispatcher>FORWARD</dispatcher>
<dispatcher>INCLUDE</dispatcher>
</filter-mapping>
<filter>
<filter-name>extensionsFilter</filter-name>
<filter-class>
org.apache.myfaces.component.html.util.ExtensionsFilter
</filter-class>
<init-param>
<param-name>uploadMaxFileSize</param-name>
<param-value>100m</param-value>
</init-param>
<init-param>
<param-name>uploadThresholdSize</param-name>
<param-value>4096k</param-value>
</init-param>
<init-param>
<param-name>uploadRepositoryPath</param-name>
<param-value>/temp</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>extensionsFilter</filter-name>
<url-pattern>*.jsf</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>extensionsFilter</filter-name>
<url-pattern>/faces/*</url-pattern>
</filter-mapping>
<listener>
<listener-class>
org.apache.myfaces.webapp.StartupServletContextListener
</listener-class>
</listener>
<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>
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
<servlet>
<servlet-name>SourceCodeServlet</servlet-name>
<servlet-class>
org.apache.myfaces.shared_tomahawk.util.servlet.SourceCodeServlet
</servlet-class>
</servlet>
<servlet>
<servlet-name>RetornaXml</servlet-name>
<servlet-class>br.com.monisat.util.RetornaXml</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>RetornaXml</servlet-name>
<url-pattern>/retornaxml</url-pattern>
</servlet-mapping>
<session-config>
<session-timeout>30</session-timeout>
</session-config>
</web-app>
Cara, na sua tela você acessa diversos atributos da classe br.com.hibernate.model.TsSeguradora usando a EL #{seguradora}
não sei se está havendo algum conflito, nunca usei o myfaces, mas tente fazer assim:<h:outputLabel value="Placa"/>
<t:inputText id="placa" value="#{seguradora.seguradora.placa}" /> // Alterei sua EL aqui
EDIT: Esqueci de dizer, altere todas suas ELs que acessam os atributos de TsSeguradora da maneira sugerida acima.
Deu outra exception diferente.
HTTP Status 500 -
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
javax.servlet.ServletException: javax.faces.FacesException: Could not retrieve value of component with path : {Component-Path : [Class: org.ajax4jsf.framework.ajax.AjaxViewRoot,ViewId: /seguradora/seguradora.jsp][Class: javax.faces.component.html.HtmlForm,Id: form][Class: org.apache.myfaces.custom.div.Div,Id: _idJsp1][Class: javax.faces.component.html.HtmlPanelGrid,Id: campos][Class: org.apache.myfaces.component.html.ext.HtmlInputText,Id: placa]}
javax.faces.webapp.FacesServlet.service(FacesServlet.java:154)
org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:127)
org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:277)
org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:147)
root cause
javax.faces.FacesException: javax.faces.FacesException: Could not retrieve value of component with path : {Component-Path : [Class: org.ajax4jsf.framework.ajax.AjaxViewRoot,ViewId: /seguradora/seguradora.jsp][Class: javax.faces.component.html.HtmlForm,Id: form][Class: org.apache.myfaces.custom.div.Div,Id: _idJsp1][Class: javax.faces.component.html.HtmlPanelGrid,Id: campos][Class: org.apache.myfaces.component.html.ext.HtmlInputText,Id: placa]}
org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:425)
org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:211)
org.ajax4jsf.framework.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:108)
org.ajax4jsf.framework.ajax.AjaxViewHandler.renderView(AjaxViewHandler.java:233)
org.apache.myfaces.lifecycle.RenderResponseExecutor.execute(RenderResponseExecutor.java:41)
org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:132)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:140)
org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:127)
org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:277)
org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:147)
root cause
org.apache.jasper.JasperException: javax.faces.FacesException: Could not retrieve value of component with path : {Component-Path : [Class: org.ajax4jsf.framework.ajax.AjaxViewRoot,ViewId: /seguradora/seguradora.jsp][Class: javax.faces.component.html.HtmlForm,Id: form][Class: org.apache.myfaces.custom.div.Div,Id: _idJsp1][Class: javax.faces.component.html.HtmlPanelGrid,Id: campos][Class: org.apache.myfaces.component.html.ext.HtmlInputText,Id: placa]}
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:502)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:430)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:419)
org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:211)
org.ajax4jsf.framework.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:108)
org.ajax4jsf.framework.ajax.AjaxViewHandler.renderView(AjaxViewHandler.java:233)
org.apache.myfaces.lifecycle.RenderResponseExecutor.execute(RenderResponseExecutor.java:41)
org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:132)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:140)
org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:127)
org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:277)
org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:147)
root cause
javax.faces.FacesException: Could not retrieve value of component with path : {Component-Path : [Class: org.ajax4jsf.framework.ajax.AjaxViewRoot,ViewId: /seguradora/seguradora.jsp][Class: javax.faces.component.html.HtmlForm,Id: form][Class: org.apache.myfaces.custom.div.Div,Id: _idJsp1][Class: javax.faces.component.html.HtmlPanelGrid,Id: campos][Class: org.apache.myfaces.component.html.ext.HtmlInputText,Id: placa]}
org.apache.myfaces.shared_tomahawk.renderkit.RendererUtils.getStringValue(RendererUtils.java:227)
org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlTextRendererBase.renderInput(HtmlTextRendererBase.java:135)
org.apache.myfaces.renderkit.html.ext.HtmlTextRenderer.renderInput(HtmlTextRenderer.java:91)
org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlTextRendererBase.encodeEnd(HtmlTextRendererBase.java:53)
org.apache.myfaces.renderkit.html.ext.HtmlTextRenderer.renderNormal(HtmlTextRenderer.java:159)
org.apache.myfaces.renderkit.html.ext.HtmlTextRenderer.encodeEnd(HtmlTextRenderer.java:83)
javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:539)
org.apache.myfaces.shared_impl.renderkit.RendererUtils.renderChild(RendererUtils.java:419)
org.apache.myfaces.shared_impl.renderkit.html.HtmlGridRendererBase.renderChildren(HtmlGridRendererBase.java:229)
org.apache.myfaces.shared_impl.renderkit.html.HtmlGridRendererBase.encodeEnd(HtmlGridRendererBase.java:101)
javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:539)
javax.faces.webapp.UIComponentTag.encodeEnd(UIComponentTag.java:498)
javax.faces.webapp.UIComponentTag.doEndTag(UIComponentTag.java:366)
org.apache.myfaces.shared_impl.taglib.UIComponentBodyTagBase.doEndTag(UIComponentBodyTagBase.java:57)
org.apache.jsp.seguradora.seguradora_jsp._jspx_meth_h_005fpanelGrid_005f0(seguradora_jsp.java:439)
org.apache.jsp.seguradora.seguradora_jsp._jspx_meth_t_005fdiv_005f0(seguradora_jsp.java:348)
org.apache.jsp.seguradora.seguradora_jsp._jspx_meth_h_005fform_005f0(seguradora_jsp.java:283)
org.apache.jsp.seguradora.seguradora_jsp._jspx_meth_f_005fview_005f0(seguradora_jsp.java:238)
org.apache.jsp.seguradora.seguradora_jsp._jspService(seguradora_jsp.java:189)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:388)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:419)
org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:211)
org.ajax4jsf.framework.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:108)
org.ajax4jsf.framework.ajax.AjaxViewHandler.renderView(AjaxViewHandler.java:233)
org.apache.myfaces.lifecycle.RenderResponseExecutor.execute(RenderResponseExecutor.java:41)
org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:132)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:140)
org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:127)
org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:277)
org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:147)
root cause
javax.faces.el.PropertyNotFoundException: Bean: br.com.hibernate.model.TsSeguradora, property: seguradora
org.apache.myfaces.el.PropertyResolverImpl.getPropertyDescriptor(PropertyResolverImpl.java:500)
org.apache.myfaces.el.PropertyResolverImpl.getPropertyDescriptor(PropertyResolverImpl.java:472)
org.apache.myfaces.el.PropertyResolverImpl.getProperty(PropertyResolverImpl.java:436)
org.apache.myfaces.el.PropertyResolverImpl.getValue(PropertyResolverImpl.java:85)
org.apache.myfaces.custom.security.SecurityContextPropertyResolver.getValue(SecurityContextPropertyResolver.java:101)
org.apache.myfaces.el.ELParserHelper$MyPropertySuffix.evaluate(ELParserHelper.java:535)
org.apache.commons.el.ComplexValue.evaluate(ComplexValue.java:145)
org.apache.myfaces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:386)
javax.faces.component.UIOutput.getValue(UIOutput.java:80)
org.apache.myfaces.shared_tomahawk.renderkit.RendererUtils.getStringValue(RendererUtils.java:223)
org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlTextRendererBase.renderInput(HtmlTextRendererBase.java:135)
org.apache.myfaces.renderkit.html.ext.HtmlTextRenderer.renderInput(HtmlTextRenderer.java:91)
org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlTextRendererBase.encodeEnd(HtmlTextRendererBase.java:53)
org.apache.myfaces.renderkit.html.ext.HtmlTextRenderer.renderNormal(HtmlTextRenderer.java:159)
org.apache.myfaces.renderkit.html.ext.HtmlTextRenderer.encodeEnd(HtmlTextRenderer.java:83)
javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:539)
org.apache.myfaces.shared_impl.renderkit.RendererUtils.renderChild(RendererUtils.java:419)
org.apache.myfaces.shared_impl.renderkit.html.HtmlGridRendererBase.renderChildren(HtmlGridRendererBase.java:229)
org.apache.myfaces.shared_impl.renderkit.html.HtmlGridRendererBase.encodeEnd(HtmlGridRendererBase.java:101)
javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:539)
javax.faces.webapp.UIComponentTag.encodeEnd(UIComponentTag.java:498)
javax.faces.webapp.UIComponentTag.doEndTag(UIComponentTag.java:366)
org.apache.myfaces.shared_impl.taglib.UIComponentBodyTagBase.doEndTag(UIComponentBodyTagBase.java:57)
org.apache.jsp.seguradora.seguradora_jsp._jspx_meth_h_005fpanelGrid_005f0(seguradora_jsp.java:439)
org.apache.jsp.seguradora.seguradora_jsp._jspx_meth_t_005fdiv_005f0(seguradora_jsp.java:348)
org.apache.jsp.seguradora.seguradora_jsp._jspx_meth_h_005fform_005f0(seguradora_jsp.java:283)
org.apache.jsp.seguradora.seguradora_jsp._jspx_meth_f_005fview_005f0(seguradora_jsp.java:238)
org.apache.jsp.seguradora.seguradora_jsp._jspService(seguradora_jsp.java:189)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:388)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:419)
org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:211)
org.ajax4jsf.framework.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:108)
org.ajax4jsf.framework.ajax.AjaxViewHandler.renderView(AjaxViewHandler.java:233)
org.apache.myfaces.lifecycle.RenderResponseExecutor.execute(RenderResponseExecutor.java:41)
org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:132)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:140)
org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:127)
org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:277)
org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:147)
Viu, como vc faria?
ele ainda está acessando a classe errada. o que não faz sentido pois ela não é um managed bean.
qual versão do JSF você está usando?
experimente trocar as tags e por <h:head> e <h:body>
Eu peguei este software já publicado e não foi seguido os padrões… não tem documentação… Aí tá complicado de entender!! Vou fazer o q vc pediu!
Unknown tag (h:body).
Unknown tag (h:head).
muito estranho, devem estar faltando jars no seu projeto, não tenho certeza, essas tags deveriam existir.
Um amigo meu aqui falou pra você tentar alterar o nome do atributo no seu managedBean, tente deixar assim:private TsSeguradora tsSeguradora;
EDIT: Não esqueça de mudar também os getters e setters, o nome deles é muito importante.
Deu esta exception
HTTP Status 500 -
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
javax.servlet.ServletException: Base is null: tsSeguradora
javax.faces.webapp.FacesServlet.service(FacesServlet.java:154)
org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:127)
org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:277)
org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:147)
root cause
javax.faces.el.PropertyNotFoundException: Base is null: tsSeguradora
org.apache.myfaces.el.ValueBindingImpl.resolveToBaseAndProperty(ValueBindingImpl.java:463)
org.apache.myfaces.el.ValueBindingImpl.getType(ValueBindingImpl.java:175)
org.apache.myfaces.shared_tomahawk.renderkit._SharedRendererUtils.findUIOutputConverter(_SharedRendererUtils.java:58)
org.apache.myfaces.shared_tomahawk.renderkit.RendererUtils.findUIOutputConverter(RendererUtils.java:310)
org.apache.myfaces.shared_tomahawk.renderkit.RendererUtils.getConvertedUIOutputValue(RendererUtils.java:604)
org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlTextRendererBase.getConvertedValue(HtmlTextRendererBase.java:191)
javax.faces.component.UIInput.getConvertedValue(UIInput.java:396)
javax.faces.component.UIInput.validate(UIInput.java:350)
javax.faces.component.UIInput.processValidators(UIInput.java:184)
javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:627)
javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:627)
javax.faces.component.UIForm.processValidators(UIForm.java:73)
javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:627)
javax.faces.component.UIViewRoot.processValidators(UIViewRoot.java:149)
org.ajax4jsf.framework.ajax.AjaxViewRoot.access$201(AjaxViewRoot.java:53)
org.ajax4jsf.framework.ajax.AjaxViewRoot$3.invokeRoot(AjaxViewRoot.java:315)
org.ajax4jsf.framework.ajax.JsfOneOneInvoker.invokeOnRegionOrRoot(JsfOneOneInvoker.java:53)
org.ajax4jsf.framework.ajax.AjaxContext.invokeOnRegionOrRoot(AjaxContext.java:191)
org.ajax4jsf.framework.ajax.AjaxViewRoot.processValidators(AjaxViewRoot.java:329)
org.apache.myfaces.lifecycle.ProcessValidationsExecutor.execute(ProcessValidationsExecutor.java:32)
org.apache.myfaces.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:95)
org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:70)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:139)
org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:127)
org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:277)
org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:147)
acho que você precisa instanciar seu tsSeguradora.
instanciar onde?
eu fiz assim dentro do managedBean
private TsSeguradora tsSeguradora = new TsSeguradora();
quais os jars que você tem de JSF na sua aplicação?
Segue no arquivo doc em anexo.