You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Jessica-Aileen Alten (JIRA)" <ji...@apache.org> on 2019/04/26 12:19:00 UTC

[jira] [Comment Edited] (NETBEANS-2398) Netbeans 11 + web.xml = Cannot find declaration of element 'web-app'

    [ https://issues.apache.org/jira/browse/NETBEANS-2398?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16826923#comment-16826923 ] 

Jessica-Aileen Alten edited comment on NETBEANS-2398 at 4/26/19 12:18 PM:
--------------------------------------------------------------------------

XML validation seems to be broken - same situation here.

In Netbeans 10 output is:

XML validation started.
Checking file:/<my folder>/modules/webapp/src/main/webapp/WEB-INF/web.xml...
Referenced entity at "nbres:/org/netbeans/modules/j2ee/ddloaders/catalog/resources/XMLSchema.dtd".
Referenced entity at "nbres:/org/netbeans/modules/j2ee/ddloaders/catalog/resources/datatypes.dtd".
XML validation finished.


was (Author: jiai64):
XML validation seems to be broken - same situation here.

> Netbeans 11 + web.xml = Cannot find declaration of element 'web-app'
> --------------------------------------------------------------------
>
>                 Key: NETBEANS-2398
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-2398
>             Project: NetBeans
>          Issue Type: Bug
>          Components: javaee - Web Project
>    Affects Versions: 11.0
>         Environment: Windows 10 64-Bit OpenJDK 11.0.2 (also tested with same results using Oracle JDK 8).
>            Reporter: Ryan
>            Priority: Major
>         Attachments: Screenshot.png
>
>
> I'm taking Netbeans 11 for a spin and now see my project web.xml file has red x in bottom corner of Projects window icon.  Everything seems to work fine despite the validation error.  If I open project in Netbeans 8.2 no issue.  The hover (tooltip) message is: 
> {quote} 
>  cvc-elt.1.a: Cannot find the declaration of element 'web-app'
>   
> {quote}
> If I right click on web.xml file in Projects window and click Validate XML the error is displayed in the Output window along with:
> {quote}schema_reference.4: Failed to read schema document 'nbres:/org/netbeans/modules/j2ee/ddloaders/catalog/resources/web-app_3_1.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not <xsd:schema>
> {quote}
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists