tomcat启动,访问http://localhost:8080时报http status 404
来源:互联网 发布:网络推广sem 编辑:程序博客网 时间:2024/05/01 01:47
即:The requested resource (/) is not available.
什么原因?
如何解决?
原因是路径不对
配置tomcat时:
如果只想运行Eclipse工作空间的应用项目,可以选择“Use workspace metadata”;
反之如果希望同时运行其他Eclipse工作空间之外的应用项目,就可以选择“Use Tomcat installation”。
同时:
通过手动启动Tomcat时,是采用%TOMCAT_HOME%/webapps(包括docs,host-manager,manager,ROOT4个目录)作为默认的webapp目录的,
%TOMCAT_HOME%/webapps目录下包括ROOT,对应服务器的根目录“/”,也就是通过http://localhost:8080/访问看到的Tomcat Welcome页面。
如果在Eclipse中通过插件启动Tomcat,则是采用%ECLIPSE_WORKSPACE_HOME%/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps作为webapp目录的,wtpwebapps下没有ROOT webapp或者有时包括一个空的ROOT webapp。在这种情况下,访问http://localhost:8080/就会看到HTTP error 404 或者一个空白页面。如果把%TOMCAT_HOME%/webapps下的docs,host-manager,manager,ROOT目录拷贝到wtpwebapps目录下,此时也是可以通过http://localhost:8080/访问看到的Tomcat Welcome页面。
- tomcat启动,访问http://localhost:8080时报http status 404
- tomcat启动,访问http://localhost:8080时报http status 404
- tomcat启动,访问http://localhost:8080时报http status 404
- tomcat启动时报Error listenerStart错误,访问web服务时报HTTP Status 404错误
- tomcat启动时报Error listenerStart错误,访问web服务时报HTTP Status 404错误
- Tomcat启动时报Error listenerStart错误,访问web服务时报HTTP Status 404错误
- tomcat启动时报Error listenerStart错误,访问web服务时报HTTP Status 404错误
- eclipse启动tomcat 访问http://localhost:8080 报404错误
- eclipse启动tomcat 访问http://localhost:8080 报404错误
- eclipse启动tomcat 访问http://localhost:8080 报404错误
- eclipse启动tomcat 访问http://localhost:8080 报404错误
- eclipse启动tomcat 访问http://localhost:8080 报404错误
- eclipse启动tomcat 访问http://localhost:8080 报404错误
- eclipse启动tomcat 访问http://localhost:8080 报404错误
- eclipse启动tomcat 访问http://localhost:8080 报404错误
- eclipse启动tomcat 访问http://localhost:8080 报404错误
- eclipse启动tomcat 访问http://localhost:8080 报404错误
- tomcat启动正常,http://localhost:8080访问不了
- hdu 1199想用线段树,结果发现不好处理,某天突然想起这方法。。易懂,不好写。。。
- AU3--获得网卡mac地址
- 【设计模式攻略】结构型模式之Bridge模式
- 寻找第K大的数的方法总结
- oracle create view 记录
- tomcat启动,访问http://localhost:8080时报http status 404
- 互联网大佬们的创业忠告
- vc显示DIB
- 斜线/、反斜线\、双斜线//、双反斜线\\
- OGNL表达式struts2标签“%,#,$”
- 使用3COM DABS撘建PXE服务器。
- SqlConnection与IDispose的关系和用using的原因
- Pthread_Mutex_t Vs Pthread_Spinlock_t (转载)
- 假设检验