Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Error after adding a new column to hbm.xml

 
Juzar Roopawalla
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I had to enhance my project and add a new column to the database. I added this new column to the database, the hbm.xml, the pojo with set/get. When I restarted the server I am getting the following:
Could not read mappings from resource: BenchmarkCS.hbm.xml
at org.apache.naming.NamingContext.lookup(NamingContext.java:804)
at org.apache.naming.NamingContext.lookup(NamingContext.java:139)
at org.apache.naming.NamingContext.lookup(NamingContext.java:780)
at org.apache.naming.NamingContext.lookup(NamingContext.java:152)

As soon as I remove the added property from the xml, the app starts working fine again. There are no typos or silly mistakes in naming (have made sure). WHAT COULD THE PROBLEM BE??? Please treat this question as urgent.
 
Stevi Deter
Ranch Hand
Posts: 265
Hibernate Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Juzar,

From your description, it seems evident the problem is in the xml mapping file, if deleting the new mapping eliminates the problem.

You'd have to post the mapping file to enable us to give you any help.

Also, please include the full strack trace of the exception.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic