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 展开
这是我的代码错误信息!
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 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询