This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Invalid content error in struts.xml file.  RSS feed

Joy Vergis
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying a sample struts2 project. I have installed, Tomcat7,JDK7 and import Struts2 api in the project. I get the error at '<struts>' tag in the struts.xml file


cvc-complex-type.2.4.a: Invalid content was found starting with element 'struts'. One of '{"http://":module-name, "":description, "http://":display-name, "":icon, "http://":distributable, "":context-param,
"":filter, "":filter-mapping,
"":listener, "":servlet, "http://":servlet-mapping, "":session-config,
"":mime-mapping, "":welcome-
file-list, "":error-page, "":jsp-
config, "":security-constraint, "
javaee":login-config, "":security-role, "
javaee":env-entry, "":ejb-ref, "
javaee":ejb-local-ref, "":service-ref, "
javaee":resource-ref, "":resource-env-ref, "
xml/ns/javaee":message-destination-ref, "":persistence-context-
ref, "":persistence-unit-ref, "
javaee":post-construct, "":pre-destroy, "
ns/javaee":data-source, "":message-destination, "http://":locale-encoding-mapping-list, "
javaee":absolute-ordering}' is expected.

  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!