I search some page in stackoverflow to solve this problem, did follow some true answer but not working. I am new in spring , sorry. here is my dispatcher-servlet
Noticed in the your dispatcher-servlet.xml file you are missing "<?xml version="1.0" encoding="UTF-8"?>
".
Please add it to top of file and re-run. Let me know if it doesn't work.
I got the same problem, but after looking at the code closely, I found that my IDE was showing the error mark on the wrong line of code while the problem was arising because of an extra angular-bracket.
manually check whether there are unnecessary spaces tabs before each nodes, you can do with eclipse
regards
Yes, i experience thesame problem. I solved it by first: format the xml. Then i took a keen look through the lines, i found an extra closing tag (/>) which have been blocking the closing tag from seeing the open tag. So i removed the bug (/>) and the program deployed.
The problem was an uncommented line in the springsecurity.xml
which was missing when I commented the whole file and uncommented. Make sure you have the extra text commented or remove them.
Unfortunately mine was a simple mistake I type a '.' character in the middle.
Solved by just removing the '.' - so will get this type of error if any unused and unknown character is present in the configuration file.