开发者

Jsp Project not running

开发者 https://www.devze.com 2023-03-22 03:15 出处:网络
I have created a web projectwh开发者_开发技巧ich includes .jsp and Java beans pages. When I run this project with eclipse, using tomcat it works perfectly fine, I deployed the project successfully, th

I have created a web project wh开发者_开发技巧ich includes .jsp and Java beans pages. When I run this project with eclipse, using tomcat it works perfectly fine, I deployed the project successfully, the program runs and I receive a web page in the browser.

But when I try to deploy war file in webapps folder of tomcat6 and run on browser it gives error – This is the error I see on the page:

HTTP status 404. Description: the requested resource is not available. 

What might be the problem?


Check if you have file index.html/index.jsp in your war if it is not there then you have to either need to change the name of file that is opened in context "/" or you have to make changes in list.


To create WAR file using eclipse, follow the option File -> export -> Web > War File and finally select project and destination folder. To deploy war file in Tomcat, place the war file in Tomcat Installation Directory > webapps directory and start the Tomcat. Hope this is useful for you !!

0

精彩评论

暂无评论...
验证码 换一张
取 消