Hi,

I added new attribute called "<xs:attribute name="validate"
type="xs:string"/>" to repository/resources/rxt.xsd and added new RXT with
validate attribute in some fields.

Now when I'm going to update the rxt it gives the following error. That's
due to ManageGenericArtifactService using
org.wso2.carbon.governance.services.util.Util to validate updated content.
But that services.ui.Util class uses "service-ui-config.xsd" hardcoded in
it to validate.

Is it correct to put "<xs:attribute name="validate" type="xs:string"/>" in
"service-ui-config.xsd" too? In fact what are the usages
of service-ui-config.xsd and rxt.xsd?


[2012-11-26 18:26:51,914] ERROR
{org.wso2.carbon.governance.services.util.Util} -  Unable to validate the
given xml configuration
org.xml.sax.SAXParseException: cvc-complex-type.3.2.2: Attribute 'validate'
is not allowed to appear in element 'field'.
 at
org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown
Source)
at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source)
 at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
 at
org.apache.xerces.impl.xs.XMLSchemaValidator$XSIErrorReporter.reportError(Unknown
Source)
at org.apache.xerces.impl.xs.XMLSchemaValidator.reportSchemaError(Unknown
Source)
 at org.apache.xerces.impl.xs.XMLSchemaValidator.processAttributes(Unknown
Source)
at org.apache.xerces.impl.xs.XMLSchemaValidator.handleStartElement(Unknown
Source)
 at org.apache.xerces.impl.xs.XMLSchemaValidator.startElement(Unknown
Source)
at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown
Source)
 at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)
 at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
 at
org.apache.xerces.jaxp.validation.StreamValidatorHelper.validate(Unknown
Source)
at org.apache.xerces.jaxp.validation.ValidatorImpl.validate(Unknown Source)
 at javax.xml.validation.Validator.validate(Unknown Source)
* at
org.wso2.carbon.governance.services.util.Util.validateOMContent(Util.java:56)
*
* at
org.wso2.carbon.governance.services.util.Util.validateOMContent(Util.java:92)
*
* at
org.wso2.carbon.governance.generic.services.ManageGenericArtifactService.setArtifactUIConfiguration(ManageGenericArtifactService.java:317)
*
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
 at org.apache.axis2.rpc.receivers.RPCUtil.invokeS

Thanks
-- 
Chethiya Abeysinghe
Software Engineer; WSO2, Inc.;  http://wso2.com/
email: [email protected]
blog: chethiya3000.blogspot.com
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to