开发者

Jsp Project not running

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜