facebook

welcome-file-list in web.xml it is not valid [Closed]

  1. MyEclipse Archived
  2.  > 
  3. Bugs
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #203822 Reply

    arnor
    Member

    system:winXP
    eclipse version:
    Version: 2.1.2
    Build id: 200311030802
    – fresh installation [yes]
    – other plug-in: xmlBuddy (free version)
    MyEclipse version:
    Version: 2.6.200
    Build id: 200312091200-2.7-RC1
    Eclipse JDK version: 1.4.2 (java -version)
    Application server jrun4 JDK version: 1.4.2

    step:
    MyEclipse say that my web.xml file is wrong if I put this setting:

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

    I get an error that welcome-file-list is not contain in web-app
    I think is a validation problem with dtd.

    #203826 Reply

    arnor
    Member

    Errata corrige:
    The problem is when I use “welcome-file-list” or “session -config” tags
    <session-config>
    <session-timeout>30</session-timeout>
    </session-config>

    #203831 Reply

    Riyad Kalla
    Member

    arnor,
    I’m guessing that the reason you are getting errors is because of your ordering. The order that tags appear in the web.xml file is very important, for example, you cannot have a taglib element before a welcome-file-list element.

    The autocomplete is order-sensative, so it should take care of this for you if you used it to perform the completions. Also, when you read the error message, it should say something like:
    “File contents must match (web-app (servlets)(…..))”

    you can eyeball the ordering of the elemnts by reading that error messsage. For example, I have my session-config ontop of my welcome-file-list, and they are both at the bottom of the file directly above my taglib elements, and this does not create a validation error.

    Also make sure that the XML file is being opened with our XML editor, its named “XML Editor” (this will be fixed in 2.7 GA).

    #203841 Reply

    arnor
    Member

    Thanks for the answer. Now it work fine.
    Your support is GREAT!

    many thanks

    #203842 Reply

    Riyad Kalla
    Member

    I’m glad it worked, thanks for the compliments!

Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: welcome-file-list in web.xml it is not valid [Closed]

You must be logged in to post in the forum log in