Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 333419 - error marker in xml more specific
Summary: error marker in xml more specific
Status: CLOSED WONTFIX
Alias: None
Product: WTP Source Editing
Classification: WebTools
Component: wst.xml (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 enhancement (vote)
Target Milestone: Future   Edit
Assignee: wst.xml-triaged CLA
QA Contact: Nick Sandonato CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-03 07:47 EST by arne anka CLA
Modified: 2022-09-07 09:04 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description arne anka CLA 2011-01-03 07:47:58 EST
Build Identifier: 20100917-0705

i got a web.xml with about 1090 lines. on top, at the opening root element (web-app) there's an error marker saying

The content of element type "web-app" must match "(icon?,display-name?,description?,distributable?,context-param*,filter*,filter-mapping*,listener*,servlet*,servlet-mapping*,session-config?,mime-mapping*,welcome-file-list?,error-page*,taglib*,resource-env-ref*,resource-ref*,security-constraint*,login-config?,security-role*,env-entry*,ejb-ref*,ejb-local-ref*)".

nice to know, but with 1000+ lines it is rather tedious to check for the actual error.
there should be a more specific error marker, making it easy to catch the error.

Reproducible: Always
Comment 1 Nick Sandonato CLA 2011-05-25 17:11:11 EDT
These messages come from the Xerces validator. Adding a quick-fix feature might be useful here.