my dog learned polymorphism*
The moose likes Struts and the fly likes Invalid content error in struts.xml file. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Invalid content error in struts.xml file." Watch "Invalid content error in struts.xml file." New topic

Invalid content error in struts.xml file.

Joy Vergis
Ranch Hand

Joined: Sep 14, 2009
Posts: 45
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.

I agree. Here's the link:
subject: Invalid content error in struts.xml file.
Similar Threads
Getting error while upgrading my running application from jboss-4.2.1.GA to jboss-6.0.0.Final.
jsp-property-group error in web.xml
custom tag handler
Jsp is not getting displayed in struts2 using eclipse.
getting error when deploying web app in weblogic 10.0