Hi Ajith,
Thank you for the guidance!
To fix it I did the change to schema file: (at
/repository/resources/rxt.xsd).
........
<xs:complexType name="tableType">
<xs:sequence>
<xs:element name="subheading" minOccurs="0"
type="subheadingType"/>
<xs:element name="field" maxOccurs="unbounded"
type="fieldType"/>
</xs:sequence>
<xs:attribute name="columns" type="xs:integer"/>
<xs:attribute name="name" use="required"/>
*<xs:attribute name="maxoccurs" type="xs:string"/>*
</xs:complexType>
........
(I think "string" type is more suitable since it takes values like
"unbounded", 0, 15 etc.)
According to documentation on RXT [1], it is clearly mentioned that <table>
element can contain "maxoccurs" attribute.
Since ES validates all RXT definitions using the above mentioned xsd, it
should be a bug to be fixed.
[1]
https://docs.wso2.com/display/Governance460/Governance+Artifacts+Configuration+Model+Elements#GovernanceArtifactsConfigurationModelElements-ThemaxoccursElement
Thank You!
On Tue, Oct 7, 2014 at 9:55 PM, Ajith Vitharana <[email protected]> wrote:
> This is due to schema validation failed. So you can remove the "maxoccurs"
> attribute from "table" element OR changed the RXT schema to support that
> attribute.
>
> -Ajith
>
>
> On Tue, Oct 7, 2014 at 9:36 PM, Buddhima Wijeweera <[email protected]>
> wrote:
>
>> Hi All,
>>
>> Recently I found there's an error with deploying RXTs with "maxoccurs"
>> attribute. This error is getting only in tenant-mode (except for
>> super-tenant).
>>
>> I'm using ES version 1.2.0-M3 (
>> https://svn.wso2.org/repos/wso2/people/sameeram/es/ES1.2.0-M3/) and I
>> have put RXTs in "/repository/resources/rxts" location.
>>
>> Error I'm getting is:
>>
>> [2014-10-07 21:24:08,914] ERROR
>> {org.wso2.carbon.governance.list.util.CommonUtil} - RXT validation fails
>> due to: cvc-complex-type.3.2.2: Attribute 'maxoccurs' is not allowed to
>> appear in element 'table'.
>> [2014-10-07 21:24:08,915] ERROR
>> {org.wso2.carbon.governance.registry.extensions.listeners.RxtLoader} -
>> Failed to add rxt files to registry
>> org.wso2.carbon.registry.core.exceptions.RegistryException: Failed to add
>> rxt to registry
>> at
>> org.wso2.carbon.governance.registry.extensions.utils.CommonUtil.addRxtConfigs(CommonUtil.java:217)
>> at
>> org.wso2.carbon.governance.registry.extensions.listeners.RxtLoader.onLogin(RxtLoader.java:25)
>> at
>> org.wso2.carbon.core.services.callback.LoginSubscriptionManagerServiceImpl.triggerEvent(LoginSubscriptionManagerServiceImpl.java:42)
>> at
>> org.wso2.carbon.core.services.util.CarbonAuthenticationUtil.onSuccessAdminLogin(CarbonAuthenticationUtil.java:121)
>> at
>> org.wso2.carbon.core.services.authentication.AuthenticationAdmin.login(AuthenticationAdmin.java:118)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>> ........
>>
>> I would appreciate if someone can have a look on this issue.
>>
>> Thank You!
>>
>> --
>> Buddhima Wijeweera
>> Software Engineer; WSO2 Inc.; http://wso2.com ,
>>
>> Email: [email protected]
>> Blog: https://buddhimawijeweera.wordpress.com
>> GitHub Profile: https://github.com/Buddhima
>>
>> _______________________________________________
>> Dev mailing list
>> [email protected]
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Ajith Vitharana.
> WSO2 Inc. - http://wso2.org
> Email : [email protected]
> Mobile : +94772217350
>
>
--
Buddhima Wijeweera
Software Engineer; WSO2 Inc.; http://wso2.com ,
Email: [email protected]
Blog: https://buddhimawijeweera.wordpress.com
GitHub Profile: https://github.com/Buddhima
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev