在使用Servlet3.0的新特性中关于WebFragment的特性,即将一些功能打包到jar包中,在web-fragment.xml中声明一些Servlet、Filter,如果使用annotation,此处基本不需要什么配置就可以。
将各个功能的jar加到某个Web应用中,该Web应用就具有了jar包中声明的这些功能。
但在使用Eclipse开发的时候,比如新创建了两个Web Fragment Project,并将其加到某个Web应用中,此时部署到Web容器中会产生如下异常信息
The display name was defined in multiple fragments with different values including fragment with name [XXX]
但只添加一个fragment则没有问题。经过仔细查看,原来是因为两个fragment的项目配置文件web-fragment.xml,在Eclipse创建工程的时都自动生成了display这个标签,但每个web-fragment.xml中的东西又都会被统一解析,因此导致display元素定义重复了。
因此,解决该问题,只需要将web-fragment.xml中的display删除即可。
分享到:
相关推荐
最近在使用python过重遇到这个问题,NameError: name 'xxx' is not defined,在学习python或者在使用python的过程中这个问题大家肯定都遇到过,在这里我就这个问题总结以下几种情况: 错误NameError: name ‘xxx’ ...
C++经典错误之already defined in *.obj解决方法 C++经典错误之already defined in *.obj解决方法是指在C++编程中遇到的一个常见错误,即链接器报告已经定义了某个符号(already defined),从而导致链接失败。这种...
The valid characters are defined in RFC 7230 and RFC 3986 错误 问题出在 高版本的tomcat会对请求头进行过滤 我的项目使用的springboot版本是2.2.5版本, 内置的tomcat 版本是9.0.31。 解决方法①(推荐) 新增...
- Minor change to the 2D memory test when run with the 3D test (multiple large windows) and the RAM test. Aimed at correcting sympton: Access Violation 0x00404CF9. - Corrections to the mapping of ...
### Software Defined Radio with Zynq Ultrascale+ RFSoC #### 一、Zynq Ultrascale+ RFSoC概述 《Software Defined Radio with Zynq Ultrascale+ RFSoC》一书深入介绍了Xilinx公司推出的Zynq Ultrascale+ RFSoC...
_DllMain@12 already defined in
- FIX: After deleting the selected points in the TFlexPanel.DeleteSelectedPoints the all figures with one point also deleted. - FIX: When the curve contain more then one figure and they were all ...
1.情景展示 ... The valid characters are defined in RFC 7230 and RFC 3986 at org.apache.coyote.http11.AbstractNioInputBuffer.parseRequestLine(AbstractNioInputBuffer.java:283) at org.a
Multiple Attribute Decision Making with Incomplete Weight Information in Linguistic Setting,卫贵武,,The aim of this paper is to investigate the multiple attribute decision making problems with ...
A clustered index is like a telephone directory in which all of the rows for customers with the same last name are clustered together in the same part of the book. Just as the organization of a ...
The Domain Name System was originally designed to support queries of a statically configured database. While the data was expected to change, the frequency of those changes was expected to be fairly...
Accuracy rate of the networks with different attribute input weight as zero are calculated and ranked so that the machine can decide which attribute is the least important for each run of the ...
In the Windows environment, multiple applications that use the tablet may be running at once. Each ap-plication will require different services. Applications must be able to get the services they need...
When I started writing Test-Driven Java Development the scope of the whole book was done in advance. I had a team working with me. We defined the index and a short description of each chapter. From ...
Returns the object bound with the specified name in this session, or null if no object is bound under the name. getAttributeNames() - Method in interface javax.servlet.ServletContext Returns an ...
specify the fieldname in the format string, i.e. "f:name=RTF" to save or load the contents of the field "name". + There is an overloaded LoadFromString which expects a WideString as parameter (Delphi...
使用IAR开发ADI的ADUC70XX系列单片机时,编译出现下面错误提示: Fatal Error[e72]: Segment FIQ_STACK must b
Unlike interface the abstract class may implement some of the methods defined in the class, but in this class at least one method should be abstract. Using Super class Variables With Sub-classed ...