Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Invalid content error in struts.xml file.

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