Jose Ramón Balsas created NETBEANS-3816:
-------------------------------------------
Summary: 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
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: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists