- 浏览: 62481 次
- 性别:
- 来自: 青岛
文章分类
最新评论
在学习maven模块化构建项目的时候遇到了如下报错信息:
web.xml is missing and <failOnMissingWebXml> is set to true
。这时候需要右击项目——>Java EE Tools——>Generate Deployment Descriptor Stub.然后系统会在src/main/webapp/WEB_INF文件加下创建web.xml文件。错误解决!
当然这个方法是针对web项目的解决方案,如果你的工程不是web项目,那么还有另外一种解决方案,就是在pom文件中配置一下failOnMissingWebXml。具体配置如下:
web.xml is missing and <failOnMissingWebXml> is set to true
。这时候需要右击项目——>Java EE Tools——>Generate Deployment Descriptor Stub.然后系统会在src/main/webapp/WEB_INF文件加下创建web.xml文件。错误解决!
当然这个方法是针对web项目的解决方案,如果你的工程不是web项目,那么还有另外一种解决方案,就是在pom文件中配置一下failOnMissingWebXml。具体配置如下:
<build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-war-plugin</artifactId> <version>2.6</version> <configuration> <failOnMissingWebXml>false</failOnMissingWebXml> </configuration> </plugin> </plugins> </build>
发表评论
-
Tomcat启动报Error listenerStart错误
2017-07-17 10:29 631今天启动Tomcat启动不了,报以下错: org.apac ... -
如何在eclipse中修改jsp默认编码
2016-12-25 12:30 589第一步:打开eclipse,找到windows-->pr ... -
eclipse编码格式设置教程、如何为eclipse设置编码格式?
2016-12-25 12:23 559如果要使插件开发应用能有更好的国际化支持,能够最大程度的支持中 ... -
maven配置默认使用的JDK版本
2016-12-25 10:35 613在maven的默认配置中,对于jdk的配置是1.4版本,那么创 ... -
修改 IntelliJ IDEA 的默认文件编码
2016-12-21 00:09 1595有两种办法可以修改 IntelliJ IDEA 的文件编码(I ... -
The specified JRE installation does not exist
2016-12-19 22:32 1111window -->preferences --> ... -
maven插件资源
2016-12-04 21:05 460http://archive.apache.org/dist/ ... -
java的svn的使用
2016-11-30 20:03 601http://blog.csdn.net/world_ding ... -
Eclipse+Maven创建webapp项目
2016-11-26 10:45 627http://www.cnblogs.com/AloneSwo ... -
报Failed to load class "org.slf4j.impl.StaticLoggerBinder".
2016-11-26 09:40 1448[root@master ~]# /export/kafka ... -
Maven: 每次更新Maven Project ,JAVA 版本都变为1.5
2016-11-21 00:10 1628由于Maven默认编译环境是JAVA 1.5 ,所以我们需要在 ... -
web.xml中contextConfigLocation的作用
2016-11-15 00:38 1118在web.xml里配置Listener xml 代码如下: ... -
maven的settings.xml配置详解
2016-11-06 21:41 652参考: http://blog.csdn.net/yiluoa ... -
maven
2016-11-06 21:37 441http://blog.csdn.net/yiluoak_47 ... -
Server Tomcat v6.0 Server at localhost was unable to start within 45 second
2016-10-18 08:33 613当启动tomcat时候出现 Server Tomcat v6. ... -
IntelliJ Idea 常用快捷键列表
2016-10-11 09:18 406Alt+回车 导入包,自动修正 Ctrl+N 查找类 Ct ... -
Windows 7 sometimes breaks FTP connections on Java 7 if firewall is enabled
2016-10-11 09:17 1123Windows 7 sometimes breaks FTP ... -
intellij idea 2015、2016破解方法
2016-10-10 13:08 1631在注册时Help—Register,选择 License se ... -
idea工具里面使用antrun
2016-10-11 09:14 397如上图方式 相当于maven的命令 mvn antru ... -
优秀的学习资源地址
2016-10-07 21:47 01 非常全的java资料 http://pan.baidu.c ...
相关推荐
jdk升级之后出现异常:java.lang.NoClassDefFoundError: javax/xml/ws/Service ... <groupId>javax.xml.bind</groupId> <artifactId>jaxb-api</artifactId> <version>2.3.1</version> </dependency> .....
11<br>1.7 Our Source Code andWeb Site . . . . . . . . . . . . . . . . 12<br>2 Introduction to Modern Fortran 13<br>2.1 Getting Started . . . . . . . . . . . . . . . . . . . . . . . . . 13<br>2.1.1 A ...
Copyright <br> Preface <br> What You Need to Know <br> Who This Book Is For <br> How This Book Is Organized <br> Reference Sections <br> Filesystem Conventions <br> Apache and Perl Versions <br> ...
请在web.xml文件中使用<error – page >元素为整个web应用程序设置错误处理页面。已知:处理状态码为404的页面为404.jsp,处理状态码为500的页面为500.jsp。
DOM <br> <br>· 第三章:XML的术语<br>· 导言 <br>· 一.XML文档的有关术语<br>· 二.DTD的有关术语<br>· 第四章:XML的语法<br>· 一.XML语法规则<br>· 二.元素的语法<br>· 三.注释的语法<br>· 四.CDATA的语法...
9<br>1.1 什么是XML. 10<br>1.1.1 XML是元标记语言... 10<br>1.1.2 XML描述的是结构和语义,而不是格式化... 10<br>1.2 为什么开发人员对XML感到激动... 13<br>1.2.1 设计与特定领域有关的标记语言... 13<br>1.2.2 ...
v 1.3<br>API Specification <br>Compiled to .CHM by 貀vind Stegard<br>Packages <br>javax.activation <br>javax.ejb <br>javax.ejb.spi <br>javax.jms <br>javax.mail Classes <br>javax.mail.event <br>javax....
4<br>1.3.2. 受控目录 5<br>2. 入门例子 5<br>2.1. 项目 5<br>2.2. 在WEB.XML中,配置FILTERDISPATCHER过滤器 6<br>2.3. 配置STRUTS.PROPERTIES 6<br>2.4. 编写一个简单的ACTION类 7<br>2.5. STRUTS.XML配置文件 8...
Optional flag is set to false.</summary> <param name="s">A string that contains the name of the property.</param> </member> - <member name="M:Symbol.Attributes.PropertyNameAttribute.#ctor(System....
Missing artifact com.oracle:ojdbc6:jar:11.2.0.1.0问题解决 ojdbc包pom.xml出错 <!-- oracle数据库驱动 --> <dependency> <groupId>com.oracle</groupId> <artifactId>ojdbc6</artifactId> <version>...
Working with XML in Excel <br> Introduction to Excel's XML Features <br> Introduction to XML Schema Creation in Visual Studio <br> An End-to-End Scenario <br> Advanced XML Features in Excel <br> ...
Working with XML in Excel <br> Introduction to Excel's XML Features <br> Introduction to XML Schema Creation in Visual Studio <br> An End-to-End Scenario <br> Advanced XML Features in Excel <br> ...
DWR.xml配置文件说明书 1、 建立dwr.xml 配置文件 任何一个dwr.xml的文件都需要包含DWR DOCTYPE的声明行,格式如下: <!DOCTYPE dwr PUBLIC "-//GetAhead Limited//DTD Direct Web Remoting 1.0//EN" ...
其它小型社区<br><br>软件产品介质:<br>1.xwfb.rar <br>2.xwfbclass.rar <br>3.xwfblib.rar<br>4.Web版新闻发布管理系统使用手册.doc <br>5.web.xml server.xml <br><br>需要者请联系:<br><br>e_mail:fzlotuscn@...
在web.Xml中<context-param> <param-name>contextConfigLocation</param-name> <param-value>/WEB-INF/spring/*.bean.xml</param-value> </context-param> <listener> <listener-class> org.spring...
1 , vb5dialog.zip<br>This demonstrates how to subclass the Common Dialog Dialogs and manipulate a specific Dialog.<END><br>2 , cpnl.zip<br>Form_Taskbar is a control for Visual Basic which, once placed...
6 , chunks.zip<br>This will open a file and read it in "Chunks" of a selected file.<END><br>7 , logging.zip<br>This is a bas that will log installation procedures so the file can be removed later.<END...
The sample creates a new database file and allows you to view, add, or delete records in this database."<END><br>2 , dbprint.zip<br>This demonstrates how to print data from a database.<END><br>3 , ...
<br><br>本系统是WEB模式的实验室教学管理系统<br>运行环境:Tomact+JDK<br>编程模式:JSP+JavaBean+JavaServlet<br>后台数据库:MS-Access\MySql<br><br>系统特点:<br><br>1.基于免费环境开发 jdk+Tomcat+Ms-Access...
基于JSP + Tomact的实验室教学管理系统。 基于JSP的实验室教学管理系统 评分: 实验室教学管理系统(Web版 全套源码 安装即...实验室教学管理系统分析和设计手册(论文).doc <br>6.web.xml server.xml <br><br> 学校应用