为什么我的jsp网页打不开呢?

易点互联 2004-09-03 02:30:16
在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>
请各位高手帮忙看看
...全文
895 5 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
htl 2004-09-04
  • 打赏
  • 举报
回复
上面的这段xml是数据源连接池的,应该写在web.xml中,或者去了它
power17 2004-09-03
  • 打赏
  • 举报
回复
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>
shadow7788 2004-09-03
  • 打赏
  • 举报
回复
看下什么错误啊,应该XML有报错得啊,先运行下XML
zhlmmc 2004-09-03
  • 打赏
  • 举报
回复
打不开的具体情况是什么?
boykent 2004-09-03
  • 打赏
  • 举报
回复
怎么运行的,出什么错误?

81,122

社区成员

发帖
与我相关
我的任务
社区描述
Java Web 开发
社区管理员
  • Web 开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧