facebook

Red error icon at end of web.xml

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #227845 Reply

    Bob Baker
    Member

    I purchased my subscription to ME a couple of days ago, and I’m seeing something that’s a little strange to me. Previously, while using Eclipse (prior to ME), there were no red X icons in my web.xml file (there are no issues with the file – everything works fine). The icon is at the very last line of the file, but gives no hint when I hover ofer the icon in the left gutter, or the red box in the right gutter.

    What’s going on? I don’t think I have any of the validators on, but I’m still seeng the icon. What does this mean, and what can I do to get rid of it?

    #227865 Reply

    Riyad Kalla
    Member

    Very strange, switch to your Problems view and click the down arrow in the top right corner and go to “Filters” then click “Select All” and OK. Do you see any problems listed for the file? If not, close all your editors and rebuild the project. That should help resync all the editor states.

    #227921 Reply

    Bob Baker
    Member

    That was the first thing I tried, but it didn’t exactly work. When I turned on all the filters, it did tell me that the file wasn’t following the correct order of the tags. I did have two of them that needed to be flip-flopped. I took care of that and rebuilt, but that did not make the X go away.

    What I did that wound up working was to right-click on the web.xml file, and select the MyEclipse/Remove all Validation Markers option. That cleared up the X, and seems to have taken care of the problem.

    Thanks!

    #227931 Reply

    bmdaley
    Member

    I believe the problem is the order of the entries in your file. Take a look at the DTD and put your entries in the order listed there. For example put all the servlet definitions before the servlet-mapping entries. I think the ‘remove all markers’ fix will only work until the file is validated again.

    Good luck.

    #227946 Reply

    Bob Baker
    Member

    Right. Exactly like I mentioned. 😀

    #227950 Reply

    bmdaley
    Member

    Sorry about that, I should read these posts before I reply to them!

Viewing 6 posts - 1 through 6 (of 6 total)
Reply To: Red error icon at end of web.xml

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