This server will be upgraded at 3pm Sydney time on December 3rd (December 2nd, 8pm PST) and will be down for up to 30 minutes.
This documentation relates to the latest version of Confluence.
If you are using an earlier version, please go to the documentation home page and select the relevant version.

Confluence and SOAP on Resin

All Versions
Click for all versions
Confluence 2.10 Documentation

Index

Symptom

The WSDL generated by Confluence on the Resin application server is invalid. Attempting to parse it gives you an error like this (using Axis as the client):

WSDLException (at /wsdl:definitions/types): faultCode=INVALID_WSDL: Encountered illegal extension element 'types' in the context of a 'javax.wsdl.Definition'. Extension elements must be in a namespace other than WSDL's.:

Cause

The default XML parser included with the Resin application server is incompatible with the Axis SOAP library, and causes Axis to generate an invalid WSDL file. You can find information about this issue here:

Solution

The solution is to override Resin's default XML parser by placing the following within the <server> section of resin.conf:

<system-property javax.xml.parsers.DocumentBuilderFactory="org.apache.xerces.jaxp.DocumentBuilderFactoryImpl"/> 
<system-property javax.xml.parsers.SAXParserFactory="org.apache.xerces.jaxp.SAXParserFactoryImpl"/>

(You can also make this configuration per web-app by putting it in the <web-app> section. For more information see this page: JAXP - specifying XML and XSLT implementations)

The Confluence issue for this error is here:

Labels

installation installation Delete
resin resin Delete
resin3 resin3 Delete
soap soap Delete
axis axis Delete
troubleshooting troubleshooting Delete
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.