我在TOMCAT5.5下程序运行正常,在TOMCAT6.0下提示我连接不上数据库了.请问那位朋友知道为什么啊!
启动时提示:Null component Catalina:type=DataSource,path=/credit,host=localhost,class=javax.sql.DataSource,name="jdbc/xypj"
查询错误提示:Name java:comp is not bound in this Context
server.xml
<Context docBase="D:/creditquery/WebContent" path="/credit" reloadable="true">
<Resource
auth="Container"
name="jdbc/xypj"
type= "javax.sql.DataSource"
driverClassName="oracle.jdbc.driver.OracleDriver"
url="jdbc

racle:thin:@192.168.5.5:1521:yg"
username="xypj"
password="xypj"
maxActive= "10" maxIdle= "100"
maxWait= "3000"/>
</Context>
看网上说在WEB.XML写
<web-app>
<resource-ref>
<description>DB Connection</description>
<res-ref-name>jdbc/xypj</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
我写了也没好使.请问是为什么啊.