Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6352127
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T22:08:34+00:00 2026-05-24T22:08:34+00:00

I show the error in detail as follows. cvc-complex-type.2.4.a: Invalid content was found starting

  • 0

I show the error in detail as follows.

cvc-complex-type.2.4.a: Invalid content was found starting with element 'taglib'.

One of {

  • "http://java.sun.com/xml/ns/javaee":description,
  • "http://java.sun.com/xml/ns/javaee":display-name,
  • "http://java.sun.com/xml/ns/javaee":icon,
  • "http://java.sun.com/xml/ns/javaee":distributable,
  • "http://java.sun.com/xml/ns/javaee":context-param,
  • "http://java.sun.com/xml/ns/javaee":filter,
  • "http://java.sun.com/xml/ns/javaee":filter-mapping,
  • "http://java.sun.com/xml/ns/javaee":listener,
  • "http://java.sun.com/xml/ns/javaee":servlet,
  • "http://java.sun.com/xml/ns/javaee":servlet-mapping,
  • "http://java.sun.com/xml/ns/javaee":session-config,
  • "http://java.sun.com/xml/ns/javaee":mime-mapping,
  • "http://java.sun.com/xml/ns/javaee":welcome-file-list,
  • "http://java.sun.com/xml/ns/javaee":error-page,
  • "http://java.sun.com/xml/ns/javaee":jsp-config,
  • "http://java.sun.com/xml/ns/javaee":security-constraint,
  • "http://java.sun.com/xml/ns/javaee":login-config,
  • "http://java.sun.com/xml/ns/javaee":security-role,
  • "http://java.sun.com/xml/ns/javaee":env-entry,
  • "http://java.sun.com/xml/ns/javaee":ejb-ref,
  • "http://java.sun.com/xml/ns/javaee":ejb-local-ref,
  • "http://java.sun.com/xml/ns/javaee":service-ref,
  • "http://java.sun.com/xml/ns/javaee":resource-ref,
  • "http://java.sun.com/xml/ns/javaee":resource-env-ref,
  • "http://java.sun.com/xml/ns/javaee":message-destination-ref,
  • "http://java.sun.com/xml/ns/javaee":persistence-context-ref,
  • "http://java.sun.com/xml/ns/javaee":persistence-unit-ref,
  • "http://java.sun.com/xml/ns/javaee":post-construct,
  • "http://java.sun.com/xml/ns/javaee":pre-destroy,
  • "http://java.sun.com/xml/ns/javaee":message-destination,
  • "http://java.sun.com/xml/ns/javaee":locale-encoding-mapping-list

}

web.xml:

<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5">
  
    <display-name>Hello World Struts Application</display-name>

    <servlet>
        <servlet-name>action</servlet-name>
        <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
        <init-param>
            <param-name>config</param-name>
            <param-value>/WEB-INF/struts-config.xml</param-value>
        </init-param>
        <init-param>
            <param-name>debug</param-name>
            <param-value>3</param-value>
        </init-param>
        <init-param>
            <param-name>detail</param-name>
            <param-value>3</param-value>
        </init-param>
        <load-on-startup>1</load-on-startup>
    </servlet>

    <servlet-mapping>
        <servlet-name>action</servlet-name>
        <url-pattern>*.do</url-pattern>
    </servlet-mapping>

    <welcome-file-list>
        <welcome-file>index.jsp</welcome-file>
    </welcome-file-list>

    <taglib>
        <taglib-uri>/WEB-INF/struts-html.tld</taglib-uri>
        <taglib-location>/WEB-INF/struts-html.tld</taglib-location>
    </taglib>

    <taglib>
        <taglib-uri>/WEB-INF/struts-bean.tld</taglib-uri>
        <taglib-location>/WEB-INF/struts-bean.tld</taglib-location>
    </taglib>

    <taglib>
        <taglib-uri>/WEB-INF/struts-logic.tld</taglib-uri>
        <taglib-location>/WEB-INF/struts-logic.tld</taglib-location>
    </taglib>

    <taglib>
        <taglib-uri>/WEB-INF/struts-tiles.tld</taglib-uri>
        <taglib-location>/WEB-INF/struts-tiles.tld</taglib-location>
    </taglib>

</web-app>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T22:08:35+00:00Added an answer on May 24, 2026 at 10:08 pm

    Taglib is no longer required to be declared in web.xml , please read http://wiki.metawerx.net/wiki/RemovingTaglibFromWeb.xml

    You are using Servlet 2.5, so the instructions should work for you

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have created: one master page and one content page called Detail. On Button
I try to build project in Eclipse on Linux Ubuntu. Eclipse show error message:
Some fancy websites show an error dialog when it is detected that an untrained
Is there a way to show any error message if IIS(5.1) is stopped or
I would like to know how to show an error message in the Django
The two different code snippets(with minor change) show some error in calculations by joda
I request @me , but requestDidLoadWithError method show this error. An active access token
how can I show users success/error messages without creating a node for it? Thanks
Seems like cuke doesn't show the full error message (at least when problem occurs
When I try to execute my code, I'm getting an error dialog: 'Show Disassembly'

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.