为什么我的jsp网页打不开呢?
在manager里看到这个站点是关闭了
在server.xml里的配置是:
<Context path="/HelloJSP" reloadable="true" docBase="E:\Software\eclipse-SDK-2.1.2-win32\eclipse\workspace\HelloJSP" workDir="E:\Software\eclipse-SDK-2.1.2-win32\eclipse\workspace\HelloJSP\work"/>
web-inf里web.xml:
<?xml version="1.0" encoding="ISO-8859-1"?>
<web-app 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/web-app_2_4.xsd"
version="2.4">
<display-name>test-JSP</display-name>
<description>
test first jsp
</description>
</web-app>
<web-app>
<!-- Database Config start -->
<resource-ref>
<description>connectDB test</description>
<res-ref-name>jdbc/connectDB</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
<!-- Database Config end -->
</web-app>
请各位高手帮忙看看
问题点数:20、回复次数:5Top
1 楼boykent(一路狂飙)回复于 2004-09-03 18:28:14 得分 0
怎么运行的,出什么错误?Top
2 楼zhlmmc(zhlmmc)回复于 2004-09-03 18:39:10 得分 0
打不开的具体情况是什么?Top
3 楼shadow7788(小小)回复于 2004-09-03 20:46:46 得分 0
看下什么错误啊,应该XML有报错得啊,先运行下XMLTop
4 楼power17()回复于 2004-09-03 21:14:29 得分 15
server.xml上显示你用过eclipse了。不过这个应该没有什么不对,我的也有。
web.xml上显示你做了连接池,不过这个可能就会有点问题了。因为你的server.xml上好像没
有留下什么连接池的迹象。你把下面的删除试一下。
<resource-ref>
<description>connectDB test</description>
<res-ref-name>jdbc/connectDB</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>Top
5 楼htl(雄猫.TOMCAT)回复于 2004-09-04 01:14:02 得分 5
上面的这段xml是数据源连接池的,应该写在web.xml中,或者去了它Top




