angelozerr / eclipse-wtp-xml-search

Eclipse WTP/XML Search
Other
12 stars 6 forks source link

web.xml validation issue #46

Open fmunafo opened 9 years ago

fmunafo commented 9 years ago

Hi, I've started using your plug-in and it works fine using xpath search. Instead I've noticed a validation bug in web.xml scan if a web project use linked resource.

Think about a workspace with a main web project (webTest) ed e common web project webCommon). webCommon is linked to webTest using linkedResources, so in .project file (of webTest) you have:

    <linkedResources>
            <link>
                    <name>webCommon</name>
                    <type>2</type>
                    <locationURI>WORKSPACE_LOC/webCommon/web</locationURI>
            </link>
    </linkedResources>

and in org.eclipse.wst.common.component (of webTest) you have:

    <wb-resource deploy-path="/" source-path="/web"/>
    <wb-resource deploy-path="/" source-path="/webCommon"/>

Any static resource that is in webCommon/web, like index.html, is not seen by the validator of web.xml (web.xml is in webTest),

File "index.html" not found. web.xml /Web_kion/web/WEB-INF line 480 XML References Problem

    <welcome-file-list>
            <welcome-file>index.html</welcome-file>
    </welcome-file-list>

Tell me if I can give you more details about this issue.