No Persistence provider for EntityManager named JSFJPA5PU 20

我用的是基于hibernate的jpa版本。。这是我的代码错误信息!2008-02-2611:55:46错误[apusic.web.JSFJPA5./jsfjpa5]执行... 我用的是基于hibernate的jpa版本。。
这是我的代码错误信息!
2008-02-26 11:55:46 错误 [apusic.web.JSFJPA5./jsfjpa5] 执行Servlet时发生错误。
javax.faces.el.EvaluationException: java.lang.ExceptionInInitializerError
at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:91)
at org.operamasks.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:52)
at javax.faces.component.UICommand.broadcast(UICommand.java:383)
at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:447)
at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:752)
at org.operamasks.faces.lifecycle.LifecycleImpl$InvokeApplication.execute(LifecycleImpl.java:282)
at org.operamasks.faces.lifecycle.LifecycleImpl.doPhase(LifecycleImpl.java:118)
at org.operamasks.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:85)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
at com.apusic.web.container.ServletComponent.service(Unknown Source)
at com.apusic.web.container.WebContainer.invoke(Unknown Source)
at com.apusic.web.container.WebContainer.processRequest(Unknown Source)
at com.apusic.web.http.VirtualHost.processRequest(Unknown Source)
at com.apusic.web.http.HttpServer.processRequest(Unknown Source)
at com.apusic.web.http.HttpConnectionHandler.service(Unknown Source)
at com.apusic.web.http.ConnectionHandler.processRequest(Unknown Source)
at com.apusic.web.http.ConnectionHandler.processConnection(Unknown Source)
at com.apusic.web.http.ConnectionHandler.run(Unknown Source)
at com.apusic.util.ThreadPoolImpl$WorkerThread.run(Unknown Source)
Caused by: java.lang.ExceptionInInitializerError
at zh.mb.jsf.UserBean.MyButton(UserBean.java:45)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.operamasks.el.parser.ELNode$ACCESS.invoke(ELNode.java:358)
at org.operamasks.el.eval.MethodExpressionImpl.invoke(MethodExpressionImpl.java:66)
at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:77)
... 18 more
Caused by: javax.persistence.PersistenceException: No Persistence provider for EntityManager named JSFJPA5PU
at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:89)
at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:60)
at zh.mb.jpa.EntityManagerHelper.<clinit>(EntityManagerHelper.java:20)
... 26 more
展开
 我来答
狼牙lian
2013-05-16
知道答主
回答量:1
采纳率:0%
帮助的人:1497
展开全部
添加一个包(hibernate-entitymanager.jar)
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
十三叔sh
2008-02-26 · TA获得超过340个赞
知道小有建树答主
回答量:573
采纳率:0%
帮助的人:460万
展开全部
看不懂啊
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
收起 1条折叠回答
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式