[mule-user] Schema Not working properly while enabling schema-validation-enabled = true

43 views
Skip to first unread message

Subramanian Thiruppathi

unread,
Dec 6, 2010, 9:01:44 AM12/6/10
to us...@mule.codehaus.org
I am getting following different error for enabling schema-validation-enabled = true.

*some time (1) :*
Dec 6, 2010 11:46:10 AM org.apache.cxf.wsdl.EndpointReferenceUtils createSchema
WARNING: SAXException for newSchema() on
org.xml.sax.SAXParseException: src-resolve: Cannot resolve the name 'Comments' to a(n) 'element declaration' component.
at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)


*some time (2) :*

WARNING: SAXException for newSchema() on
org.xml.sax.SAXParseException: s4s-elt-invalid-content.1: The content of 'schema' is invalid. Element 'include' is invalid, misplaced, or occurs too often.
at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)


Here is my code & config file..

mule config .xml

<cxf:features>
<spring:bean class="com.mastek.elixirna.integration.interceptor.SchemaValidationFeature"/>
</cxf:features>


SchemaValidationFeature.java

public class SchemaValidationFeature extends AbstractFeature {

@Override
public void initialize(Server server, Bus bus) {
server.getEndpoint().getService().put("schema-validation-enabled", true);
super.initialize(server, bus);
}

}

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email


Reply all
Reply to author
Forward
0 new messages