致banq: eclipse数据源连接池提示Missing application web.xml, *错误 ?

08-03-30 athlonzeng
eclipse mysql tomcat等都安装好了,普通的数据库的连接很正常,但是最近在做数据源连接池是就出现了很多问题。恳请高手指教啊!!
首先,在eclipse中提示错误如下:(是服务器提示)为什么啊?
HTTP Status 404 - /gst/index.jsp

--------------------------------------------------------------------------------

type Status report

message /gst/index.jsp

description The requested resource (/gst/index.jsp) is not available.


--------------------------------------------------------------------------------

Apache Tomcat/5.0.28

然后是下面的提示:
2008-3-30 9:49:15 org.apache.catalina.core.StandardHostDeployer install
信息: Processing Context configuration file URL file:E:\Tomcat 5.0\conf\Catalina\localhost\ch12.xml
2008-3-30 9:49:15 org.apache.catalina.startup.ContextConfig applicationConfig
信息: Missing application web.xml, using defaults only StandardEngine[Catalina].StandardHost[localhost].StandardContext[/ch12]

我的工程目录是D:\workspace\ch12,里面的文件都齐全,其中WEB-INF中是有web.xml文件的啊!代码如下
web.xml

<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.4"
xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
<resource-ref>
<description>DB Connection </description>
<res-ref-name>jdbc/mysql </res-ref-name>
<res-type>javax.sql.DataSource </res-type>
<res-auth>Container </res-auth>
</resource-ref>
<welcome-file-list>
<welcome-file>index.html </welcome-file>
<welcome-file>index.htm </welcome-file>
<welcome-file>index.jsp </welcome-file>
</welcome-file-list>


</web-app>


我在tomcat 的conf/Catalina/localhost下建立了 ch12.xml文件。代码如下
ch12.xml
<Context path="/ch12" docBase="D:\workspace\ch12" reloadable="true">
<Resource name="jdbc/mysql" auth="Container" type="javax.sql.DataSource"
maxActive="100" maxIdle="30" maxWait="10000"
username="root" password="12345678"
driverClassName="com.mysql.jdbc.Driver"
url="jdbc:mysql://localhost:3306/mysql?autoReconnect=true"/>
</Context>
我的server.xml文件买有更改,数据库都创建好的丫!



恳请指教!!

猜你喜欢