Skip to content

Instantly share code, notes, and snippets.

@jrbalsas
Created February 8, 2020 19:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jrbalsas/271e8188cefc00bdb31a765040f570e7 to your computer and use it in GitHub Desktop.
Save jrbalsas/271e8188cefc00bdb31a765040f570e7 to your computer and use it in GitHub Desktop.
web.xml JEE standard deploy descriptor compatible with Netbeans 11.2 edit wizard
<?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">
<session-config>
<session-timeout>
30
</session-timeout>
</session-config>
</web-app>
@jrbalsas
Copy link
Author

jrbalsas commented Feb 8, 2020

Problem

Netbeans 11.2 does not allow to use web.xml edit wizard, xml check and validation when it is used with javaee schemas with versions >3.0 (e.g. http://xmlns.jcp.org/xml/ns/javaee version 4.0).

Workaround

Use an old version of schema compatible with netbeans web.xml wizard. IMPORTANT: close and reopen project after change web.xml schemas to enable wizard

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment