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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T21:26:38+00:00 2026-06-02T21:26:38+00:00

I have a multi-module Maven project. It works fine in NetBeans. But not in

  • 0

I have a multi-module Maven project. It works fine in NetBeans. But not in Eclipse (EE Helios SR 1). In the web.xml file I have the following:

<web-app version="3.0" 
         xmlns="http://java.sun.com/xml/ns/javaee" 
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
         xsi:schemaLocation="http://java.sun.com/xml/ns/javaee 
             http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
             metadata-complete="true">

I get 5 xml errors. Each one looks like that:

Attribute “version” must be declared for element type “web-app”

And the "version" part is changed to "xmlns:xsi" and so on in the other errors. I tried to change Dynamic Web Module version to 3.0, but it didn’t help.

When moving to Eclipse I did mvn eclipse:eclipse -Dwtpversion=2.0 in the war module and mvn eclipse:eclipse in the others. I also installed m2e and m2e-wtp plugins. So, I suppose the project should work fine with that.

Why can’t Eclipse work with a project, that’s working in another IDE? I also had to change <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> to <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %> on one of the JSP, which was a little strange too, because the old version of this uri worked in NetBeans.

Hope someone could clarify the reasons of its (unexpected for me) behavior and how this can be fixed.

  • 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-06-02T21:26:46+00:00Added an answer on June 2, 2026 at 9:26 pm

    Use 2.4 instead.

    <?xml version="1.0" encoding="ISO-8859-1"?>
    <web-app version="2.4" 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">
    

    Edited.

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

Sidebar

Related Questions

I have a multi-module maven project made up of three sub-modules: web , service
I have a multi-module Maven project that is a Java web application. I am
We have a non-trivial multi-module maven project, then have a single module maven web-app
We have a multi-module maven project that uses a profile that defines a buildnumber-maven-plugin
I have created a multi module maven project. Now I have shared the project
I have a Maven multi-module project and I need two different parent POMs in
I have a multi module web project. Four modules of the project are packaged
I have a multi module maven project and I would like to use versions
I have a multi-module Maven project, and I would like to assemble together artifacts
I have a multi-module maven project (several levels of nesting). Normally, when I execute

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.