Topic
1 reply Latest Post - ‏2012-11-24T18:30:08Z by RajniJain
SystemAdmin
SystemAdmin
1192 Posts
ACCEPTED ANSWER

Pinned topic Adding a User Field in Application.xml /web.xml

‏2012-11-16T19:57:48Z |
Hi,

I am trying to setup security roles in the web.xml/ application.xml but the hats is giving me error, Has anyone tried this option before.

cvc-complex-type.2.4.a: Invalid content was found starting with element 'principal-name'. One of '{"http://
java.sun.com/xml/ns/javaee":role-name}' is expected.

Thank you
Sudhakar
Updated on 2012-11-24T18:30:08Z at 2012-11-24T18:30:08Z by RajniJain
  • RajniJain
    RajniJain
    12 Posts
    ACCEPTED ANSWER

    Re: Adding a User Field in Application.xml /web.xml

    ‏2012-11-24T18:30:08Z  in response to SystemAdmin
    Hi Sudhakar,

    From error message i feel , you are using <principal-name> tag under <security-role> tag in web.xml and expected is <role-name>
    Kindly share web.xml if you are using <role-name> tag only and still see the error message.

    Regards,
    Rajni