简体   繁体   English

拦截器上的Spring-ws错误

[英]Spring-ws error on interceptor

I have an issued on my spring-ws-servlet.xml 我在spring-ws-servlet.xml上发布了一个

when i start the ws i receive this error: 当我启动ws时,我收到此错误:

cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'ws:interceptors'.

this is the line with error (spring-ws-servlet.xml): 这是出现错误的行(spring-ws-servlet.xml):

<ws:interceptors><bean class="com.nin.fi.sw.schema.WSLoggingInterceptor"/></ws:interceptors>

And this is the header of these file: 这是这些文件的标题:

    <?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:tx="http://www.springframework.org/schema/tx"
    xmlns:context="http://www.springframework.org/schema/context"
    xmlns:ws="http://www.springframework.org/schema/web-services"
    xmlns:util="http://www.springframework.org/schema/util"

    xsi:schemaLocation="http://www.springframework.org/schema/beans 
                        http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
                        http://www.springframework.org/schema/context
                        http://www.springframework.org/schema/context/spring-context-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/util
                        http://www.springframework.org/schema/util/spring-util-2.0.xsd
                        http://www.springframework.org/schema/tx
                        http://www.springframework.org/schema/tx/spring-tx-2.5.xsd">

Libs: 库: 在此处输入图片说明

I tried to attach differentes .xsd but withoud any success. 我试图附加不同的.xsd,但没有成功。 I dont know what im doing wrong. 我不知道我在做什么错。

You haven't added a schema location for web-services 您尚未为web-services添加架构位置

http://www.springframework.org/schema/web-services
http://www.springframework.org/schema/web-services/web-services-2.0.xsd

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM