[jboss-user] [Installation, Configuration & Deployment] - Re: jboss 4.2 Hibernate 3.2 entity mapping problem

cgrahamatip do-not-reply at jboss.com
Thu May 31 22:09:35 EDT 2007


  | 
  | ############### hibernate.cfg.xml ####################
  | <?xml version='1.0' encoding='utf-8'?>
  | <!DOCTYPE hibernate-configuration PUBLIC
  | "-//Hibernate/Hibernate Configuration DTD//EN"
  | "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
  | 
  | <hibernate-configuration>
  | <session-factory name="mdp-sf">
  |       <property name="show_sql">
  |       		true
  |       </property>
  |       <!-- Mapping files -->
  |       <mapping resource="com/ipi/InformationPortal/model/People.hbm.xml"/>
  | </session-factory>
  | </hibernate-configuration>
  | 
  | ############### stack tracy ########################
  | 
  | HTTP Status 500 -
  | 
  | type Exception report
  | 
  | message
  | 
  | description The server encountered an internal error () that prevented it from fulfilling this request.
  | 
  | exception
  | 
  | javax.servlet.ServletException: #{registrationBean.register}: org.hibernate.MappingException: Unknown entity: com.ipi.InformationPortal.model.People
  | 	javax.faces.webapp.FacesServlet.service(FacesServlet.java:256)
  | 	org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
  | 
  | root cause
  | 
  | javax.faces.FacesException: #{registrationBean.register}: org.hibernate.MappingException: Unknown entity: com.ipi.InformationPortal.model.People
  | 	com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:107)
  | 	javax.faces.component.UICommand.broadcast(UICommand.java:383)
  | 	javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:447)
  | 	javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:752)
  | 	com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:97)
  | 	com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
  | 	com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
  | 	javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
  | 	org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
  | 
  | root cause
  | 
  | javax.faces.el.EvaluationException: org.hibernate.MappingException: Unknown entity: com.ipi.InformationPortal.model.People
  | 	javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:91)
  | 	com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:91)
  | 	javax.faces.component.UICommand.broadcast(UICommand.java:383)
  | 	javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:447)
  | 	javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:752)
  | 	com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:97)
  | 	com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
  | 	com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
  | 	javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
  | 	org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
  | 
  | root cause
  | 
  | org.hibernate.MappingException: Unknown entity: com.ipi.InformationPortal.model.People
  | 	org.hibernate.impl.SessionFactoryImpl.getEntityPersister(SessionFactoryImpl.java:550)
  | 	org.hibernate.event.def.DefaultLoadEventListener.onLoad(DefaultLoadEventListener.java:68)
  | 	org.hibernate.impl.SessionImpl.fireLoad(SessionImpl.java:878)
  | 	org.hibernate.impl.SessionImpl.load(SessionImpl.java:795)
  | 	org.hibernate.impl.SessionImpl.load(SessionImpl.java:788)
  | 	com.ipi.InformationPortal.web.suggestionUtils.getSuggestionBean(suggestionUtils.java:39)
  | 	com.ipi.InformationPortal.web.registrationBean.register(registrationBean.java:36)
  | 	sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | 	sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | 	sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | 	java.lang.reflect.Method.invoke(Method.java:597)
  | 	org.apache.el.parser.AstValue.invoke(AstValue.java:131)
  | 	org.apache.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:276)
  | 	org.apache.jasper.el.JspMethodExpression.invoke(JspMethodExpression.java:68)
  | 	javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:77)
  | 	com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:91)
  | 	javax.faces.component.UICommand.broadcast(UICommand.java:383)
  | 	javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:447)
  | 	javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:752)
  | 	com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:97)
  | 	com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
  | 	com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
  | 	javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
  | 	org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
  | 
  | note The full stack trace of the root cause is available in the JBossWeb/2.0.0.GA logs.
  | JBossWeb/2.0.0.GA
  | 

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

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



More information about the jboss-user mailing list