web services - JAX-WS Schema http://jax-ws.dev.java.net/spring/servlet.xsd not able to be found -
i implementing jax-ws spring framework.
the next spring applicationcontext.xml
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/xmlschema-instance" 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-3.0.xsd http://jax-ws.dev.java.net/spring/core http://jax-ws.dev.java.net/spring/core.xsd http://jax-ws.dev.java.net/spring/servlet http://jax-ws.dev.java.net/spring/servlet.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd ">
however, eclipse complaining:
referenced file contains errors (http://jax-ws.dev.java.net/spring/servlet.xsd).
after investigation, find url: http://jax-ws.dev.java.net/spring/servlet.xsd not exist. instead, seems move to: http://jax-ws.java.net/spring/servlet.xsd (you can open link in brower)
therefore, updated xsd schema url http://jax-ws.dev.java.net/spring/servlet.xsd http://jax-ws.java.net/spring/servlet.xsd
now applicationcontext.xml looks this:
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/xmlschema-instance" 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-3.0.xsd http://jax-ws.dev.java.net/spring/core http://jax-ws.java.net/spring/core.xsd http://jax-ws.dev.java.net/spring/servlet http://jax-ws.java.net/spring/servlet.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd ">
actually alter eclipse error goes away. problem after launching web service in tomcat 7, next runtime error instead:
org.xml.sax.saxparseexception; linenumber: 20; columnnumber: 29; schema_reference.4: failed read schema document 'http://jax-ws.java.net/spring/servlet.xsd', because 1) not find document; 2) document not read; 3) root element of document not . @ com.sun.org.apache.xerces.internal.util.errorhandlerwrapper.createsaxparseexception(errorhandlerwrapper.java:198) @ com.sun.org.apache.xerces.internal.util.errorhandlerwrapper.warning(errorhandlerwrapper.java:99) @ com.sun.org.apache.xerces.internal.impl.xmlerrorreporter.reporterror(xmlerrorreporter.java:433)
please advise.
thank much. regards,
your problem alter location http://jax-ws.dev.java.net/spring/servlet.xsd http://jax-ws.java.net/spring/servlet.xsd. though latter 1 right url, not match defined in jaxws-spring.jar meta-inf/spring.schema file. file should have next content
http\://jax-ws.dev.java.net/spring/core.xsd=spring-jax-ws-core.xsd http\://jax-ws.dev.java.net/spring/servlet.xsd=spring-jax-ws-servlet.xsd http\://jax-ws.dev.java.net/spring/local-transport.xsd=spring-jax-ws-local-transport.xsd
spring uses mapping search schema in classpath rather internet. schema files located @ root of jaxws-spring.jar file.
please take registering handler , schema
java web-services spring jax-ws
No comments:
Post a Comment