I was trying to make a servlet for webapp, In INTELLIJ IDEA. While deploying there was no error but when the servlet is called in the web, it says
“jakarta.servlet.ServletException: Error instantiating servlet class [com.servlet.AddServlet]”
I searched in project structure to see if the module is added to path but still no avail
New contributor
siddhant agarwal is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
3