Win a copy of 97 Things Every Java Programmer Should Know this week in the Java in General forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
  • Piet Souris
  • salvin francis
  • fred rosenberger

Problem mapping pojo with view using hibernate

Ranch Hand
Posts: 160
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi guys,

I am getting the following hibernate mapping exception

I am using netbeans ide and am trying to map a pojo with a view which i created in MySql. The pojo is a below

And its hibernate mapping file is as follows:

And the hibernate configuration file is as follows

The View which i am trying to map is named 'Usertabledata'

When i user the netbeans hql Query analyser with session: hibernate.cfg , i am able to see the result properly but when i run the app i get the above exception
Posts: 10336
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

java.lang.NoClassDefFoundError: Could not initialize class his1.NewHibernateUtil

his1.NewHibernateUtil is not on your classpath
today's feeble attempt to support the empire
Devious Experiments for a Truly Passive Greenhouse!
    Bookmark Topic Watch Topic
  • New Topic