I cannot deploy my application right now with the following hibernate mapping file, NamedQuery.hbm.xml.
When I try to deploy I get a NullPointerException. When I remove this file from my data folder with all the other mapping files, the app WILL deploy fine. I can't determine what is wrong.
The one thing that does stand out in my mind is that the other .hbm.xml files that I have are automatically generated from java files using an xDoclet command in my build file, however this one I created from hand, there is no correspodning java file.
I feel like I am missing something obvious, does anyone spot something wrong here?
Can you paste the Exception stack trace. Also we don't know how your classes are mapped to be able to see if there is an error in a Named Query, but my guess is that there is something wrong in one of your Named Queries like missingin a camel case capitalization in one of your properies in the query.
Most of the time I have some sort of typo in my named queries.