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 3353864
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T02:12:11+00:00 2026-05-18T02:12:11+00:00

I am trying to upgrade my web.xml from 2.3 to 2.4, so I changed

  • 0

I am trying to upgrade my web.xml from 2.3 to 2.4, so I changed my web.xml to something like this –

<?xml version="1.0" encoding="UTF-8"?>
<!--<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
<!DOCTYPE sun-web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Application Server 8.1
Servlet 2.4//EN" "http://www.sun.com/software/appserver/dtds/sun-web-app_2_4-1.dtd">-->

<!--
    ===========================================================
                           WUI - WEB.XML
    ===========================================================
--> 

<web-app id="WebApp" xmlns="http://java.sun.com/xml/ns/j2ee"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/
    ns/j2ee/web-app_2_4.xsd"
    version="2.4">

    <description>Odyssey Web User Interface</description>
    <display-name>wui</display-name>



<!-- Uncomment this when setting up the prevent-multiple-login mechanism -->
<!--
    <listener>
        <listener-class>com.xxx.xxxnListener</listener-class>
    </listener>
-->

    <!--  local cache filter setup -->
    <filter> 
      <filter-name>local-cache</filter-name> 
      <filter-class>com.xxx.xxxcheFilter</filter-class> 
   </filter> 
....

When I start my Server, I get this error –

weblogic.descriptor.DescriptorException: VALIDATION PROBLEMS WERE FOUND
problem: cvc-complex-type.2.4a: Expected elements ‘servlet-class@http://java.sun.com/xml/ns/javaee jsp-file@http://java.sun.com/xml/ns/javaee’ instead of ‘display-name@http://java.sun.com/xml/ns/javaee’ here in element servlet@http://java.sun.com/xml/ns/javaee:
problem: cvc-complex-type.2.4a: Expected elements ‘servlet-class@http://java.sun.com/xml/ns/javaee jsp-file@http://java.sun.com/xml/ns/javaee’ instead of ‘description@http://java.sun.com/xml/ns/javaee’ here in element servlet@http://java.sun.com/xml/ns/javaee:

I am using weblogic 10.1 server.

Any idea what else am I supposed to do.

Thanks.

  • 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-18T02:12:11+00:00Added an answer on May 18, 2026 at 2:12 am

    The structure of your web.xml needs to change to pass the new XSD. For example the new XSD states that your web.xml file should have:

    <servlet-class> or <jsp-file> as an element in the place where you currently have <display-name>

    Read the XSD at http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd for more details, it shouldn’t take long to restructure so that it passes.

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

Sidebar

Related Questions

I'm trying to upgrade my struts2 web app from guice2.0 to guice3.0. I'm trying
I am trying to convince my web server admins to upgrade our version of
I'm trying to upgrade an app ( Clarke ) to provide 10.6 compatibility. My
I'm trying to upgrade from Hibernate 3.6.5 to 4.0 (and from Spring 3.0.5 to
I'm trying to upgrade the version of my birt-viewer on my Tomcat server, but
I'm trying to upgrade Joomla Version 1.5.20 to Joomla Version 2.5.4. I've upgraded other
I've been trying to use smart pointers to upgrade an existing app, and I'm
I'm currently trying to upgrade our build server at work, going from having no
We are trying to upgrade from Spring 1.2.8 to Spring 3.0 However when we
I´m trying to upgrade trac! from 0.10.3 to 0.12. Need help, i basiclally did

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.