[英]Run JSP from netbeans project in Tomcat Server
Hi I already develop my application using Netbeans IDE. 嗨,我已经使用Netbeans IDE开发了我的应用程序。 Now I want to run my application in Tomcat server for actual use.
现在,我想在Tomcat服务器中运行我的应用程序以进行实际使用。 I already copy my project to tomcat/webapps.
我已经将项目复制到tomcat / webapps。
But when I tried to run my application: 但是,当我尝试运行我的应用程序时:
http://localhost:8081/myAppFolder/
it gives me an error message :The requested resource (/Opportunities-Registration/) is not available. 它给我一个错误消息:请求的资源(/ Opportunities-Registration /)不可用。
I should change the url to make it work: 我应该更改网址以使其正常工作:
http://localhost:8081/Opportunities-Registration/web/index.jsp
How can I open my application using http://localhost:8081/myAppFolder/
insteand of http://localhost:8081/Opportunities-Registration/web/index.jsp
? 如何使用
http://localhost:8081/myAppFolder/
http://localhost:8081/Opportunities-Registration/web/index.jsp
http://localhost:8081/myAppFolder/
insteand打开我的应用程序?
Update: All my servlet is also become 404 not found 更新:我所有的servlet也都变成404 not found
Thank you 谢谢
SOLVED 解决了
Solution:
1. copy .war file which is contained in dist folder of your netbeans project
2. Place your .war file to tomcat/webapps
3. Start your tomcat
4. You are good to go
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.