java.lang.Nosuchmethoderror: org.hibernate.cfg.Environment.verifyProperties(Ljava/util/Map;)V

Asked

Viewed 332 times

1

Work in a Java project and when changing the machine I had to inform the libraries of the project again, but when compiling this generating an error in the output.

Exit:

Exception in thread "main" java.lang.NoSuchMethodError: org.hibernate.cfg.Environment.verifyProperties(Ljava/util/Map;)V
at org.hibernate.boot.registry.StandardServiceRegistryBuilder.build(StandardServiceRegistryBuilder.java:245)
at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.buildServiceRegistry(EntityManagerFactoryBuilderImpl.java:1020)
at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:835)
at org.hibernate.jpa.HibernatePersistenceProvider.createEntityManagerFactory(HibernatePersistenceProvider.java:75)
at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:54)
at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:52)

But I don’t know where to look for the problem.

1 answer

1


i have had similar problems to this by using different versions of some library.

Confirms that the libraries of the new machine are the same as the old one.

  • really some jar were in the older version.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.