If you see a "incompatible types" error while compiling generated stubs and type classes, for example:
found : com.ibm.wsrf.notification.ResumeFailedFaultType
required: java.lang.Throwable
This usually might happen for types defined for faults. Sometimes WSDL2Java will generate for a wsdl fault a proper class that extends AxisFault and sometimes it will generate a plain type bean. In the latter case this will result in the above error. One solution to this problem is to move the stub generation for your service to the top of the list. Another solution is delete (before compile step) the stubs generated for all WSRF namespaces. Yet another solution is to tell WSDL2Java program not to generate classes for all WSRF namespaces (using -x option).