Dans le fichier de ressort applicationConfig.xml, l'intégration JAX-WS nécessite des schémas spécifiques. Je récemment utiliser avec succès ces déclarations:Spring et Jax-WS: où sont les schémas xsd?
- https://jax-ws.dev.java.net/spring/core.xsd
- https jax-ws.dev.java.net/spring/servlet.xsd
[Je dois supprimer toutes les URL (sauf un) parce que c'est ma première question]
Le fichier commence par les déclarations suivantes:
<beans xmlns="http www.springframework.org/schema/beans" xmlns:xsi="http www.w3.org/2001/XMLSchema-instance" xmlns:aop="http www.springframework.org/schema/aop" xmlns:tx="http www.springframework.org/schema/tx" xmlns:context="http www.springframework.org/schema/context" xmlns:ws="http jax-ws.dev.java.net/spring/core" xmlns:wss="http jax-ws.dev.java.net/spring/servlet" xsi:schemaLocation="http www.springframework.org/schema/beans http www.springframework.org/schema/beans/spring-beans.xsd http www.springframework.org/schema/aop http www.springframework.org/schema/aop/spring-aop.xsd http www.springframework.org/schema/tx http www.springframework.org/schema/tx/spring-tx.xsd http www.springframework.org/schema/context http www.springframework.org/schema/context/spring-context.xsd http jax-ws.dev.java.net/spring/core https jax-ws.dev.java.net/spring/core.xsd http jax-ws.dev.java.net/spring/servlet https jax-ws.dev.java.net/spring/servlet.xsd">
(...)
<ws:service id="myService" bean="#myWS" />
<wss:binding url="/services/myws" service="#myService" />
Maintenant, une migration se produit pour le site Web jax-ws.dev.java.net. Ces fichiers ne sont pas trouvés et j'ai quelques erreurs sous Tomcat et Eclipse:
org.xml.sax.SAXParseException: schema_reference.4: Impossible de lire le document de schéma « https://jax-ws.dev. java.net/spring/core.xsd ', car 1) n'a pas pu trouver le document; 2) le document n'a pas pu être lu; 3) l'élément racine du document ne l'est pas.
Y at-il une solution ou quelque chose pour éviter cette erreur?
Merci
Hé, je suis confronté au même problème. Avez-vous trouvé une solution? –