Announcement Announcement Module
Collapse
No announcement yet.
problem with spring-ws <sws:interceptors> Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • problem with spring-ws <sws:interceptors>

    I am using spring 3.0 and spring-ws 2.0

    following is my config file

    Code:
    <?xml version="1.0" encoding="UTF-8"?>
    <beans xmlns="http://www.springframework.org/schema/beans" 
           xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
           xmlns:jee="http://www.springframework.org/schema/jee" 
           xmlns:tx="http://www.springframework.org/schema/tx" 
           xmlns:oxm="http://www.springframework.org/schema/oxm" 
           xmlns:security="http://www.springframework.org/schema/security"
           xmlns:sws="http://www.springframework.org/schema/web-services"
           xmlns:context="http://www.springframework.org/schema/context"
           xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd 
                               http://www.springframework.org/schema/jee http://www.springframework.org/schema/jee/spring-jee-3.0.xsd
                               http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-3.0.xsd
                               http://www.springframework.org/schema/oxm http://www.springframework.org/schema/oxm/spring-oxm-1.5.xsd
                               http://www.springframework.org/schema/security http://www.springframework.org/schema/security/spring-security-3.0.3.xsd
                               http://www.springframework.org/schema/web-services http://www.springframework.org/schema/web-services/web-services-2.0.xsd
                               http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd">
        
        <context:component-scan base-package="com.ecws"/>
        
        <bean id="castorMarshaller" class="org.springframework.oxm.castor.CastorMarshaller">
            <property name="mappingLocations">
                <list>
                    <value>classpath:resources/castor/mappings/DistanceAzimuthCalculateWS_cm.xml</value>
                </list>
            </property>
        </bean>
        
        <sws:annotation-driven marshaller="castorMarshaller" unmarshaller="castorMarshaller"/>
        
        <sws:interceptors>
            <bean id="wsSecurityInterceptor" class="org.springframework.ws.soap.security.xwss.XwsSecurityInterceptor">
                <property name="policyConfiguration" value="/WEB-INF/securityPolicy.xml"/>
                <property name="callbackHandler" ref="springSecurityHandler"/>
            </bean>
        </sws:interceptors>
            
        <bean id="springSecurityHandler" class="org.springframework.ws.soap.security.xwss.callback.SpringPlainTextPasswordValidationCallbackHandler">
            <property name="authenticationManager" ref="authenticationManager"/>
        </bean>
        
        <security:authentication-manager alias="authenticationManager">
            <security:authentication-provider user-service-ref="userDetailsService"/>
        </security:authentication-manager>
       
        
        <security:user-service id="userDetailsService">
            <security:user name="akshay" password="akshay" authorities="ROLE_USER, ROLE_ADMIN" />
            <security:user name="anuj" password="anuj" authorities="ROLE_USER" />
        </security:user-service>
        
        
        <import resource="geography/ecws-distanceAzimuthCalculate.spring" />
    </beans>


    and i get following error
    Code:
    java.lang.NoSuchMethodError: org.springframework.util.xml.DomUtils.getChildElements(Lorg/w3c/dom/Element;)Ljava/util/List;
    	at org.springframework.ws.config.InterceptorsBeanDefinitionParser.parse(InterceptorsBeanDefinitionParser.java:49)
    	at org.springframework.beans.factory.xml.NamespaceHandlerSupport.parse(NamespaceHandlerSupport.java:73)
    	at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1335)
    	at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1325)
    	at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:136)
    	at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.registerBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:93)
    	at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:493)
    	at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:390)
    	... 59 more
    Seems some compatibility issue between spring-ws and spring core. or may be a bug as well... please respond soon

  • #2
    If use spring core 3.0.5 , it will get resolved.

    Comment


    • #3
      Still getting this issue with spring core 3.0.5

      Comment


      • #4
        I am having this issue as well, I wondered if anyone has any idea what the solution of this might be if upgrading to 3.0.5 is not working?

        Comment

        Working...
        X