Results 1 to 3 of 3

Thread: Web Services Security

  1. #1
    Join Date
    Apr 2010
    Location
    Bangalore
    Posts
    43

    Default Web Services Security

    Hi All,
    I am trying to implement security in our web service, but i am getting the following exception
    Code:
    Caused by: java.lang.NoClassDefFoundError: com/sun/xml/wss/impl/WssSoapFaultException
    	at java.lang.Class.getDeclaredConstructors0(Native Method)
    	at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389)
    	at java.lang.Class.getConstructor0(Class.java:2699)
    	at java.lang.Class.getDeclaredConstructor(Class.java:1985)
    I am using JBOSS as the application server. can anyone please help me resolve this exception..

  2. #2
    Join Date
    Dec 2010
    Posts
    315

    Default

    Quote Originally Posted by Prasi View Post
    Hi All,
    I am trying to implement security in our web service, but i am getting the following exception
    Code:
    Caused by: java.lang.NoClassDefFoundError: com/sun/xml/wss/impl/WssSoapFaultException
    	at java.lang.Class.getDeclaredConstructors0(Native Method)
    	at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389)
    	at java.lang.Class.getConstructor0(Class.java:2699)
    	at java.lang.Class.getDeclaredConstructor(Class.java:1985)
    I am using JBOSS as the application server. can anyone please help me resolve this exception..
    Ahhhhhh...we have the same problem. It's a pain in the ass

    You're missing a jar. That's clear but that's not the real problem.

    The real problem is getting a copy of the affected jar. You need a xws-security-3.0.jar (or lower versions may work). It's very hard to find it in the official repos. Even using Maven doesn't give any result for this jar. I had to dig lots of forums. The official site doesn't have any links.

    It's about 2MB. If you have a copy of Spring WS or Spring Integration. You might find an old copy of that jar there. Good luck.

  3. #3

    Default

    Here should work:

    http://download.java.net/maven/1/com.sun.xml.wss/jars/

    We are actually using: xws-security-2.0-FCS.jar, but I assume newer should work to as the other posted indicated.

Posting Permissions

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