WLS 8.1: java.io.IOException: Failed to process webservices DD file.weblogic.webservice.dd.DDProcessingException: Couldn't find required attribute "type" (Doc ID 1221963.1)

Last updated on JUNE 09, 2016

Applies to:

Oracle Weblogic Server - Version: 8.1 and later   [Release: and later ]
Information in this document applies to any platform.

Symptoms

On developing a Webservice that is being called from a specific client which excepts faults to be available in WSDL message definition, you will get a 'javax.xml.rpc.soap.SOAPFaultException'. The exception is not by default added in the web-services.xml when package is build using an ant job, from servicegen tool of WebLogic.

If you try to include the fault tag manually as mentioned in "Creating the web-services.xml File Manually" the application fails to get deployed complaining that the specific 'type' is not available.

Error message:
 java.io.IOException: Failed to process webservices DD file.weblogic.webservice.dd.DDProcessingException: Could not find required attribute "type" for element <fault> (Line 17, Column 15)
at weblogic.webservice.dd.ParsingHelper.getRequiredAttribute(ParsingHelper.java:287)
 at weblogic.webservice.dd.DDLoader.processFaultElement(DDLoader.java:1460)
 at weblogic.webservice.dd.DDLoader.processFaultElements(DDLoader.java:1432)
 at weblogic.webservice.dd.DDLoader.processParamsElement(DDLoader.java:1183)
 at weblogic.webservice.dd.DDLoader.processOperationElement(DDLoader.java:1153)
 at weblogic.webservice.dd.DDLoader.processOperationElements(DDLoader.java:998)
at weblogic.webservice.dd.DDLoader.processOperationsElement(DDLoader.java:986)
at weblogic.webservice.dd.DDLoader.processWebServiceElement(DDLoader.java:497)
 at weblogic.webservice.dd.DDLoader.processWebServiceElements(DDLoader.java:310)
at weblogic.webservice.dd.DDLoader.processWebServicesElement(DDLoader.java:298)
 at weblogic.webservice.dd.DDLoader.load(DDLoader.java:276)
 at weblogic.servlet.internal.dd.DescriptorLoader.initializeWebServices(DescriptorLoader.java:784)
 at weblogic.servlet.internal.dd.DescriptorLoader.<init>(DescriptorLoader.java:448)
at weblogic.servlet.internal.dd.DescriptorLoader.<init>(DescriptorLoader.java:327)
....

Changes

N/A.

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms