使用连接池连接 SQL Server 2000数据库

来源:百度知道 编辑:UC知道 时间:2024/09/20 07:38:26
我在使用连接池连接 SQL Server 2000数据库时出现:
… 使用连接池连接 SQL Server 2000数据库成功!
javax.naming.NameNotFoundException: Name jdbc is not bound in this Context
运行信息是:
2008-4-19 21:00:07 org.apache.coyote.http11.Http11Protocol init

信息: Initializing Coyote HTTP/1.1 on http-8083

2008-4-19 21:00:07 org.apache.catalina.startup.Catalina load

信息: Initialization processed in 906 ms

2008-4-19 21:00:07 org.apache.catalina.core.StandardService start

信息: Starting service Catalina

2008-4-19 21:00:07 org.apache.catalina.core.StandardEngine start

信息: Starting Servlet Engine: Apache Tomcat/5.0.27

2008-4-19 21:00:07 org.apache.catalina.core.StandardHost start

信息: XML validation disabled

2008-4-19 21:00:08 org.apache.catalina.core.StandardHost getDeployer

信息: Create Host deployer for direct deployment ( non-jmx )

2008-4-19 21:00:08 org.apache.coyote.http11.Http11Pr

造成这个问题的原因有很多.
请先检查242行是不是有不符合VBSCRIPT语法规则的地方
请确保连接池已经打开.
我觉得你那最大的可能就是查询语句有问题.
请先按照下面的方法查找死锁
use master
go
declare @spid int,@bl int
DECLARE s_cur CURSOR FOR
select 0 ,blocked
from (select * from sysprocesses where blocked>0 ) a
where not exists(select * from (select * from sysprocesses where blocked>0 ) b where a.blocked=spid)
union
select spid,blocked from sysprocesses where blocked>0
OPEN s_cur
FETCH NEXT FROM s_cur INTO @spid,@bl
WHILE @@FETCH_STATUS = 0
begin
if @spid =0
select '引起数据库死锁的是: '+ CAST(@bl AS VARCHAR(10)) + '进程号,其执行的SQL语法如下'
else
select '进程号SPID:'+ CAST(@spid AS VARCHAR(10))+ '被' + '进程号SPID:'+ CAST(@bl AS VARCHAR(10)) +'阻塞,其当前进程执行的SQL语法如下'
DBCC INPUTBUFFER (@bl )
FETCH NEXT FROM s_cur INTO @spid,@bl
end
CLOSE s_cur
DEALLOCATE s_cur

/*