2013-08-22 2 views
0

스프링 3.1을 사용하여 웹 서비스를 구현하려고합니다. 하지만 서버를 시작할 때 오류가 발생하고 난 정말 이유를 모르겠어요JAXWS에서 스프링 3.1 네임 스페이스 문제가 발생했습니다.

2013-08-22 09:58:03,602 [main] ERROR org.apache.catalina.core.ContainerBase[Catalina]. [localhost].[/OcrMonitor] - Servlet /OcrMonitor threw load() exception 
org.xml.sax.SAXParseException; lineNumber: 29; columnNumber: 33; cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'wss:binding'. 

난 이미이 문제를 해결하기 위해 몇 시간을 수색했지만 아무것도 나를 도울 수있는 것을 찾을 수 없습니다.

여기 applicationContext.xml의 일부입니다 :

<?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:context="http://www.springframework.org/schema/context" 
    xmlns:p="http://www.springframework.org/schema/p" 
    xmlns:tx="http://www.springframework.org/schema/tx" 
    xmlns:mvc="http://www.springframework.org/schema/mvc" 
    xmlns:task="http://www.springframework.org/schema/task" 
    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.1.xsd 
     http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.1.xsd 
     http://www.springframework.org/schema/jee http://www.springframework.org/schema/jee/spring-jee-3.1.xsd 
     http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-3.1.xsd 
     http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc-3.1.xsd 
     http://www.springframework.org/schema/task http://www.springframework.org/schema/task/spring-task-3.1.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"> 

    <context:annotation-config /> 
    <context:component-scan base-package="com.xyz" /> 

    <tx:annotation-driven /> 
    <mvc:annotation-driven /> 
    <task:annotation-driven /> 

    <wss:binding url="/iceBoxWS" > 
    <wss:service> 
     <ws:service bean="#IceBoxWs" > 
      <ws:handlers> 
       <ref bean="IceBoxBo" /> 
      </ws:handlers> 
     </ws:service> 
    </wss:service> 
    </wss:binding> 

    <bean id="IceBoxWs" class="com.xyz.web.service.IceBoxWS"> 
    <property name="iceBoxBo" ref="IceBoxBo" /> 
    </bean> 

    <bean id="IceBoxBo" class="com.xyz.web.service.IceBoxServiceImpl"/> 

그리고 관련 pom.xml 파일의 부분 :

<!-- Spring --> 

<dependency> 
    <groupId>org.springframework</groupId> 
    <artifactId>spring-webmvc</artifactId> 
    <version>3.1.1.RELEASE</version> 
    <exclusions> 
     <exclusion> 
      <groupId>commons-logging</groupId> 
      <artifactId>commons-logging</artifactId> 
     </exclusion>        
    </exclusions>      
</dependency> 
<dependency> 
    <groupId>org.springframework</groupId> 
    <artifactId>spring-tx</artifactId> 
    <version>3.1.1.RELEASE</version> 
</dependency> 
<dependency> 
    <groupId>org.springframework</groupId> 
    <artifactId>spring-orm</artifactId> 
    <version>3.1.1.RELEASE</version> 
</dependency> 
<dependency> 
    <groupId>org.springframework</groupId> 
    <artifactId>spring-jms</artifactId> 
    <version>3.1.1.RELEASE</version> 
</dependency>    

<!-- JAX-WS --> 
<dependency> 
    <groupId>com.sun.xml.ws</groupId> 
    <artifactId>jaxws-rt</artifactId> 
    <version>2.2.3</version> 
</dependency> 

<!-- Library from java.net, integrate Spring with JAX-WS --> 
<dependency> 
    <groupId>org.jvnet.jax-ws-commons.spring</groupId> 
    <artifactId>jaxws-spring</artifactId> 
    <version>1.8</version> 
    <exclusions> 
     <exclusion> 
      <groupId>org.springframework</groupId> 
      <artifactId>spring-core</artifactId> 
     </exclusion> 
     <exclusion> 
      <groupId>org.springframework</groupId> 
      <artifactId>spring-context</artifactId> 
     </exclusion> 
     <exclusion> 
      <groupId>com.sun.xml.stream.buffer</groupId> 
      <artifactId>streambuffer</artifactId> 
     </exclusion> 
     <exclusion> 
      <groupId>org.jvnet.staxex</groupId> 
      <artifactId>stax-ex</artifactId> 
     </exclusion> 
    </exclusions> 
</dependency> 

어떤 아이디어 나 도움을 대부분 감사합니다!

답변

0

병이없는 것 같습니다. 퐁 (pom)에서 xbean-spring-2.8.jar처럼 보입니다. 프로젝트 종속성을 다운로드하고 다시 빌드하십시오.

관련 문제