HTTP Status 404 - /lib/--------------------------------------------------------------------------------type Status reportmessage /lib/description The requested resource (/lib/) is not available.这是什么错误?
来源:学生作业帮助网 编辑:作业帮 时间:2024/07/06 20:49:55
![HTTP Status 404 - /lib/--------------------------------------------------------------------------------type Status reportmessage /lib/description The requested resource (/lib/) is not available.这是什么错误?](/uploads/image/z/5109178-58-8.jpg?t=HTTP+Status+404+-+%2Flib%2F--------------------------------------------------------------------------------type+Status+reportmessage+%2Flib%2Fdescription+The+requested+resource+%28%2Flib%2F%29+is+not+available.%E8%BF%99%E6%98%AF%E4%BB%80%E4%B9%88%E9%94%99%E8%AF%AF%3F)
HTTP Status 404 - /lib/--------------------------------------------------------------------------------type Status reportmessage /lib/description The requested resource (/lib/) is not available.这是什么错误?
HTTP Status 404 - /lib/
--------------------------------------------------------------------------------
type Status report
message /lib/
description The requested resource (/lib/) is not available.
这是什么错误?
HTTP Status 404 - /lib/--------------------------------------------------------------------------------type Status reportmessage /lib/description The requested resource (/lib/) is not available.这是什么错误?
问题的根源在于没有找到你的文件,如果你确定文件路径没有问题,你要考虑你的过程是不是运行起来了.相关操作如下:
假设你的项目在文件夹test下,test 文件夹目录如下:
test----
|-你的index.jsp文件
|-WEB-INF---
|-web.xml
先把test文件夹放到webapps里,然后在
用manager deploy
WAR or Directory URL: /test
XML Configuration file URL: /test/WEB-INF
就可以了
先让tomcat找到你的文件啊
打开你的tomcat欢迎页面
左边有tomcat manager
进入:--输入用户名、密码
在Deploy部分
Context Path (optional):你的目录名比如你想通过
http://localhost:8080/web/test.jsp访问你的页面test.jsp你就需要填/web,
WAR or Directory URL:你的站点所在目录
如:file:d:/myweb
一定要注意用的/而不是\而且前边还有个file:
还可以这样
在Select WAR file to upload
浏览你的war文件(其实就是用winzip压缩后改后缀名的压缩文件)再Deploy
ok