Announcement Announcement Module
Collapse
No announcement yet.
Error using <sws:marshalling-endpoints/> Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Error using <sws:marshalling-endpoints/>

    I am trying to use the spring web services namespace and the marshalling-endpoint in my servlet file. I keep getting XSD errors or some kind. I'm suspecting that I'm using the wrong version of a jar somewhere. I verified that I can bring the XSD up in the browser, so the URL is correct. I am using Spring 2.5.6 and Spring-WS 1.5.6 with Java 1.6.

    Here is the root element in my bean configuration file:

    Code:
    <beans xmlns="http://www.springframework.org/schema/beans" 
    	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    	xmlns:context="http://www.springframework.org/schema/context"
    	xmlns:oxm="http://www.springframework.org/schema/oxm"
    	xmlns:sws="http://www.springframework.org/schema/web-services"
        xsi:schemaLocation="http://www.springframework.org/schema/beans 
    	    http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
    	    http://www.springframework.org/schema/web-services
    	    http://www.springframework.org/schema/web-services/web-services-1.5.xsd
    	    http://www.springframework.org/schema/context
    	    http://www.springframework.org/schema/context/spring-context-2.5.xsd
    	    http://www.springframework.org/schema/oxm
    	    http://www.springframework.org/schema/oxm/spring-oxm-1.5.xsd">
    Here are the errors that I am seeing:

    Code:
    [19-10:04:59]WARN: org.springframework.util.xml.SimpleSaxErrorHandler.warning(): Ignored XML validation warning [Thread-1]
    org.xml.sax.SAXParseException: schema_reference.4: Failed to read schema document 'http://www.springframework.org/schema/web-services/web-services-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>.
    
    [19-10:04:59]ERROR: org.springframework.web.context.ContextLoader.initWebApplicationContext(): Context initialization failed [Thread-1]
    org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 21 in XML document from ServletContext resource [/WEB-INF/web-services-context.xml] is invalid; nested exception is org.xml.sax.SAXParseException: cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'sws:marshalling-endpoints'.
    
    Caused by: org.xml.sax.SAXParseException: cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'sws:marshalling-endpoints'.
    Here are the jars that I am using:

    Code:
    acegi-security-1.0.6.jar
    activation-1.1.1.jar
    aspectjrt.jar
    aspectjweaver.jar
    commons-beanutils-1.8.0.jar
    commons-collections-3.2.1.jar
    commons-fileupload-1.2.1.jar
    commons-io-1.4.jar
    commons-lang-2.3.jar
    commons-logging-1.1.1.jar
    easymock.jar
    jai_imageio.jar
    jaxen-1.1.jar
    jdom-1.1.jar
    jms-1.1.jar
    jmxri-1.2.1.jar
    jmxtools-1.2.1.jar
    json.jar
    jstl.jar
    junit.jar
    log4j-1.2.15.jar
    mail-1.4.jar
    ojdbc14.jar
    saaj-api-1.3.jar
    saaj-impl-1.3.2.jar
    saxon9-dom.jar
    saxon9.jar
    servlet-api.jar
    spring-test.jar
    spring-webmvc.jar
    spring-ws-1.5.6-all.jar
    spring.jar
    standard.jar
    stax-api-1.0.1.jar
    wsdl4j.jar
    wss4j-1.5.6.jar
    xml-apis-1.3.02.jar
    xmlsec-1.3.0.jar

  • #2
    Switching to Spring Web Services 1.5.8 solved this issue. I'm not sure why though.

    Comment

    Working...
    X