» Home » Hibernate » Page 1
How can i resolve java.lang.ClassNotFoundException: org.hibernate.util.DTDEntityResolver when using Spring 3.1 with Hibernate 4.0.1?
by lockdown571 in Java

I recently upgraded to Hibernate 4.0.1.Final and am receiving the following error on context startup:

Caused by: java.lang.NoClassDefFoundError: org/hibernate/util/DTDEntityResolver
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:791)
at java.security.SecureClassLoader.defineClass(SecureClassLoa

Hibernate + Tomcat org/hibernate/exception/SQLGrammarException java.lang.reflect.InvocationTargetException
by tiagoggama in Java

Hi I'm trying to make application which will use webservice deployed on tomcat/axis2 to make some MySQL query and get for example user.

It's all working fine until I connected my project with hibernate and database. When I make sql query without tomcat it's all works. But when I deployed webservice I got this error when calling webservice:

[ERROR] org/hibernate/excep

How to fix JBoss Hibernate 3.6.8.Final startup exception (org.hibernate.validator.ClassValidator.<init>)
by kema in Programming Languages

I am using Hibernate 3.6.8.Final as part of a project deployed in JBoss 4.3 and found the following stack trace issued during startup:

Caused by: org.hibernate.AnnotationException: java.lang.NoSuchMethodException: org.hibernate.validator.ClassValidator.<init>(java.lang.Class, java.util.ResourceBundle, org.hibernate.validator.MessageInterpolator, java.util.Map, org.hibernate

Hibernate doesn't log anything anymore, since I relocated the log4j.xml and hibernate.properties files
by Magic Carpet in Programming Languages

I had the following working organization


I wanted to reorganize my webapp as follow:


The Logger.info("foobar") still logs well (after having s

Hibernate Reverse Engineering with Eclipse Juno and Hibernate tools not working together
by lxskllr in Databases

I am having trouble using the Hibernate Tool/Eclipse JUNO reverse engineering to work with SqlServer 2008R2. The Java Domain Code and the Hibernate files are not being generated ? The Hibernate tool is connecting to the DB as well as we can retrieve the Meta Data of the table.

I'm using jdbc &hibernate to connect my DB oracle11gr2.I need to upgrade client libraries from hibernate 3.1.3 to 4.1.6
by Deledrius in Programming Languages

I need to upgrade my client libraries i.e hibernate from 3.1.3 to 4.x.I'm preferring 4.1.6.I have done upgrading jdbc 4 to 5 successfully.Now the problem is we are going to latest release from 3.1.6. I'm seeing more than 250 errors.I'm bit confused in adding jars.I have added required folder from 4.1.6.Can some1 let me know should i add all the jars in required folder or just replace the jars

How to configure hibernate-tools with maven to generate hibernate.cfg.xml, *.hbm.xml, POJOs and DAOs
by DonMac in Programming Languages

can any one tell me how to force maven to precede mapping .hbm.xml files in the automatically generated hibernate.cfg.xml file with package path?

My general idea is, I'd like to use hibernate-tools via maven to generate the persistence layer for my application. So, I need the hibernate.cfg.xml, then all my_table_names.hbm.xml and at the end the POJO's generated. Yet, the hbm2j

How to override table data using Hibernate for specific criteria using hibernate annotations?
by Phil Austin in Programming Languages

We are generating Sales Report using Hibernate.


When user clicks on generate report button after entering some criteria, I am fetching data from database using hibernate, then we are doing some data manipulation to generate actual report data. Report data is stored in ArrayList, which then persisted into database in CommissionSummary table, which is mapped with

Maven +Hibernate + JPA error .JavaReflectionManager cannot be cast to org.hibernate.annotations.common
by ondrej in Programming Languages

Can someone please provide me with a sample minimalist persistence.xml file that works and how to get it working in code? I am following this document which has frustrating gaps: Hibernate Setup.

I have this but

<persistence xmlns="http://java.sun.com/xml/ns/persistence"

Hibernate Query Syntax exception : org.hibernate.hql.ast.QuerySyntaxException: unexpected token
by xeemzor in Programming Languages

I have a query where i am joining two tables ROuteMaster and RouteHalts.
When i perform inner join i am getting

org.hibernate.hql.ast.QuerySyntaxException: unexpected token: on near line 1,
column 169 [SELECT rm.id , rm.routeCode , rm.startPlaceId , rm.endPlaceId ,
rm.active, rm.linkedRoute FROM com.oprs.pojo.routes.RouteMaster rm INNER JOIN

Privacy Policy - Copyrights Notice - Feedback - Report Violation - RSS 2017 © bighow.org All Rights Reserved .