You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@netbeans.apache.org by "eduarddrenth (via GitHub)" <gi...@apache.org> on 2025/04/28 11:00:48 UTC
[I] validation via xml catalog fails [netbeans]
eduarddrenth opened a new issue, #8464:
URL: https://github.com/apache/netbeans/issues/8464
### Apache NetBeans version
Apache NetBeans 25
### What happened
- add an xml catalog file via settings
- open a valid xml file that should be vaildated using the catalog
- the file does not validate
instead you see for example:
```
XML validation started.
Checking file:/home/eduard/rita/tei-aangepast/E1-BEm.xml...
cvc-elt.1.a: Cannot find the declaration of element 'TEI'. [4]
XML validation finished.
```
### Language / Project Type / NetBeans Component
xml, xslt
### How to reproduce
see above
### Did this work correctly in an earlier version?
No / Don't know
### Operating System
ubuntu 24
### JDK
java-21-openjdk-amd64
### Apache NetBeans packaging
Apache NetBeans provided installer
### Anything else
Not sure if I am able to contribute, but I have plenty of java and xml experience
### Are you willing to submit a pull request?
Yes
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: [I] validation via xml catalog fails [netbeans]
Posted by "matthiasblaesing (via GitHub)" <gi...@apache.org>.
matthiasblaesing commented on issue #8464:
URL: https://github.com/apache/netbeans/issues/8464#issuecomment-2851946330
@eduarddrenth a fix is available from #8489, which should cover the problems raised here. A dev/nightly build is available from the checks page or directly: https://github.com/apache/netbeans/suites/38113223012/artifacts/3064311337. It would be great if you could test it.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: [I] validation via xml catalog fails [netbeans]
Posted by "eduarddrenth (via GitHub)" <gi...@apache.org>.
eduarddrenth commented on issue #8464:
URL: https://github.com/apache/netbeans/issues/8464#issuecomment-2836082413
> Validated XML against XSD today with a master build from a few week ago. Worked. This need precise steps to reproduce. And I mean starting from a clean user dir, where to download which XSD, demonstration XML. From my POV XML validation works as it should.
The xsd's with catalog:
[xsd.zip](https://github.com/user-attachments/files/19946207/xsd.zip)
The xml that should validate:
[E1-BEm.zip](https://github.com/user-attachments/files/19946237/E1-BEm.zip)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: [I] validation via xml catalog fails [netbeans]
Posted by "mbien (via GitHub)" <gi...@apache.org>.
mbien commented on issue #8464:
URL: https://github.com/apache/netbeans/issues/8464#issuecomment-2835965500
would be worth checking if the behavior is different on JDK 17 or older NB versions, since Java changed some defaults of the xml APIs in recent releases.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: [I] validation via xml catalog fails [netbeans]
Posted by "matthiasblaesing (via GitHub)" <gi...@apache.org>.
matthiasblaesing commented on issue #8464:
URL: https://github.com/apache/netbeans/issues/8464#issuecomment-2869782807
@eduarddrenth thanks for testing. I plan to merge shortly after release of NB26 is done. The fix will thus be in NB27.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: [I] validation via xml catalog fails [netbeans]
Posted by "matthiasblaesing (via GitHub)" <gi...@apache.org>.
matthiasblaesing commented on issue #8464:
URL: https://github.com/apache/netbeans/issues/8464#issuecomment-2835979030
Validated XML against XSD today with a master build from a few week ago. Worked. This need precise steps to reproduce. And I mean starting from a clean user dir, where to download which XSD, demonstration XML. From my POV XML validation works as it should.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: [I] validation via xml catalog fails [netbeans]
Posted by "eduarddrenth (via GitHub)" <gi...@apache.org>.
eduarddrenth commented on issue #8464:
URL: https://github.com/apache/netbeans/issues/8464#issuecomment-2837692980
I can confirm that when choosing OASIS catalog resolver, validation works, also when running netbeans with non-empty user and cache dirs. When choosing XML catalog, validation does not work.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: [I] validation via xml catalog fails [netbeans]
Posted by "eduarddrenth (via GitHub)" <gi...@apache.org>.
eduarddrenth commented on issue #8464:
URL: https://github.com/apache/netbeans/issues/8464#issuecomment-2854049355
Tested with the dev build. Validation works with oasis catalog (which is now the default when adding a catalog). After closing and reopening netbeans, validation still works.
Thanks!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: [I] validation via xml catalog fails [netbeans]
Posted by "matthiasblaesing (via GitHub)" <gi...@apache.org>.
matthiasblaesing commented on issue #8464:
URL: https://github.com/apache/netbeans/issues/8464#issuecomment-2836361169
Problem is there since at least NB 9 (I suspect this never worked).
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: [I] validation via xml catalog fails [netbeans]
Posted by "matthiasblaesing (via GitHub)" <gi...@apache.org>.
matthiasblaesing closed issue #8464: validation via xml catalog fails
URL: https://github.com/apache/netbeans/issues/8464
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: [I] validation via xml catalog fails [netbeans]
Posted by "matthiasblaesing (via GitHub)" <gi...@apache.org>.
matthiasblaesing commented on issue #8464:
URL: https://github.com/apache/netbeans/issues/8464#issuecomment-2836281699
Validation works, saving does not.
0. I downloaded both zip and put contents into the folder `/home/matthias/Downloads/test/`:
```
matthias@enterprise:~/src/netbeans$ ls -lh /home/matthias/Downloads/test/
insgesamt 1016K
-rw-rw-r-- 1 matthias matthias 721K Feb 7 09:03 corpora_linguistics.xsd
-rw-rw-r-- 1 matthias matthias 259K Apr 26 07:59 E1-BEm.xml
-rw-rw-r-- 1 matthias matthias 1,1K Apr 28 12:38 fa_tei_catalog.xml
-rw-rw-r-- 1 matthias matthias 22K Feb 7 09:03 t.xsd
-rw-rw-r-- 1 matthias matthias 2,3K Feb 7 09:03 xml.xsd
matthias@enterprise:~/src/netbeans$
```
2. Run NetBeans with a clean user + cachedir `nbbuild/netbeans/bin/netbeans --userdir xml-userdir --cachedir xml-cachedir`
3. In "Tools -> Plugins -> Installed" select "Java SE" and activate the cluster
4. Go to "Tools -> DTDs and XML Schemas"
5. Choose "Add catalog"
6. Choose "OASIS Catalog Resolver" as Type
7. Enter `file:/home/matthias/Downloads/test/fa_tei_catalog.xml` as Catalog URL
8. Leave "Prefer Public ID" selected and confirm with "OK"
9. Close Dialog "DTDs and XML Schemas"
10. Open `E1-BEm.xml`
11. Right click into document choose "Validate XML`
I get:
```
XML validation started.
Checking file:/home/matthias/Downloads/test/E1-BEm.xml...
Referenced entity at "file:/home/matthias/Downloads/test/corpora_linguistics.xsd".
Referenced entity at "file:/home/matthias/Downloads/test/t.xsd".
Referenced entity at "file:/home/matthias/Downloads/test/xml.xsd".
XML validation finished.
```
12. Stop NetBeans, start again as in step 2
13. Check "Tools -> DTDs and XML Schemas"
=> Catalog is not there anymore
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: [I] validation via xml catalog fails [netbeans]
Posted by "eduarddrenth (via GitHub)" <gi...@apache.org>.
eduarddrenth commented on issue #8464:
URL: https://github.com/apache/netbeans/issues/8464#issuecomment-2836075735
> would be worth checking if the behavior is different on JDK 17 or older NB versions, since Java changed some defaults of the xml APIs in recent releases.
Tested this, it does not help. I'll attach files
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists