You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Jose Ramón Balsas (Jira)" <ji...@apache.org> on 2020/02/08 12:47:00 UTC

[jira] [Updated] (NETBEANS-3816) web.xml edition wizard and xml validation options are missing for 4.0 xml schema versions

     [ https://issues.apache.org/jira/browse/NETBEANS-3816?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jose Ramón Balsas updated NETBEANS-3816:
----------------------------------------
    Attachment: project_explorer.png
                missing_wizard_buttons.png

> web.xml edition wizard and xml validation options are missing for 4.0 xml schema versions
> -----------------------------------------------------------------------------------------
>
>                 Key: NETBEANS-3816
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-3816
>             Project: NetBeans
>          Issue Type: Bug
>          Components: javaee - Web Project
>    Affects Versions: 11.2
>         Environment: MacOS 10.13.6
> openjdk version "11.0.5" 2019-10-15
> OpenJDK Runtime Environment (build 11.0.5+10)
> OpenJDK 64-Bit Server VM (build 11.0.5+10, mixed mode)
>            Reporter: Jose Ramón Balsas
>            Priority: Major
>         Attachments: missing_wizard_buttons.png, project_explorer.png
>
>
> If you open a web.xml file with schema version 4.0, nb editor does not allow to use editor wizard for filling common elements, e.g. display name, pages, security rules and so on. Also, context menu does not offer Check or Validate XML options. In fact, project browser show it with a different icon (blue circle with D char inside).
> *Affected file schema file*
> <?xml version="1.0" encoding="UTF-8"?>
> <web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee"
>  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>  xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_4_0.xsd"
>  version="4.0">
> ...
> *Workaround*
> Change schema version, close and reopen proyect (without reopening, nb does not detect the new schema version). E.g. old schema version
> <?xml version="1.0" encoding="UTF-8"?>
> <web-app version="3.0" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd">
> ...
> *Steps to reproduce*
> 1.- Create a new web application project: java with maven --> web application project
> 2.- Open web.xml in WEB-INF
> 3.- NB editor does not show wizard buttons to edit common elements, e.g. General, Servlets, Filters, ...



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
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