web.xml is missing and <failOnmissingwebxml> is set to true 原因以及解决方案
来源:互联网 发布:python数据挖掘包 编辑:程序博客网 时间:2024/06/03 11:07
在创建war工程,或者某些时候从svn检出工程,甚至有时候忘记自己更改了什么配置,导致项目报错:web.xml is missing and <failOnmissingwebxml> is set to true。
在网上搜索了很多原因,有人说在maven的pom里面添加一个build,例如下面这篇文章:http://blog.csdn.net/liuvlun/article/details/50218507
实际上,这个报错是说web.xml,也就是部署描述符找不到。很简单的思路,就是右键项目属性,找到 Deployment Assembly,这里面会制定了一系列的路径:
1)/src/main/webapp,没有的话add 一下新文件夹,Deploy Path 就是 /
2)下面 Advanced 这个里面,选择 Folder for deployment dexcriptor所在的文件夹即可了。
很奇怪这么简单的问题,网上很多人都搞不清楚,答案都似是而非。贴出此答案,希望有所帮助。
阅读全文
0 0
- web.xml is missing and <failOnmissingwebxml> is set to true 原因以及解决方案
- web.xml is missing and <failOnMissingWebXml> is set to true
- web.xml is missing and <failOnMissingWebXml> is set to true
- web.xml is missing and <failOnMissingWebXml> is set to true
- web.xml is missing and <failOnMissingWebXml> is set to true
- web.xml is missing and <failOnMissingWebXml> is set to true
- web.xml is missing and <failOnMissingWebXml> is set to true
- web.xml is missing and <failOnMissingWebXml> is set to true
- web.xml is missing and <failOnMissingWebXml> is set to true
- web.xml is missing and <failOnMissingWebXml> is set to true
- web.xml is missing and <failOnMissingWebXml> is set to true
- web.xml is missing and <failOnMissingWebXml> is set to true
- web.xml is missing and <failOnMissingWebXml> is set to true
- web.xml is missing and <failOnMissingWebXml> is set to true
- web.xml is missing and <failOnMissingWebXml> is set to true
- web.xml is missing and <failOnMissingWebXml> is set to true
- web.xml is missing and <failOnMissingWebXml> is set to true
- web.xml is missing and <failOnMissingWebXml> is set to true
- 8种网站防止盗链的方法
- 阻止浏览器返回按钮
- Volley联网判断有无网络(1)
- Linux基础命令学习
- 使用Windbg解析dump文件
- web.xml is missing and <failOnmissingwebxml> is set to true 原因以及解决方案
- DES算法流程分析与实现
- 安卓开发没有关闭界面就调用了onActivityResult方法?onActivityResult方法Intent-data总是null
- vue动态组件
- MySQL 死锁与日志二三事
- Localtime导致进程死锁问题探源-转
- Android底部中间+号导航
- Azure Stack深入浅出3: Azure Stack运维工具Azure Stack Tools的使用及实战
- js比较时间大小