Struts2: The markup in the document following the root must be well-formed

Rjhtkqeaqsrk

New Member
I'm just discovering Struts2 and I have a problem with the \[code\]web.xml\[/code\] file.It gives me an error near the filter tag:\[code\]<filter> <filter-name>struts2</filter-name> <filter-class>org.apache.struts2.dispatcher.FilterDispatcher</filter-class></filter>\[/code\]The error says: Multiple annotations found at this line:- Start tag of element \[code\]<filter>\[/code\]- The markup in the document following the root element must be well-formed.What is the problem? And how can I solve it?Thank you!Thanks Aleksander for your interest:Here is my \[code\]web.xml\[/code\] file:\[code\] `<?xml version="1.0" encoding="UTF-8"?><web-app> <display-name>struts2example</display-name> <welcome-file-list> <welcome-file>index.html</welcome-file> <welcome-file>index.htm</welcome-file> <welcome-file>index.jsp</welcome-file> <welcome-file>default.html</welcome-file> <welcome-file>default.htm</welcome-file> <welcome-file>default.jsp</welcome-file> </welcome-file-list></web-app><filter> <filter-name>struts2</filter-name> <filter-class>org.apache.struts2.dispatcher.FilterDispatcher</filter-class></filter><filter-mapping> <filter-name>struts2</filter-name> <url-pattern>/*</url-pattern></filter-mapping>`\[/code\]
 
Back
Top