7

I'm using JBoss 4 with Java 6u29. I generated some classes for a soap webservice with wsimport. Everything works fine except for one thing.

Whenever the webservice responds with a soap fault I get this exception:

java.lang.NoClassDefFoundError: Could not initialize class com.sun.xml.internal.ws.fault.SOAPFaultBuilder

The class is included in the JRE. I have no idea why this class isn't found. I searched on google but wasn't successfull. Do you have any idea what could cause this error?

5
  • Look for a related thread at stackoverflow.com/questions/1494738/… Commented Oct 8, 2012 at 19:06
  • 1
    That thread is about CXF. I'm not using it. I'm using the reference implementation that comes with Java 6. So there is no need to add any dependencies, right? The class is in the rt.jar which I assume is always loaded. Commented Oct 9, 2012 at 8:14
  • I'm facing exactly the same problem. Have you resolved this issue? Commented Feb 11, 2015 at 18:33
  • No, we updated to Wildfly 8.2. Commented Feb 19, 2015 at 13:56
  • Try to give a try at this answer. Commented Feb 5, 2016 at 8:53

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.