Announcement Announcement Module
Collapse
No announcement yet.
EndPointInterceptors calling twice Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • EndPointInterceptors calling twice

    Hi,

    I have a Project with Spring MVC, Spring WS, Spring Security and JSF2. I have defined two interceptors for Spring WS, and when I debug the application, I can see that every request pass throws by the interceptors twice. ¿Do you have an idea of what is happening?

    This is the configuration of the web.mxl:

    <!—SPRING WS- ->
    <servlet>
    <servlet-name>spring-ws</servlet-name>
    <servlet-class>org.springframework.ws.transport.http.Messag eDispatcherServlet</servlet-class>
    <init-param>
    <param-name>transformWsdlLocations</param-name>
    <param-value>true</param-value>
    </init-param>
    <init-param>
    <param-name>contextConfigLocation</param-name>
    <param-value>/WEB-INF/spring/ws/spring-ws-servlet.xml</param-value>
    </init-param>
    </servlet>
    <servlet-mapping>
    <servlet-name>spring-ws</servlet-name>
    <url-pattern>/jsiom/services/</url-pattern>
    </servlet-mapping>

    <!—SPRING MVC 
    <servlet>
    <servlet-name>springMVCServlet</servlet-name>
    <servlet-class>org.springframework.web.servlet.DispatcherSe rvlet</servlet-class>
    <init-param>
    <param-name>contextConfigLocation</param-name>
    <param-value>/WEB-INF/spring/appServlet/servlet-context.xml</param-value>
    </init-param>
    <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet-mapping>
    <servlet-name>springMVCServlet</servlet-name>
    <url-pattern>/app/*</url-pattern>
    </servlet-mapping>


    The interceptors:

    <sws:interceptors>
    <ref local="messageContextHolderInterceptor"/>

    <ref local="soapInterceptor"/>
    </sws:interceptors>

    Thank you!
Working...
X