简体   繁体   English

Apache Tomcat针对Web应用程序返回404错误

[英]Apache Tomcat returns 404 error for Web Application

I have a Spring MVC application WAR file deployed in ${catalina_home}/webapps . 我在${catalina_home}/webapps部署了一个Spring MVC应用程序WAR文件。 Let's say the name of the WAR is abc.war and suppose, after tomcat unpacks the WAR and creates a folder abc in webapps folder, there is file named inside abc , in path app/abc.js .After running the tomcat server, I typed ' http://localhost:8090/abc/app/abc.js ` on the browser. 假设WAR的名称为abc.war并假设在tomcat解压缩WAR并在webapps文件夹中创建一个文件夹abc之后,在路径app/abc.js有一个名为abc文件。运行tomcat服务器后,我在浏览器上输入' http:// localhost:8090 / abc / app / abc.js` This returns an 404 error on the browser. 这将在浏览器上返回404错误。

Operating System: Windows 7
Apache Tomcat: version 7, running on PORT 8090.
Java version: 8

This setup is the same on all other systems with the team of developers I work with and it works for them on their system. 我与之合作的开发人员团队在所有其他系统上的设置均相同,并且适用于他们的系统。 But it does not work on my system. 但这在我的系统上不起作用。 Please can anybody help me with an insight why this could happen and possibly a fix will be great respite. 请任何人能帮助我了解为什么会发生这种情况,并且可能会有很大的喘息机会。 thanks. 谢谢。

Please find below point will effected on application 请注意以下几点将影响申请

  1. Database use access 数据库使用访问
  2. Set proper Environment variable (like. JDK,MAVEN) 设置适当的环境变量(例如JDK,MAVEN)
  3. check CPU and memory usages of other process 检查其他进程的CPU和内存使用情况
  4. check thread dumps 检查线程转储

Hope so its will help you :) 希望它能对您有所帮助:)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM