The display name was defined in multiple fragments with different values includi

New features in use Servlet3.0 about the characteristics WebFragment, some of the features packed into the upcoming jar package, declare some Servlet in the web-fragment.xml, Filter, if you use annotation, where you can basically do not need any configuration.
The jar of each function is added to a Web application, the Web application to have these features jar package declared.

However, when using the Eclipse development, such as the newly created two Web Fragment Project, and added to a Web application, then deployed to the Web container will produce the following exception information
The display name was defined in multiple fragments with different values including fragment with name [XXX]


But add only a fragment is no problem. After a closer look, the original is because the two fragment project profile web-fragment.xml, when you create a project in Eclipse automatically generated display this label, but something every web-fragment.xml in turn will be UNIFIED therefore display element defines lead to repeat.

Therefore, to solve this problem, simply web-fragment.xml the display can be deleted.
Published 56 original articles · won praise 0 · Views 7772

Guess you like

Origin blog.csdn.net/chainhou/article/details/84509985