注册 登录
编程论坛 J2EE论坛

连接池错误

xtzl130 发布于 2006-05-28 08:59, 826 次点击

type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

javax.servlet.ServletException: Name jdbc is not bound in this Context
	org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:867)
	org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:800)
	org.apache.jsp.myapp.test_jsp._jspService(test_jsp.java:75)
	org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:311)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:856)

root cause

javax.naming.NameNotFoundException: Name jdbc is not bound in this Context
	org.apache.naming.NamingContext.lookup(NamingContext.java:814)
	org.apache.naming.NamingContext.lookup(NamingContext.java:197)
	org.apache.jsp.myapp.test_jsp._jspService(test_jsp.java:47)
	org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:311)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:856)

note The full stack trace of the root cause is available in the Tomcat logs.

3 回复
#2
xtzl1302006-05-28 19:51
#3
zhou2008-03-30 11:50
提示: 作者被禁止或删除 内容自动屏蔽,只有管理员可见
#4
Starlove2008-04-03 10:47
server.xml context.xml web.xml配置有问题
注意Tomcat的版本
版本不同,配置方法不同
1