You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems that it misses a lot of XSD, DTD referenced in WTP XML catalog because it takes care of system only but it should take care of public, uri element, other?.
Im trying to understand the problem explained in the stackoverflow link I have posted because in vscode-xml we have not this problem.
To reproduce the problem create à web.xml and copy paste the web.xml describe in the stackoverflow issue and you will see an error although you should not have the error.
So the first problem is that there are many xsd dtd declared with wtp extension catalog which are not collected.
Im not sure that it will fix the stackoverflow problem but the behavior today is that the xml.xsd used comes from the wtp xml catalog and other xsd like javaee webapp etc are downloaded by the lemminx cache from internet. You can see that in your .lemminx/cache that xsd javaee webapp etc are downloaded when you define à web.xml for instance although it should use wtp xml catalog. The xml.xsd which is declared in the wtp catalog is not downloaded because it is declared as system.
My supposition is that the webapp xsd coming from the internet is not compatible with the xml.xsd coming from wtp catalog and we have this false positive error.
I need to test my supposition but to be consistent with wtp catalog we need to use javaee webapp xsd from wtp catalog and not from internet because wwd uses xml.xsd from wtp catalog and javaee webapp xsd from internet.
I think this issue is vers important because I see that there are a lot of People who complain about this problem for Web.xml faces-config.xml etc
In xml catalog préférences of wwd you should see an xml catalog which is generated from wtp catalog. Could you try to delete it and restart your eclipse ?
If it doesnt work could you share this file please
On my work machine using curl to retrieve the xsd it returns a web page (HTML!) containing "The WebGate plug-in is unable to contact any Access Servers." while on my personal machine I get back the actual XSD. My guess is that on my local machine it downloaded the actual XSD and put it in the cache and all is well. On my work machine I imagine that it is getting the HTML due to some corporate firewall issue or some Oracle licensing issue.
Sorry for the false alarm. I really appreciate your quick response!
Yes, installing "Eclipse Enterprise Java and Web Developer Tools" (1) that solved it. After deleting the cached XSD catalog in Wild Web Developer and restarting, Wild Web Developer has a lot more xsd's in the catalog. I'm not sure what the Wild Web Developer project should do about this. Maybe mention that is depends on WTP to find XSDs in the readme?
I think wwd shoulld perhaps install only the plugin which provides standard xsd dtd from wtp.
Please note that we would like to create for vscode xml a standard catalog which will embed the most popular xsd dtd. Indeed we can know this information since we have some telemtry about the use of xsd dtd
Activity
mickaelistria commentedon Jan 29, 2022
Are you using latest snapshots? Can you please provide steps to reproduce the issue?
angelozerr commentedon Jan 29, 2022
Im trying to understand the problem explained in the stackoverflow link I have posted because in vscode-xml we have not this problem.
To reproduce the problem create à web.xml and copy paste the web.xml describe in the stackoverflow issue and you will see an error although you should not have the error.
I'm using wwd from master and when I see https://github.com/eclipse/wildwebdeveloper/blob/02e8364e17a261ad83cb07466a37e9f647c01e06/org.eclipse.wildwebdeveloper.xml/src/org/eclipse/wildwebdeveloper/xml/internal/ui/preferences/XMLCatalogs.java#L63 it seems that it takes care of only system element although it should take care of uri and public element.
So the first problem is that there are many xsd dtd declared with wtp extension catalog which are not collected.
Im not sure that it will fix the stackoverflow problem but the behavior today is that the xml.xsd used comes from the wtp xml catalog and other xsd like javaee webapp etc are downloaded by the lemminx cache from internet. You can see that in your .lemminx/cache that xsd javaee webapp etc are downloaded when you define à web.xml for instance although it should use wtp xml catalog. The xml.xsd which is declared in the wtp catalog is not downloaded because it is declared as system.
My supposition is that the webapp xsd coming from the internet is not compatible with the xml.xsd coming from wtp catalog and we have this false positive error.
I need to test my supposition but to be consistent with wtp catalog we need to use javaee webapp xsd from wtp catalog and not from internet because wwd uses xml.xsd from wtp catalog and javaee webapp xsd from internet.
I think this issue is vers important because I see that there are a lot of People who complain about this problem for Web.xml faces-config.xml etc
angelozerr commentedon Jan 29, 2022
See https://stackoverflow.com/search?q=Lemminx
Missing XSD/DTD from WTP XML catalog
perry2of5 commentedon Mar 2, 2022
This still happens with the snapshot from last night. Please reopen.
0.13.4.202202091539
mickaelistria commentedon Mar 2, 2022
@perry2of5 Can you please provide steps to reproduce the issue?
perry2of5 commentedon Mar 2, 2022
The following rather standard web-app.xml failed to validate.
perry2of5 commentedon Mar 2, 2022
This works on my personal machine, but not on my work machine. Let me do some sleuthing...
angelozerr commentedon Mar 2, 2022
In xml catalog préférences of wwd you should see an xml catalog which is generated from wtp catalog. Could you try to delete it and restart your eclipse ?
If it doesnt work could you share this file please
perry2of5 commentedon Mar 2, 2022
On my work machine using curl to retrieve the xsd it returns a web page (HTML!) containing "The WebGate plug-in is unable to contact any Access Servers." while on my personal machine I get back the actual XSD. My guess is that on my local machine it downloaded the actual XSD and put it in the cache and all is well. On my work machine I imagine that it is getting the HTML due to some corporate firewall issue or some Oracle licensing issue.
Sorry for the false alarm. I really appreciate your quick response!
angelozerr commentedon Mar 2, 2022
But it should not download xsd from internet if you have wtp xml catalog. It should use the xsd coming from wtp xml catalog.
Have you checked the generated catalog?
perry2of5 commentedon Mar 2, 2022
I don't see web-app_4_0.xsd there. I see maven, and generic XML XSDs:
I deleted it and restarted Eclipse and see the same list of mappings.
angelozerr commentedon Mar 2, 2022
Could you see if you can find the webapp xsd from the WTP xml catalog?
angelozerr commentedon Mar 2, 2022
And if you cannot find it you can create your own catalog with webapp xsd.
perry2of5 commentedon Mar 2, 2022
I made my own catalog as soon as I saw the error on the internal network.
It looks like STS4 4.13.1 didn't include WTP. I'm installing it to see if that resolves the issue.
perry2of5 commentedon Mar 2, 2022
Yes, installing "Eclipse Enterprise Java and Web Developer Tools" (1) that solved it. After deleting the cached XSD catalog in Wild Web Developer and restarting, Wild Web Developer has a lot more xsd's in the catalog. I'm not sure what the Wild Web Developer project should do about this. Maybe mention that is depends on WTP to find XSDs in the readme?
(1) https://marketplace.eclipse.org/content/eclipse-enterprise-java-and-web-developer-tools
angelozerr commentedon Mar 2, 2022
I think wwd shoulld perhaps install only the plugin which provides standard xsd dtd from wtp.
Please note that we would like to create for vscode xml a standard catalog which will embed the most popular xsd dtd. Indeed we can know this information since we have some telemtry about the use of xsd dtd
angelozerr commentedon Mar 2, 2022
Anyway thanks @perry2of5 for your patience and your feedback.
We can confirm that this issue is working correctly.
perry2of5 commentedon Mar 2, 2022
That would be great include a standard catalog!
It looks like the STS team removed WTP to avoid having duplicate editors for a file type spring-projects/spring-tools#572
angelozerr commentedon Mar 2, 2022
OK please create an issue in lemminx with standard catalog.
perry2of5 commentedon Mar 2, 2022
I'd be happy to create the issue. What should I say? Something like:
WildWebDeveloper can't resolve web-app_*.xsd, please include j2ee xsd's in lemminx
angelozerr commentedon Mar 2, 2022
Please write it according to your need and we will adjust it if needed.
The main idea is to have a lot of user feedback.
perry2of5 commentedon Mar 2, 2022
@angelozerr: Thank you for your help working through this.
Missing XSD/DTD from WTP XML catalog