This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
When I enter the following code in web.xml, I get a validation error: <servlet-mapping> <servlet-name>Faces Servlet</servlet-name> <url-pattern>/faces/*</url-pattern> <url-pattern>*.jsf</url-pattern> </servlet-mapping> This is valid in 2.5, but wrong in 2.4 - hence, I suspect you're evaluating againt the wrong schema.
So this is in a 2.5 application? I can not reproduce this issue - works fine for me. This is when you select "Validate XML" in the editor popup menu? Can you please paste the output from the validator? Thanks.
Created attachment 69787 [details] Failing web.xml file.
Sorry for what turns out to be scant information in the bug. I've attached the offending xml file. Yes, it validates fine - but that's not where I see the error. In the file browser, it shows up as clipboard with an "x". And when I double click to open, get a modal: Fatal errors found in web.xml file. It is highly recommended that you fix... etc. Validating returns no error. Mouseover of the icon shows a DOM graph error: Schema2BeansRuntime exception property url-pattern already bound. So, *something* is using the wrong schema - but not the validate command.
Confirmed, I can reproduce now. This is Erno's area, reassigning.
Seems like a duplicate of issue 76060, the underlying problem is the same. Likely would need to enhance schema2beans as described in the mentioned issue. Closing as a dupe, thanks for reporting. *** This issue has been marked as a duplicate of 76060 ***