-->
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: java.lang.NoClassDefFoundError: javax/persistence/Inheritanc
PostPosted: Thu Jul 14, 2005 9:24 am 
Newbie

Joined: Thu Jul 14, 2005 9:10 am
Posts: 4
Hi Friends -

I am using AnnotationSessionFactoryBean to configure the sessionFactory.
When I get the session factory and call createDatabaseSchema() method I am getting the follwoing exception:

[java] java.lang.NoClassDefFoundError: javax/persistence/InheritanceJoinColumns
[java] at org.hibernate.cfg.AnnotationBinder.bindClass(AnnotationBinder.java:324)
[java] at org.hibernate.cfg.AnnotationConfiguration.secondPassCompile(AnnotationConfiguration.java:177)
[java] at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:999)
[java] at org.springframework.orm.hibernate3.LocalSessionFactoryBean.newSessionFactory(LocalSessionFactoryBean.java:769)
[java] at org.springframework.orm.hibernate3.LocalSessionFactoryBean.afterPropertiesSet(LocalSessionFactoryBean.java:695)
[java] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:966)
[java] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:358)
[java] at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:226)
[java] at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:147)
[java] at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:270)
[java] at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:312)
[java] at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:80)
[java] at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:65)
..................

I am using JDK1.5, Hibernate 3.1 beta with spring 1.2.2. I verified ejb3-persistence.jar, but could not find the class javax.persistence.InheritanceJoinColumns.

Please let me know if any one has any idea.


Reagrds,
Omkar


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jul 14, 2005 5:16 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
wrong Hibernate Annotations version, use the ejb-persistence distributed with the hibernate-annotations you use

_________________
Emmanuel


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.