My login.xhtml
starts with:
XML Parsing Error: no root element found
The ERROR occurs when your client send a request like below:
curl -X GET --header 'Accept: application/json' 'http://192.168.1.249:9001/students/
you can see in header like 'Accept: application/json' this means the client only accept the server response in JSON format.
But Server produces a response type in XML content type and it will try to parse the XML to JSON. During this phase exception triggers.
SOLUTION :
Please change the response content type to application/json or Change the request header to 'Accept: application/xml'.
Thanks.