Hi Thomas,

I cannot reproduce with 11.1 beta 4.  The web.xml does not show a red X.  Have 
you tried with a clean userdir?   Thanks!


Josh Juneau
http://jj-blogger.blogspot.com
https://www.apress.com/index.php/author/author/view/id/1866


> On Jul 15, 2019, at 1:40 AM, Thomas Kellerer <[email protected]> wrote:
> 
> Josh,
> 
> it's not a big thing, because everything works even editing the web.xml with 
> the "wizard".
> 
> Only the Projects window shows a little red cross next to the file.
> 
> It's a (very old) Maven project and it's using JavaEE 7
> 
>    <dependency>
>      <groupId>javax</groupId>
>      <artifactId>javaee-web-api</artifactId>
>      <version>7.0</version>
>      <scope>provided</scope>
>    </dependency>
> 
> Regards
> Thomas
> 
> 
> Josh Juneau schrieb am 12.07.2019 um 16:10:
>> Hi Thomas,
>> 
>> There is a PR that has been submitted which may repair these issues.  There
>> is a similar issue that is repaired in the PR which addresses validation of
>> the web-app_4_0.xsd.
>> 
>> Is your project running a very old (pre-Java EE 5) version of Java EE?
>> Even J2EE perhaps?
>> 
>> Thanks
>> 
>>> On Fri, Jul 12, 2019 at 8:48 AM Shammat <[email protected]> wrote:
>>> 
>>> NetBeans 11.1-vc1 fails to alidate a valid web.xml
>>> 
>>> When I open my web.xml from my project and click on the "Validate XML"
>>> button (the two down arrows), it shows the following error message:
>>> 
>>> XML validation started.
>>> Checking file:/C:/**********/src/main/webapp/WEB-INF/web.xml...
>>> schema_reference.4: Failed to read schema document
>>> 'nbres:/org/netbeans/modules/j2ee/ddloaders/catalog/resources/web-app_2_4.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>. [2]
>>> cvc-elt.1.a: Cannot find the declaration of element 'web-app'. [2]
>>> 
>>> However, the file "web-app_2_4.xsd" is contained in several jar files.
>>> 
>>> It is contained in "org-netbeans-modules-j2ee-dd.jar", but inside that jar
>>> file it's in the package/directory:
>>> 
>>>   org/netbeans/modules/j2ee/dd/impl/resources
>>> 
>>> rather than "org/netbeans/modules/j2ee/ddloaders/catalog/resources" where
>>> the editor seems to expect it.
>>> 
>>> And it's also part of servlet3.1-jsp2.3-api.jar, but there it's in the
>>> package/directory "resources/schemas"
>>> 
>>> Thomas
>>> 
>>> ---------------------------------------------------------------------
>>> 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
>>> 
>>> 
>>> 
>>> --
>> Josh Juneau
>> [email protected]
>> http://jj-blogger.blogspot.com
>> https://www.apress.com/us/search?query=Juneau
>> <https://www.apress.com/index.php/author/author/view/id/1866>
>> 
> 
> ---------------------------------------------------------------------
> 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
> 
> 
> 

Reply via email to