从Tomcat Server中的netbeans项目运行JSP

时间:2016-05-03 02:36:07

标签: java jsp tomcat netbeans

您好我已经使用Netbeans IDE开发了我的应用程序。 现在我想在Tomcat服务器中运行我的应用程序以供实际使用。我已经将我的项目复制到tomcat / webapps。

但是当我试图运行我的应用程序时:

http://localhost:8081/myAppFolder/

它给出了一条错误消息:请求的资源(/ Opportunities-Registration /)不可用。

我应该更改网址以使其正常工作:

http://localhost:8081/Opportunities-Registration/web/index.jsp

如何使用http://localhost:8081/myAppFolder/的{​​{1}} insteand打开我的应用程序?

更新: 我的所有servlet也都变成404了

谢谢

1 个答案:

答案 0 :(得分:-1)

<强>解决

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