Home > database >  JSP configuration connection pool
JSP configuration connection pool

Time:10-07

The Servlet service () for the Servlet/JSP in context with the path [/chapter8 connect to the database] threw the exception [javax.mail. Servlet. ServletException: javax.mail. Naming. NameNotFoundException: Name JDBC/linkpool is not bound in this context, Unable to find [JDBC]] with root cause

Javax.mail. Naming. NameNotFoundException: Name JDBC/linkpool is not bound in this Context, Unable to find [JDBC].

The at org. Apache. Naming. NamingContext. Lookup (NamingContext. Java: 816)
The at org. Apache. Naming. NamingContext. Lookup (NamingContext. Java: 173)
The connection pool at org. Apache. JSP _jsp. _jspService (149) test connection pool _jsp. Java:
The at org. Apache. Jasper. Runtime. HttpJspBase. Service (HttpJspBase. Java: 70)
The at javax.mail. Servlet. HTTP. HttpServlet. Service (HttpServlet. Java: 741)
At org. Apache. Jasper. Servlet. JspServletWrapper. Service (476) JspServletWrapper. Java:
The at org. Apache. Jasper. Servlet. JspServlet. ServiceJspFile (JspServlet. Java: 386)
At org. Apache. Jasper. Servlet. JspServlet. Service (330) JspServlet. Java:
The at javax.mail. Servlet. HTTP. HttpServlet. Service (HttpServlet. Java: 741)
The at org. Apache. Catalina. Core. ApplicationFilterChain. InternalDoFilter (ApplicationFilterChain. Java: 231)
The at org. Apache. Catalina. Core. ApplicationFilterChain. DoFilter (ApplicationFilterChain. Java: 166)
At org, apache tomcat, websocket server WsFilter. DoFilter (WsFilter. Java: 52)
The at org. Apache. Catalina. Core. ApplicationFilterChain. InternalDoFilter (ApplicationFilterChain. Java: 193)
The at org. Apache. Catalina. Core. ApplicationFilterChain. DoFilter (ApplicationFilterChain. Java: 166)
The at org. Apache. Catalina. Core. StandardWrapperValve. Invoke (StandardWrapperValve. Java: 199)
The at org. Apache. Catalina. Core. StandardContextValve. Invoke (StandardContextValve. Java: 96)
The at org. Apache. Catalina. The authenticator. AuthenticatorBase. Invoke (AuthenticatorBase. Java: 528)
The at org. Apache. Catalina. Core. StandardHostValve. Invoke (StandardHostValve. Java: 139)
The at org. Apache. Catalina. Valves. ErrorReportValve. Invoke (ErrorReportValve. Java: 81)
The at org. Apache. Catalina. Valves. AbstractAccessLogValve. Invoke (AbstractAccessLogValve. Java: 678)
The at org. Apache. Catalina. Core. StandardEngineValve. Invoke (StandardEngineValve. Java: 87)
At org. Apache. Catalina. Connector. CoyoteAdapter. Service (343) CoyoteAdapter. Java:
At org. Apache. Coyote. Http11. Http11Processor. Service (798) Http11Processor. Java:
The at org. Apache. Coyote. AbstractProcessorLight. Process (AbstractProcessorLight. Java: 66)
The at org. Apache. Coyote. AbstractProtocol $ConnectionHandler. Process (AbstractProtocol. Java: 810)
At org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun NioEndpoint. Java: (1498)
The at org.apache.tomcat.util.net.SocketProcessorBase.run (SocketProcessorBase. Java: 49)
The at Java. Util. Concurrent. ThreadPoolExecutor. RunWorker (Unknown Source)
The at Java. Util. Concurrent. ThreadPoolExecutor $Worker. The run (Unknown Source)
At org, apache tomcat. Util. Threads. TaskThread $WrappingRunnable. Run (61) TaskThread. Java:
The at Java. Lang. Thread. The run (Unknown Source)

The above is the error message
Before this, I've tried all the solutions to the problem on the Internet, but, to use

Main test before, is the Connection variable con value is null, but I have tried to solve this problem, all useless ~
Ask what a great god save the topic main

Main use of phyStudy tomcat8 + + ecplise, the main also use sqlserver2012 even, but still above the same problems

CodePudding user response:

Now make sure the DataSource variable ds value is null
  • Related