-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Initial SessionFactory creation failed.java.lang.NoClassDefF
PostPosted: Mon Nov 18, 2013 5:08 am 
Newbie

Joined: Mon Nov 18, 2013 5:06 am
Posts: 1
Initial SessionFactory creation failed.java.lang.NoClassDefFoundError: org/hibernate/util/DTDEntityResolver

I am using these jar files Jar files

antlr-2.7.7.jar
asm-3.3.1.jar
commons-beanutils-1.8.0.jar
commons-collections-3.1.jar
commons-digester-2.0.jar
commons-fileupload-1.2.2.jar
commons-io-2.0.jar
commons-lang-3.3.1.jar
commons-logging-1.1.1.jar
dom4j-1.6.1.jar
freemarker-2.3.19.jar
hibernate-annotations-3.2.0cr1.jar
hibernate-commons-annotations-4.0.1.Final.jar
hibernate-core-4.1.11.Final.jar
hibernate validator.jar
hibernate-ejb3-persistance.jar
hibernate-validator-4.0.2GA.jar
hsqldb-1.8.05.jar
javaassist.jar
jta-1_1.jar
mysql connector.jar
ognl.jar
slf4j-api.jar
slf4j-log4j.jar


Top
 Profile  
 
 Post subject: Re: Initial SessionFactory creation failed.java.lang.NoClassDefF
PostPosted: Wed Nov 20, 2013 6:09 am 
Expert
Expert

Joined: Tue Jun 16, 2009 3:36 am
Posts: 990
If I remember right, since hibernate version 4 it is no more correct to include hibernate-ejb3-persistance.jar into your classpath, it belongs to older branches.
In fact org/hibernate/util/DTDEntityResolver has been moved to org/hibernate/internal/util/xml/DTDEntityResolver

Probably you need to include hibernate-jpa-2.0-api-1.0.1.Final.jar and hibernate-entitymanager-4.1.1.Final.jar
into your classpath.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.