I have used glassfish server in netbeans, now I changed to tomcat and when I run my web application that I have created in glassfish gives me the error :
D
I really should make this a comment if have enough reputation:
PLEASE the first comment by @Satya advicing to remove should be ignored (at least on windows - which am sure of). check this if don't believe me
After many hours on SO I resolved the issue by:
Check that xml file again, I mean properly for syntax errors. Use a good editor for xml, notepad++ help me figured out my error. Thanks to this SO answer
Save the file and start Tomcat