魔兽破碎群岛飞行成就:有关tomcat运行jsp时出现的问题

来源:百度文库 编辑:杭州交通信息网 时间:2024/04/30 14:58:18
我在地址栏里输入http://localhost:8080/test/index.jsp,却不能正确显示页面,说是The requested resource (/test/index.jsp) is not available,可是我在server.xml中已经设过路径了,请问这是怎么回事呢?
你指的“加载”是指运行tomcat吗,我重启过了,还是不行。

看看重新加载tomcat了吗?
<Context path="/test" docBase="d:\test" debug="0"/>
是这样写的吗?在</Host>前面

先把test文件夹放到webapps里
test 文件夹目录如下:
test----
|-你的index.jsp文件
|-WEB-INF---
|-web.xml

然后用manager deploy 你的文件
参数如下:
WAR or Directory URL: /test
XML Configuration file URL: /test/WEB-INF
就可以了