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: java.lang.IllegalArgumentException: org.hibernate.hql.internal.ast.QuerySyntaxException: livro is not mapped [select l from livro l]
javax.faces.webapp.FacesServlet.service(FacesServlet.java:606)
org.jboss.weld.servlet.ConversationPropagationFilter.doFilter(ConversationPropagationFilter.java:62)
root cause
javax.ejb.EJBException: java.lang.IllegalArgumentException: org.hibernate.hql.internal.ast.QuerySyntaxException: livro is not mapped [select l from livro l]
org.jboss.as.ejb3.tx.CMTTxInterceptor.handleExceptionInOurTx(CMTTxInterceptor.java:166)
org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInOurTx(CMTTxInterceptor.java:230)
org.jboss.as.ejb3.tx.CMTTxInterceptor.required(CMTTxInterceptor.java:304)
org.jboss.as.ejb3.tx.CMTTxInterceptor.processInvocation(CMTTxInterceptor.java:190)
Já tentei pesquisar e estudar as classes, mas não encontrei a solução. A classe livros está presente no arquivo persistense.xml igual as demais classes.
<class>br.com.caelum.livraria.modelo.Livro</class>
O erro é apresentado após apertar no botão de login. Fiz uns testes e com a ajuda de um outro bug, consegui ver que a aba de autores funciona normalmente, inclusive o cadastro, o logout também funciona normalmente, mas a aba livros apresenta novamente o erro.