Announcement Announcement Module
Collapse
No announcement yet.
java.lang.NoSuchMethodError: AnnotationConfiguration.setEntityNotFoundDelegate Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • java.lang.NoSuchMethodError: AnnotationConfiguration.setEntityNotFoundDelegate

    I've small project running on spring 3.0.0.M3 using hibernate-core 3.3.2, hibernate-annotations 3.4.0 and hibernate-entitymanager 3.4.0.

    Running basic unit tests for my dao objects with junit4 works fine. My persistence context gets loaded without problems and the test succeed.

    When I load the same context using a contextloaderlistener I receive the following stacktrace:

    Code:
    Caused by: java.lang.NoSuchMethodError: org.hibernate.cfg.AnnotationConfiguration.setEntityNotFoundDelegate(Lorg/hibernate/proxy/EntityNotFoundDelegate;)V
    	at org.hibernate.ejb.Ejb3Configuration.<init>(Ejb3Configuration.java:135)
    	at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:130)
    	at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.createNativeEntityManagerFactory(LocalContainerEntityManagerFactoryBean.java:225)
    	at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.afterPropertiesSet(AbstractEntityManagerFactoryBean.java:288)
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1368)
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1334)
    	... 53 more
    Does anyone have a clue where this comes from?

  • #2
    Solved it myself.
    Transitive dependencies placed hibernate 3.0.5 on my classpath

    Comment

    Working...
    X