Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6061031
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T08:53:32+00:00 2026-05-23T08:53:32+00:00

i need some information what is a hbm.xml file ??? i know just *.hbm

  • 0

i need some information

what is a hbm.xml file ??? i know just *.hbm files

and how to add the .hbm.xml file to the cfg.xml file ???

i want to know that cuz i get an error when im trying to run my jsp and they said you have to add the .hbm.xml file to the cfg.xml file !!

this is the error :

exception 

org.apache.jasper.JasperException: javax.servlet.ServletException: net.sf.hibernate.MappingException: No persister for: MyDB.student
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:531)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:439)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:389)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:332)
javax.servlet.http.HttpServlet.service(HttpServlet.java:722)

cause mère

javax.servlet.ServletException: net.sf.hibernate.MappingException: No persister for: MyDB.student
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:901)
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:830)
org.apache.jsp.JSP.index_jsp._jspService(index_jsp.java:103)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:68)
javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:416)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:389)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:332)
javax.servlet.http.HttpServlet.service(HttpServlet.java:722)

cause mère

net.sf.hibernate.MappingException: No persister for: MyDB.student
net.sf.hibernate.impl.SessionFactoryImpl.getPersister(SessionFactoryImpl.java:347)
net.sf.hibernate.impl.SessionImpl.getClassPersister(SessionImpl.java:2690)
net.sf.hibernate.impl.SessionImpl.getPersister(SessionImpl.java:2697)
net.sf.hibernate.impl.SessionImpl.saveWithGeneratedIdentifier(SessionImpl.java:763)
net.sf.hibernate.impl.SessionImpl.save(SessionImpl.java:738)
org.apache.jsp.JSP.index_jsp._jspService(index_jsp.java:75)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:68)
javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:416)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:389)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:332)
javax.servlet.http.HttpServlet.service(HttpServlet.java:722)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T08:53:33+00:00Added an answer on May 23, 2026 at 8:53 am
    1. hbm files are normally XML and normally have the extension .hbm.xml . If you named them just .hbm, you broke convention.

    2. You don’t have to map them all from hibernate.cfg.xml – you can do it programmatically or via Spring.

    3. If you want to though, you just add them similar to this

          <mapping resource="org/hibernate/auction/Item.hbm.xml"/>
          <mapping resource="org/hibernate/auction/Bid.hbm.xml"/>
      
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to get some information that is contained in the MFT on a
I need to have some information about the scoping in JavaScript. I know that
I need some information from a website that's not mine, in order to get
Im just starting with localization today and need some information. I have a project
I have a need for some kind of information that is in essence static.
I need to get some information from user by showing a JFrame I need
I need to store some information that is unique for each site that my
I need some information on XAP files execution context in the browser. Specifically, how
I need some more information than the traditional OK or Cancel states you get
If we need some information that can be achieved only through dynamic query then

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.