Ola, eu crie a classe AutorService e alterei a classe AutorBean como pedido no exercício... as classes compilaram, mas quando tendo acessar a aba autor ... recebo o erro abaixo...
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
javax.servlet.ServletException: /autores.xhtml @32,86 value="#{autorBean.autores}": The class 'br.com.caelum.livraria.bean.AutorBean$Proxy$_$$_WeldClientProxy' does not have the property 'autores'. javax.faces.webapp.FacesServlet.service(FacesServlet.java:606) org.jboss.weld.servlet.ConversationPropagationFilter.doFilter(ConversationPropagationFilter.java:62) root cause
javax.el.PropertyNotFoundException: /autores.xhtml @32,86 value="#{autorBean.autores}": The class 'br.com.caelum.livraria.bean.AutorBean$Proxy$_$$_WeldClientProxy' does not have the property 'autores'. com.sun.faces.facelets.el.TagValueExpression.getValue(TagValueExpression.java:111) javax.faces.component.ComponentStateHelper.eval(ComponentStateHelper.java:194) javax.faces.component.ComponentStateHelper.eval(ComponentStateHelper.java:182) javax.faces.component.UIData.getValue(UIData.java:731) org.primefaces.component.api.UIData.getDataModel(UIData.java:615) javax.faces.component.UIData.getRowCount(UIData.java:356) org.primefaces.component.datalist.DataListRenderer.encodeMarkup(DataListRenderer.java:58) org.primefaces.component.datalist.DataListRenderer.encodeEnd(DataListRenderer.java:45) javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:875) javax.faces.component.UIComponent.encodeAll(UIComponent.java:1786) javax.faces.render.Renderer.encodeChildren(Renderer.java:168) javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:845) javax.faces.component.UIComponent.encodeAll(UIComponent.java:1779) javax.faces.component.UIComponent.encodeAll(UIComponent.java:1782) javax.faces.component.UIComponent.encodeAll(UIComponent.java:1782) com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:402) com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:125) javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:288) com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:121) com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101) com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139) javax.faces.webapp.FacesServlet.service(FacesServlet.java:594) org.jboss.weld.servlet.ConversationPropagationFilter.doFilter(ConversationPropagationFilter.java:62)