salut,
ce post ressemble à un autre que j'ai posé récemment mais ce n'est pas le même; j'ai une erreur de configuration par un .xml de spring; voici l'erreur:
et voici le fichier de configuration:Testcase: dao.InitDB: Caused an ERROR
Error creating bean with name 'entityManagerFactory' defined in class path resource [spring-config-dao.xml]: Invocation of init method failed; nested exception is org.hibernate.AnnotationException: java.lang.NoSuchMethodException: org.hibernate.validator.ClassValidator.<init>(java.lang.Class, java.util.ResourceBundle, org.hibernate.validator.MessageInterpolator, java.util.Map, org.hibernate.annotations.common.reflection.ReflectionManager)
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [spring-config-dao.xml]: Invocation of init method failed; nested exception is org.hibernate.AnnotationException: java.lang.NoSuchMethodException: org.hibernate.validator.ClassValidator.<init>(java.lang.Class, java.util.ResourceBundle, org.hibernate.validator.MessageInterpolator, java.util.Map, org.hibernate.annotations.common.reflection.ReflectionManager)
Caused by: org.hibernate.AnnotationException: java.lang.NoSuchMethodException: org.hibernate.validator.ClassValidator.<init>(java.lang.Class, java.util.ResourceBundle, org.hibernate.validator.MessageInterpolator, java.util.Map, org.hibernate.annotations.common.reflection.ReflectionManager)
j' ai ajouté (pour voir) le jar de hibernate-validator, téléchargé à partir du site d'hibernate, mais je ne trouve pas de méthode "init" dedans...
Code : Sélectionner tout - Visualiser dans une fenêtre à part 
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
olivier.

 

 
		
		 
         
			
			

 
   
 


 Error creating bean with name 'entityManagerFactory'
 Error creating bean with name 'entityManagerFactory'
				 Répondre avec citation
  Répondre avec citation
Partager