Search code examples
javaspringweb-servicesmavensoap

Wss4jSecurityInterceptor Class not found error


I want to use org.springframework.ws.soap.security.wss4j.Wss4jSecurityInterceptor in my web application. In pom.xml I have added

<dependency>
    <groupId>org.springframework.ws</groupId>
    <artifactId>spring-ws-core</artifactId>
    <version>2.2.1.RELEASE</version>
</dependency>

dependency property. But In the spring configuration it says 'org.springframework.ws.soap.security.wss4j.Wss4jSecurityInterceptor' Not found. Any idea?


Solution

  • Looking for org.springframework.ws.soap.security.wss4j.Wss4jSecurityInterceptor at http://www.findjar.com/ I see it is present on this maven location: http://mirrors.ibiblio.org/pub/mirrors/maven2/org/springframework/ws/spring-ws-security/1.5.6/spring-ws-security-1.5.6.jar

    that should be

    <groupId>org.springframework.ws</groupId>
    <artifactId>spring-ws-security</artifactId>
    <version>1.5.6</version>
    

    There are probably other versions to, but it is a totally different artifact. To be sure, just look if the missing class is actually present in the jar you expect it to be present.