Quantcast

odd webapp error. Attribute 'mainTitles' is not allowed to appear in element 'titles'.

classic Classic list List threaded Threaded
4 messages Options
| Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

odd webapp error. Attribute 'mainTitles' is not allowed to appear in element 'titles'.

JD Wong
The webconfig-model.xml file is not valid.
cvc-complex-type.3.2.2: Attribute 'mainTitles' is not allowed to appear in element 'titles'.

I get this error with one of my mines, but not the other even though the webconfig-model.xml files are identical.

-JD

_______________________________________________
dev mailing list
[hidden email]
http://mail.intermine.org/cgi-bin/mailman/listinfo/dev
| Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: odd webapp error. Attribute 'mainTitles' is not allowed to appear in element 'titles'.

JD Wong
When I re-release the webapp on the mine that worked, I now get this error

-JD

On Wed, Mar 14, 2012 at 12:33 PM, JD Wong <[hidden email]> wrote:
The webconfig-model.xml file is not valid.
cvc-complex-type.3.2.2: Attribute 'mainTitles' is not allowed to appear in element 'titles'.

I get this error with one of my mines, but not the other even though the webconfig-model.xml files are identical.

-JD


_______________________________________________
dev mailing list
[hidden email]
http://mail.intermine.org/cgi-bin/mailman/listinfo/dev
| Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: odd webapp error. Attribute 'mainTitles' is not allowed to appear in element 'titles'.

Daniela Butano
Hi,
it's incorret set mainTitles as attribute of the element titles, so this is not not allowed:

    <titles mainTitles="symbol" />

mainTitles has to be set as attribute of the element title:

       <titles>
         <title mainTitles="symbol"/>
       </titles>
cheers,
daniela
 
When I re-release the webapp on the mine that worked, I now get this error

-JD

On Wed, Mar 14, 2012 at 12:33 PM, JD Wong <[hidden email]> wrote:
The webconfig-model.xml file is not valid.
cvc-complex-type.3.2.2: Attribute 'mainTitles' is not allowed to appear in element 'titles'.

I get this error with one of my mines, but not the other even though the webconfig-model.xml files are identical.

-JD

_______________________________________________ dev mailing list [hidden email] http://mail.intermine.org/cgi-bin/mailman/listinfo/dev


_______________________________________________
dev mailing list
[hidden email]
http://mail.intermine.org/cgi-bin/mailman/listinfo/dev
| Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: odd webapp error. Attribute 'mainTitles' is not allowed to appear in element 'titles'.

Julie Sullivan
In reply to this post by JD Wong
Hi JD,

In 0.99 we've started to validate the webconfig-model.xml file, and it
looks like you have invalid config.  Specifically:

"Attribute 'mainTitles' is not allowed to appear in element 'titles'"

This is the correct way to configure titles in report pages:

<class className="org.intermine.model.bio.BioEntity">
<headerconfig>
  <titles>
    <title mainTitles="symbol|primaryIdentifier"
numberOfMainTitlesToShow="1" subTitles="*organism.shortName*" />
  </titles>
</headerconfig>

This is invalid:

    <titles mainTitles="symbol|primaryIdentifier"
numberOfMainTitlesToShow="1" subTitles="*organism.shortName*" />

I believe the default file that came with new mines was wrong.

See here for more details:

http://intermine.org/wiki/ReportPage

> When I re-release the webapp on the mine that worked, I now get this error
>
> -JD
>
> On Wed, Mar 14, 2012 at 12:33 PM, JD Wong <[hidden email]> wrote:
>
>> The webconfig-model.xml file is not valid.
>> *cvc-complex-type.3.2.2: Attribute 'mainTitles' is not allowed to appear
>> in element 'titles'.*
>> *
>> *
>> I get this error with one of my mines, but not the other even though the
>> webconfig-model.xml files are identical.
>>
>> -JD
>>
> _______________________________________________
> dev mailing list
> [hidden email]
> http://mail.intermine.org/cgi-bin/mailman/listinfo/dev
>

_______________________________________________
dev mailing list
[hidden email]
http://mail.intermine.org/cgi-bin/mailman/listinfo/dev
Loading...