Oui en effet mais j'avais déjà les autres jar.
Par contre j'ai tester si je met cela pour le spring-ws-servlet.xml :
1 2 3 4 5 6 7 8 9 10
| <beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:oxm="http://www.springframework.org/schema/oxm"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
http://www.springframework.org/schema/oxm
http://www.springframework.org/schema/oxm/spring-oxm-1.5.xsd">
<bean id="personService" class="example.service.PersonServiceImpl"
init-method="initialize" /> |
C'est à dire en changeant :
http://www.springframework.org/schem...-beans-2.5.xsd
par :
http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
J'ai une erreur
Multiple annotations found at this line:
- cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'oxm:jaxb2-marshaller'.
- schema_reference.4: Failed to read schema document 'http://www.springframework.org/schema/oxm/spring-oxm-1.5.xsd', because 1) could not find the document; 2) the
document could not be read; 3) the root element of the document is not <xsd:schema>.
Sur les lignes :
1 2 3 4
| <oxm:jaxb2-marshaller id="marshaller"
contextPath="org.example.person.schema" />
<oxm:jaxb2-marshaller id="unmarshaller"
contextPath="org.example.person.schema" /> |
Et si je commente ces lignes (même je sais qu'elles me sont utiles) j'obtiens l'erreur suivante sur mon navigateur :
org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [example.service.PersonServiceImpl] for bean with name 'personService' defined in ServletContext resource [/WEB-INF/spring-ws-servlet.xml]; nested exception is java.lang.ClassNotFoundException: example.service.PersonServiceImpl
Du coup je sais pas trop si je m'approche ou non d'une solution.
Partager