aspose file tools*
The moose likes Other Application Frameworks and the fly likes Hibernate - problem with hibernate and annotations version compatibility Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Bookmark "Hibernate - problem with hibernate and annotations version compatibility" Watch "Hibernate - problem with hibernate and annotations version compatibility" New topic
Author

Hibernate - problem with hibernate and annotations version compatibility

Mary House
Greenhorn

Joined: Mar 13, 2012
Posts: 1
This is my first post, so excuse any mistake I make.

I'm doing a server with hibernate core 4.1 and annotations 3.4, and I have the following error:


java.lang.NoSuchMethodError: org.hibernate.cfg.AnnotationConfiguration.getEventListeners()Lorg/hibernate/event/EventListeners;
at org.hibernate.cfg.AnnotationConfiguration.enableHibernateSearch(AnnotationConfiguration.java:895)
at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:865)
at hiberna.dit.TestHibernate.doGet(TestHibernate.java:66)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:224)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:927)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:987)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:579)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:307)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)



I've been told that it could be that the versions are not compatible, any information is welcome.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Hibernate - problem with hibernate and annotations version compatibility
 
Similar Threads
Can not compile the jsp file
Unsupported JNDI Object
Struts error cannot find bean
Strange Internal Error from JSF
Having trouble with running jsp file on tomcat server