Results 1 to 4 of 4

Thread: Spring 1.5.2 with Security Interceptor

  1. #1
    Join Date
    Jun 2008
    Posts
    2

    Default Spring 1.5.2 with Security Interceptor

    Could anybody help me figure out what the problem is. I am receiving the following errors. Build is done with Maven 2.0.9

    10:46:39,593 ERROR [ws]:253 - Servlet.service() for servlet ws threw exception
    java.lang.NoClassDefFoundError: com/sun/org/apache/xml/internal/security/Init
    at com.sun.xml.wss.impl.SecurableSoapMessage.<clinit> (SecurableSoapMessa
    ge.java:94)
    at com.sun.xml.wss.ProcessingContext.setSOAPMessage(P rocessingContext.ja
    va:217)
    at com.sun.xml.wss.impl.misc.XWSSProcessor2_0Impl.cre ateProcessingContex
    t(XWSSProcessor2_0Impl.java:151)
    at org.springframework.ws.soap.security.xwss.XwsSecur ityInterceptor.vali
    dateMessage(XwsSecurityInterceptor.java:159)
    at org.springframework.ws.soap.security.AbstractWsSec urityInterceptor.ha
    ndleRequest(AbstractWsSecurityInterceptor.java:104 )
    at org.springframework.ws.server.MessageDispatcher.di spatch(MessageDispa
    tcher.java:213)
    at org.springframework.ws.server.MessageDispatcher.re ceive(MessageDispat
    cher.java:168)
    at org.springframework.ws.transport.support.WebServic eMessageReceiverObj

  2. #2
    Join Date
    Dec 2005
    Posts
    929

    Default

    Since you're using Maven, do you have the following dependency?

    Code:
    <dependency>
    	<groupId>com.sun.xml.wss</groupId>
    	<artifactId>xws-security</artifactId>
    	<version>2.0-fcs</version>
    </dependency>

  3. #3
    Join Date
    Jun 2008
    Posts
    2

    Default

    Yes, not directly though. I believe spring-ws references it as a dependency, but 2.0-FCS (upper case). I've read a posting that mentions that as a problem.
    BTW, i switched to wss4j interceptor and got the service working, xws is still a problem.

  4. #4
    Join Date
    Jul 2005
    Location
    Rotterdam, the Netherlands
    Posts
    1,562

    Default

    The class the stack trace mentions (com/sun/org/apache/xml/internal/security/Init) is part of SUNs re-packaging of Apache XML sec. It can be found here: https://springframework.svn.sourcefo...ty/xmlsec/2.0/
    Arjen Poutsma

    Spring Web Services Dev Lead
    Please read the FAQ

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •