有没有大佬帮忙看看这个错怎么改An Error Occurred: org.hibernate.UnknownEntityTypeException: Unable to locate persist

时间:2024-04-09 13:05:18

有没有大佬帮忙看看这个错怎么改
An Error Occurred:org.hibernate.UnknownEntityTypeException: Unable to locate persister: com.qdu.pojo.YuanGong
有没有大佬帮忙看看这个错怎么改An Error Occurred: org.hibernate.UnknownEntityTypeException: Unable to locate persist
有没有大佬帮忙看看这个错怎么改An Error Occurred: org.hibernate.UnknownEntityTypeException: Unable to locate persist
有没有大佬帮忙看看这个错怎么改An Error Occurred: org.hibernate.UnknownEntityTypeException: Unable to locate persist

29-Dec-2019 13:20:02.571 FATAL [http-nio-8084-exec-288] com.sun.faces.context.ExceptionHandlerImpl.log JSF1073:在 INVOKE_APPLICATION 5 的处理过程中捕捉到 javax.faces.FacesException:UIComponent-ClientId=,Message=#{loginbean.ylogin}: org.hibernate.UnknownEntityTypeException: Unable to locate persister: com.qdu.pojo.YuanGong
29-Dec-2019 13:20:02.571 FATAL [http-nio-8084-exec-288] com.sun.faces.context.ExceptionHandlerImpl.log #{loginbean.ylogin}: org.hibernate.UnknownEntityTypeException: Unable to locate persister: com.qdu.pojo.YuanGong
javax.faces.FacesException: #{loginbean.ylogin}: org.hibernate.UnknownEntityTypeException: Unable to locate persister: com.qdu.pojo.YuanGong
at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:90)
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:201)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:670)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:393)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:217)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:142)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:616)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:518)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1091)
at org.apache.coyote.AbstractProtocolAbstractConnectionHandler.process(AbstractProtocol.java:673)atorg.apache.tomcat.util.net.NioEndpointAbstractConnectionHandler.process(AbstractProtocol.java:673) at org.apache.tomcat.util.net.NioEndpointSocketProcessor.doRun(NioEndpoint.java:1500)
at org.apache.tomcat.util.net.NioEndpointSocketProcessor.run(NioEndpoint.java:1456)atjava.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)atjava.util.concurrent.ThreadPoolExecutorSocketProcessor.run(NioEndpoint.java:1456) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutorWorker.run(ThreadPoolExecutor.java:624)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:748)
Caused by: javax.faces.FacesException: #{loginbean.ylogin}: org.hibernate.UnknownEntityTypeException: Unable to locate persister: com.qdu.pojo.YuanGong
at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:119)
at javax.faces.component.UICommand.broadcast(UICommand.java:330)
at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:870)
at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1418)
at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:82)
… 27 more
Caused by: javax.faces.el.EvaluationException: org.hibernate.UnknownEntityTypeException: Unable to locate persister: com.qdu.pojo.YuanGong
at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:101)
at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102)
… 31 more
Caused by: org.hibernate.UnknownEntityTypeException: Unable to locate persister: com.qdu.pojo.YuanGong
at org.hibernate.metamodel.internal.MetamodelImpl.locateEntityPersister(MetamodelImpl.java:687)
at org.hibernate.internal.SessionImpl.locateEntityPersister(SessionImpl.java:3018)
at org.hibernate.internal.SessionImpl.access1800(SessionImpl.java:207)atorg.hibernate.internal.SessionImpl1800(SessionImpl.java:207) at org.hibernate.internal.SessionImplIdentifierLoadAccessImpl.(SessionImpl.java:2769)
at org.hibernate.internal.SessionImpl$IdentifierLoadAccessImpl.(SessionImpl.java:2755)
at org.hibernate.internal.SessionImpl.byId(SessionImpl.java:1220)
at org.hibernate.internal.SessionImpl.get(SessionImpl.java:1093)
at com.qdu.dao.impl.YuanGongDaoImpl.getOneById(YuanGongDaoImpl.java:79)
at com.qdu.service.impl.YuanGongServiceImpl.validateLogin(YuanGongServiceImpl.java:30)
at com.qdu.beans.LoginBean.ylogin(LoginBean.java:64)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.el.parser.AstValue.invoke(AstValue.java:247)
at org.apache.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:267)
at org.jboss.weld.module.web.util.el.ForwardingMethodExpression.invoke(ForwardingMethodExpression.java:40)
at org.jboss.weld.module.web.el.WeldMethodExpression.invoke(WeldMethodExpression.java:50)
at com.sun.faces.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:107)
at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:87)
… 32 more