[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: how to configure jaas with jboss 5.0.1

BjPenn do-not-reply at jboss.com
Tue Mar 17 11:47:38 EDT 2009


this is the error message that jboss return:

org.apache.jasper.JasperException: java.lang.ClassCastException: org.hibernate.ejb.HibernatePersistence cannot be cast to javax.persistence.spi.PersistenceProvider
  | 	org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:515)
  | 	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:411)
  | 	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:322)
  | 	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:249)
  | 	javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
  | 	com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:410)
  | 	com.sun.faces.application.ViewHandlerImpl.executePageToBuildView(ViewHandlerImpl.java:468)
  | 	com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:140)
  | 	org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:108)
  | 	org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:196)
  | 	com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:110)
  | 	com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
  | 	com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
  | 	javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)
  | 	org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
  | 
  | causa raíz
  | 
  | java.lang.ClassCastException: org.hibernate.ejb.HibernatePersistence cannot be cast to javax.persistence.spi.PersistenceProvider
  | 	javax.persistence.Persistence.findAllProviders(Persistence.java:186)
  | 	javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:103)
  | 	javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:83)
  | 	controller.usuariosC.<init>(usuariosC.java:29)
  | 	org.apache.jsp.principal_jsp._jspService(principal_jsp.java:112)
  | 	org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
  | 	javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
  | 	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:369)
  | 	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:322)
  | 	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:249)
  | 	javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
  | 	com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:410)
  | 	com.sun.faces.application.ViewHandlerImpl.executePageToBuildView(ViewHandlerImpl.java:468)
  | 	com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:140)
  | 	org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:108)
  | 	org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:196)
  | 	com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:110)
  | 	com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
  | 	com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
  | 	javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)
  | 	org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
  | 
  | nota La traza completa de la causa de este error se encuentra en los archivos de diario de JBoss Web/2.1.2.GA.
  | JBoss Web/2.1.2.GA

View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4218709#4218709

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4218709




More information about the jboss-user mailing list