I recently was working on a Spring MVC startup project sample where I used maven built tool. When I run my server using jetty I got this processing instruction error and I found that my web.xml
was having an extra tag before the
tag and it started with the
tag instead.
So I removed the below tag which was the start tag,
and had the below tag,
as the start tag of my web.xml
and it solved my issue.
Note: Please ensure there is no comments, tags, free spaces or any unwanted characters left before the
tag. This will mainly throw these type of error while parsing the xml files.