javax.servlet.ServletException: javax.naming.NameNotFoundException: Name comp is not bound in this Context

I am getting following exception while connecting to a database in spring framework.
Stacktrace:

org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:524)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:417)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)root cause
javax.servlet.ServletException: javax.naming.NameNotFoundException: Name comp is not bound in this Context
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:850)

StringBuilder in Java

StringBuilder was introduced in Java 1.5 (5.0). StringBuilder is mutable sequence of characters. This class is almost similar to StringBuffer, but with no guarantee of synchronization i.e. instances of StringBuilder are not safe in multithreaded environment. If such is the case then it is recommended that the StringBuffer is used. Avoiding the overhead of synchronization makes the StringBuilder very slightly faster.

Technology