简体   繁体   English

Spring / Velocity / Maven / Tomcat-“请求的资源不可用”

[英]Spring/Velocity/Maven/Tomcat - “requested resource is not available”

I'm writing web application with using Spring, Velocity and Tomcat as container. 我正在使用Spring,Velocity和Tomcat作为容器编写Web应用程序。 My problem is that everything worked fine when I launched application on Windows 7, but some day I was forced to replace it with Windows 8. I've installed Eclipse IDE for Java EE Developers, m2e for Maven Integration, Velocity tools and Tomcat 7.x. 我的问题是,当我在Windows 7上启动应用程序时一切正常,但是有一天我被迫用Windows 8替换了它。我已经为Java EE开发人员安装了Eclipse IDE,为Maven Integration安装了m2e,安装了Velocity工具和Tomcat 7。 X。 When I started application, and typed "http://localhost:8080/web/hello" I've got "HTTP Status 404 - The requested resource is not available" error. 当我启动应用程序并键入“ http:// localhost:8080 / web / hello”时,出现"HTTP Status 404 - The requested resource is not available"错误。 I have no idea what is going on, because it worked earlier. 我不知道这是怎么回事,因为它可以更早地工作。 If it's needed I can paste some source code, but I think problem is with some wrong path after installing new Windows. 如果需要,我可以粘贴一些源代码,但是我认为问题出在安装新Windows之后,路径错误。 Thanks in advance for help 预先感谢您的帮助

Check your console log from the application startup. 在应用程序启动时检查控制台日志。 It probably shows you an error there and isn't starting up your application. 它可能向您显示一个错误,并且没有启动您的应用程序。

Otherwise it should you the log from Spring starting up successfully. 否则,您应该从Spring成功启动日志。

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

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