简体   繁体   English

在 Netbeans 8.0.2 中部署 Web 应用程序失败

[英]Failing in Deploying Web App in Netbeans 8.0.2

Let me tell you what i did..让我告诉你我做了什么..

  1. made web app制作网络应用
  2. made index.html by right-clicking on web-inf通过右键单击 web-inf 制作 index.html
  3. made web.xml by right-clicking on web-inf ( didn't made any changes to it )通过右键单击 web-inf 制作 web.xml(未对其进行任何更改)
  4. tried to deployed it but failed试图部署它但失败了

i am using Tomcat 7 and Netbeans 8.0.2我正在使用Tomcat 7Netbeans 8.0.2

Project Structure项目结构

项目结构

the error错误

错误

You are putting index.html inside the WEB-INF folder so you need to put index.html page outside of WEB-INF and inside the web Pages folder .您将index.html放在WEB-INF文件夹中,因此您需要将index.html页面放在WEB-INFweb Pages 文件夹内

Like this(Netbeans Web application Structure):像这样(Netbeans Web 应用程序结构): 在此处输入图片说明

You can refer above structure.你可以参考上面的结构。 it will work after that just clean and build your application and run on server.之后它将工作,只需清理并构建您的应用程序并在服务器上运行。

I hope it will work for you :)我希望它对你有用:)

Thankxs a lot everyone the problem was with my TOMCAT i installed the newer version and now it works, I am new to this community and was amazed to see the quick responses from you guys.非常感谢大家,问题出在我的 TOMCAT 上,我安装了较新的版本,现在它可以工作了,我是这个社区的新手,很惊讶看到你们的快速回复。 I really appreciate your dedication of helping the members我真的很感谢你帮助会员的奉献精神

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM