I am getting this error after upgrading Hibernate to 3.5.4 from 3.2 with Spring 2.5 (unchanged) .BeanCreationException: Error creating bean with name '.PersistenceExceptionTranslationPostProcessor#0'ĭefined in class path resource : Initialization of bean failed The latest version of Hibernate available in my repository is 3.5.4-FINAL and 3.5.6-FINAL for the above artifacts I have already searched google and read similar posts of SO, but I want to know if there is a way to compare different versions of libraries/framework. Since I am using Hibernate as well, I wanted to know if there is a way I could find which version of Hibernate is compatible with a specific version of Spring. H, I want to upgrade Spring libraries in my web app. Open pom file in an editor and search for the word "hibernate" you can find the dependencies for your spring version. m2\repository\org\springframework\spring-orm\4.2.5.RELEASE\spring-orm-4.2.5.RELEASE.pom file location. If you can't execute the grep command in windows. Here you can find the dependency version used for hibernate-entitymanager. If you hover over the definition and perform a CTRL + LEFT_MOUSE_CLICK it will open the spring-orm pom xml.Now navigate to specific dependency where spring-orm is defined.Open the pom.xml in default editor in IDE.In your Eclipse IDE this can be found out quite easily. Of course you can try to use Spring with different version of Hibernate, but the versions from the POM are the less likely to give you some issues. The command above would result in the following output: hibernate-annotationsĪnd from the output above we can deduce that Spring 3.2.3.RELEASE supports Hibernate 4.1.9.Final and 3.3.2.GA. You can check this out in the spring-orm Maven POM.įor example to check the version of Hibernate used by Spring 3.2.3.RELEASE, you can issue the following shell command: grep -A 1 hibernate- ~/.m2/repository/org/springframework/spring-orm/3.2.3.RELEASE/spring-orm-3.2.3.RELEASE.pom
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |