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
Add below lines in tomcat-users.xml.
tomcat-users.xml
Restart tomcat/service.