Ola bom dia, estou com o seguinte problema qdo executo uma action do jsf que chama um metodo de gravação no banco segue o erro:
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 _idJsp0:_idJsp18
javax.faces.webapp.FacesServlet.service(FacesServlet.java:152)
org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:141)
org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:281)
org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:144)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
root cause
javax.faces.FacesException: Error calling action method of component with id _idJsp0:_idJsp18
org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:74)
javax.faces.component.UICommand.broadcast(UICommand.java:106)
org.ajax4jsf.component.AjaxViewRoot.processEvents(AjaxViewRoot.java:186)
org.ajax4jsf.component.AjaxViewRoot.broadcastEvents(AjaxViewRoot.java:164)
org.ajax4jsf.component.AjaxViewRoot.processApplication(AjaxViewRoot.java:352)
org.apache.myfaces.lifecycle.LifecycleImpl.invokeApplication(LifecycleImpl.java:343)
org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:86)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:137)
org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:141)
org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:281)
org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:144)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
root cause
javax.faces.el.EvaluationException: Exception while invoking expression #{livro.create}
org.apache.myfaces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:165)
org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:63)
javax.faces.component.UICommand.broadcast(UICommand.java:106)
org.ajax4jsf.component.AjaxViewRoot.processEvents(AjaxViewRoot.java:186)
org.ajax4jsf.component.AjaxViewRoot.broadcastEvents(AjaxViewRoot.java:164)
org.ajax4jsf.component.AjaxViewRoot.processApplication(AjaxViewRoot.java:352)
org.apache.myfaces.lifecycle.LifecycleImpl.invokeApplication(LifecycleImpl.java:343)
org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:86)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:137)
org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:141)
org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:281)
org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:144)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
root cause
java.lang.NoSuchMethodException: model.TableData.create()
java.lang.Class.getMethod(Class.java:1581)
org.apache.myfaces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:118)
org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:63)
javax.faces.component.UICommand.broadcast(UICommand.java:106)
org.ajax4jsf.component.AjaxViewRoot.processEvents(AjaxViewRoot.java:186)
org.ajax4jsf.component.AjaxViewRoot.broadcastEvents(AjaxViewRoot.java:164)
org.ajax4jsf.component.AjaxViewRoot.processApplication(AjaxViewRoot.java:352)
org.apache.myfaces.lifecycle.LifecycleImpl.invokeApplication(LifecycleImpl.java:343)
org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:86)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:137)
org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:141)
org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:281)
org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:144)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
note The full stack trace of the root cause is available in the JBossWeb/2.0.0.GA_CP01 logs.
--------------------------------------------------------------------------------
JBossWeb/2.0.0.GA_CP01
minha jsp ta assim:
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t" %>
<html>
<head>
<title></title>
</head>
<body>
<f:view>
<h:form>
<h:panelGrid columns="2" width="611">
</h:panelGrid>
<h:panelGrid columns="2" width="269">
<h:outputText value="Codigo"/>
<h:inputText value="#{livr.codigo}" />
<h:outputText value="ISBN" />
<h:inputText value="#{livr.isbn}" />
<h:outputText value="Descrição" />
<h:inputText value="#{livr.descricao}" />
<h:outputText value="Autor" />
<h:inputText value="#{livr.autor}" />
<h:outputText value="CPF" />
<h:inputText value="#{livr.cpf}"/>
<h:outputText value="Peso" />
<h:inputText value="#{livr.peso}" />
</h:panelGrid>
<h:panelGrid columns="3" width="579">
<t:outputText value="Email:" style=" width : 35px;"/>
<t:inputText value="#{livr.email}" required="true" id="email">
</t:inputText>
<h:message for="email" styleClass="red" infoClass="red" style="red" />
</h:panelGrid>
<h:panelGrid columns="4" border="1" cellpadding="1" width="263">
<h:commandButton value="Deletar" />
<h:commandButton value="Editar" />
<h:commandButton action="#{livr.create}" value="salvar" />
</h:panelGrid>
</h:form>
</f:view>
</body>
</html>
e o metodo para inserir
public String create() {
InterfaceLivrosDAO ldao = new LivrosDAO();
ldao.salvar(livro);
return "sucesso_ins";
}
se alguem puder dar uma luz agradeço