We have a soap project which is working fine in designer tester. When we deploy it on the administrator, why are we getting the following error: org.xml.sax.SAXException: validation error: undeclared attribute: [xxx]?

We have a soap project which is working fine in designer tester. When we deploy it on the administrator, why are we getting the following error: org.xml.sax.SAXException: validation error: undeclared attribute: [xxx]?

book

Article ID: KB0086611

calendar_today

Updated On:

Products Versions
TIBCO ActiveMatrix BusinessWorks -
Not Applicable -

Description

Resolution:
One of the reasons could be:

In your WSDL types/Schema if you have an import statement

&lttypes>

        &ltxs:schema targetNamespace="http://new.webservice.namespace">

            &ltxs:import namespace="http://fault.webservices.isb.com" schemaLocation="./schemas/fault.xsd"/>

....



–       When we create an EAR file containing process that is using above WSDL – this imported XSD (which is fault.xsd in this case) is not added in to EAR.



In this case, you need to manually add these schemas to the Shared Resources of the project archive before you build the EAR file.

Keywords:- Deployment, shared resources, import schema

Issue/Introduction

We have a soap project which is working fine in designer tester. When we deploy it on the administrator, why are we getting the following error: org.xml.sax.SAXException: validation error: undeclared attribute: [xxx]?