您好,我已经使用 Netbeans IDE 开发了我的应用程序。 现在我想在 Tomcat 服务器中运行我的应用程序以供实际使用。我已经将我的项目复制到 tomcat/webapps。
但是当我尝试运行我的应用程序时:
http://localhost:8081/myAppFolder/
它给我一条错误消息:请求的资源 (/Opportunities-Registration/) 不可用。
我应该更改 url 以使其工作:
http://localhost:8081/Opportunities-Registration/web/index.jsp
如何使用 http://localhost:8081/myAppFolder/
代替 http://localhost:8081/Opportunities-Registration/web/index.jsp< 打开我的应用程序
?
更新: 我所有的servlet也都变成404 not found
谢谢
最佳答案
已解决
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
关于java - 从 Tomcat 服务器中的 netbeans 项目运行 JSP,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36994679/