Announcement Announcement Module
Collapse
No announcement yet.
Web Services Security Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    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.

    Comment


    • #3
      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.

      Comment

      Working...
      X