java - How to choose the right JDK JavaEE Spring version -


generally use following framework in project: spring mvc + hibernate tomcat container.

and never care version, later better.

this concrete sdk, framework version in project:

jdk 1.7 spring framework:     spring-webmvc >> 4.1.6.release hibernate:     hibernate-entitymanager >> 4.3.10.final         org.hibernate.javax.persistence >> hibernate-jpa-2.1-api >> 1.0.0.final tomcat 7 

the application works under tomcat, meet problems when deploy application tomcat java ee server(which support javaee 5 only).

one of error got like:

java.lang.nosuchmethoderror: javax.persistence.table.indexes() 

it seems indexes new method in jpa2.1(which supported in javaee 7) while java ee server not provide it.

but shown, hibernate dependency org.hibernate.javax.persistence >> hibernate-jpa-2.1-api >> 1.0.0.final provide methods, why java ee server can not use that?

and solve problme, given javaee server support javaee 5 only, should under consideration when choosing jdk, frameworks?

jpa 2.1 javaee7 , java 7 onwards.

for javaee compatibity jdk versions, take @ previous stackoverflow question.


Comments

Popular posts from this blog

twig - Using Twigbridge in a Laravel 5.1 Package -

jdbc - Not able to establish database connection in eclipse -

firemonkey - How do I make a beep sound in Android using Delphi and the API? -