The page you tried to access (/manager/login.do) does not exist
来源:互联网 发布:985 知乎 编辑:程序博客网 时间:2024/04/29 06:31
前些天我把以前完成的项目的后台管理系统用来作新项目的后台管理平台,以前的项目用的是MyEclipse(简单,而且顺手)作为开发工具,现在将项目移到Idea平台上面来。所有的东西配置好,tomcat8一启动么有什么错误,当我登录的时候就出现
The page you tried to access (/manager/login.do) does not exist.The Manager application has been re-structured for Tomcat 7 onwards and some of URLs have changed. All URLs used to access the Manager application should now start with one of the following options:/manager/html for the HTML GUI/manager/text for the text interface/manager/jmxproxy for the JMX proxy/manager/status for the status pagesNote that the URL for the text interface has changed from "/manager" to "/manager/text".You probably need to adjust the URL you are using to access the Manager application. However, there is always a chance you have found a bug in the Manager application. If you are sure you have found a bug, and that the bug has not already been reported, please report it to the Apache Tomcat team.
啊!当时我蒙了,因为测试了其他请求,完全能用,就只有这个请求不能用,我仔细检查struts2配置文件,但都没有问题,我一直在想这个错误怎么没有见到过,而且我的项目关tomcat本生没有事吧。后来我试了一下请求localhost:8080/manager,因为struts2上面配置了默认请求。结果我就开心了,出现下面界面
我开心知道这不是我项目有问题,很简单的,是因为我的这个请求端口是8080,tomat管理页面的端口也是8080,这下明白了吧,我们的请求被tomcat本身给拦截了。以前我的项目端口是8081,而且后面还跟上项目名称所以完全不会有这种情况。处理这种情况只有
- 改端口号
- Idea默认访问时“/”我们将它改成”/项目名”
- 修改我们请求,像struts2 修改action的namespace,比如将
<package name="测试index" namespace="/Manager" extends="struts-default">
改为<package name="测试index" namespace="/Manager" extends="struts-default">
看完觉得还行有帮助记得给赞。
tomat说明链接
阅读全文
0 0
- The page you tried to access (/manager/login.do) does not exist
- arcgis 不能Classified。Unique histogram does not exist.Do you want to compute unique values?
- Sorry, you requested a page that does not exist.
- the vsphere client could not connect to you do not have permission to login to the server
- Tomcat Manager App--403 Access Denied You are not authorized to view this page
- tomcat进Manager 403 Access Denied You are not authorized to view this page
- runInstaller-- you do not have sufficient permissions to access the inventory
- Unable to access the IIS metabase.You do not have sufficient privilege
- Unable to access the IIS metabase.You do not have sufficient privilege
- yii-You are not allowed to access this page
- yii-You are not allowed to access this page
- yii-You are not allowed to access this page
- yii gii You are not allowed to access this page.
- 解决文件图片等上传DebugFilesKeyError: You tried to access the file "file" in the request
- The connection does not exist.
- openshift:Perhaps your account does not have write access to this directory? You can change the cac
- Variable has existed/does not exist ,Did you mean to set reuse=True/None?
- the application you have selected does not exist 或者 套装ID无效 Xcode 提交APP失败
- XML基础
- c++ extern
- Nginx+uWSGI+Django安装过程中遇到的问题
- Docker Ubuntu容器安装ping
- 脚本ssh自动登录linux服务器
- The page you tried to access (/manager/login.do) does not exist
- 菜鸟学Python
- SQL学习《SQL必会知识》
- Makefile --- 1 输出Makefile中定义的变量的值
- JSP基础知识一
- mysql数据库配置远程访问
- mongodb排序&分页查询
- HDU 3085 Nightmare Ⅱ (双向bfs+曼哈顿距离运用)
- swift-image上传图片时需要旋转在上传服务器代码