Exception in thread "main" org.springframework.beans.factory.BeanCreationException: Error creating bean with name '.....Service' defined in file [D:\work....\applicationContext.xml]: Initialization of bean failed; nested exception is java.lang.NoSuchMethodError: javax.persistence.PersistenceContext.properties()[Ljavax/persistence/PersistenceProperty;
Caused by: java.lang.NoSuchMethodError: javax.persistence.PersistenceContext.properties()[Ljavax/persistence/PersistenceProperty;
at org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.addIfPresent(PersistenceAnnotationBeanPostProcessor.java:327)
at org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.access$000(PersistenceAnnotationBeanPostProcessor.java:148)
at org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor$2.doWith(PersistenceAnnotationBeanPostProcessor.java:304)
at org.springframework.util.ReflectionUtils.doWithMethods(ReflectionUtils.java:226)
at org.springframework.util.ReflectionUtils.doWithMethods(ReflectionUtils.java:203)
Problema de librerías, algun jar incompatible.
Solución:sacar los jars de las libs de spring o de algun lugar confiable
Suscribirse a:
Enviar comentarios (Atom)
1 comentario:
please give me the solution for this error.
Publicar un comentario