You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@netbeans.apache.org by GitBox <gi...@apache.org> on 2022/03/10 18:14:11 UTC

[GitHub] [netbeans] cpramirez opened a new issue #3757: Problems with Jakarta Schemas

cpramirez opened a new issue #3757:
URL: https://github.com/apache/netbeans/issues/3757


   ### Apache NetBeans version
   
   Apache NetBeans 13
   
   ### What happened
   
   I have several full Jakarta EE 9 projects that use Servlet 5.0 and Persistence 3.0. The IDE does not recognises the web.xml or persistence.xml files as valid as they use Jakarta namespaces on their schemas instead of Javax. Considers them as having a wrong version and ask to upgrade them to a lower version than they have.
   
   ![image](https://user-images.githubusercontent.com/16305562/157713023-bcbbdf75-a73a-445f-88d3-6e96d59915f4.png)
   
   
   Reviewing the embedded DTD/XSD of the IDE (Tools->DTDs and XML Schemas) you can see that the latest versions of those schemas are not in their catalog:
   ![image](https://user-images.githubusercontent.com/16305562/157717483-3f6e5295-060e-43bc-934f-97b1601af95d.png)
   
   
   The error warnings are incorrect but just annoying. But there some functionalities associated with those files, specially with the persistence one, that do not work correctly and probably are related to this:
   -  Cannot edit the persistence file in Design mode.
   - The "Entity Classes from Database" wizard does not recognise the entity classes already created and included in the persistence file.
   - My RESTful Web Services folder with the list of web services of the project is missing.
   
   Those are the ones that I have found for now, cannot say if there is more.
   
   ### How to reproduce
   
   1 - Create a web project (maven in my case)
   2 - Assign Jakarta EE 9.1 on the Project Properties Configuration (Build, Run section).
   3 - Add a web.xml and/or a persistence.xml files.
   4 - Set they XML definition using the [JakartaEE Schemas](https://jakarta.ee/xml/ns/jakartaee/).
       Example of the persistence one:
   ` <persistence version="3.0" xmlns="https://jakarta.ee/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="https://jakarta.ee/xml/ns/persistence https://jakarta.ee/xml/ns/persistence/persistence_3_0.xsd">`
   5 - From that moment, the design tab disappears from the persistence file:
   ![image](https://user-images.githubusercontent.com/16305562/157715503-bccc0193-44c0-4e34-ac3b-f2ee0965d8d0.png)
   
   6 - Any Refactoring (like a simple name change of a file) will show the error message about the XML files being wrong.
   
   
   ### Did this work correctly in an earlier version?
   
   No
   
   ### Operating System
   
   Ubuntu 20.04 - Windows 10 64bits
   
   ### JDK
   
   java 11 openjdk amd64
   
   ### Apache NetBeans packaging
   
   Apache NetBeans provided installer
   
   ### Anything else
   
   This issue was already reported as part of anther on Jira: https://issues.apache.org/jira/browse/NETBEANS-6030
   
   I have separated it in two now that I understand better the problem. The other one is now in :https://github.com/apache/netbeans/issues/3756#issue-1165558156
   
   ### Are you willing to submit a pull request?
   
   No
   
   ### Code of Conduct
   
   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

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


[GitHub] [netbeans] asbachb commented on issue #3757: Problems with Jakarta Schemas

Posted by GitBox <gi...@apache.org>.
asbachb commented on issue #3757:
URL: https://github.com/apache/netbeans/issues/3757#issuecomment-1067305089


   I guess this is caused since we don't ship recent Jakarte EE xmls: https://github.com/apache/netbeans/blob/13-rc1/enterprise/j2ee.common/src/org/netbeans/modules/j2ee/common/dd/DDHelper.java#L69-L70
   
   That unsupported version message is cause by that code: 
   https://github.com/apache/netbeans/blob/13-rc1/enterprise/j2ee.dd/src/org/netbeans/modules/j2ee/dd/impl/common/DDUtils.java#L112-L130


-- 
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


[GitHub] [netbeans] asbachb edited a comment on issue #3757: Problems with Jakarta Schemas

Posted by GitBox <gi...@apache.org>.
asbachb edited a comment on issue #3757:
URL: https://github.com/apache/netbeans/issues/3757#issuecomment-1067324614


   I started to work on that issue. I'm going to keep that branch in sync (force push). But I'm unsure if I'm capable of fixing that issue as many modules needs to be touched.
   
   https://github.com/asbachb/incubator-netbeans/tree/jakartaee-fixup


-- 
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


[GitHub] [netbeans] cpramirez edited a comment on issue #3757: Problems with Jakarta Schemas

Posted by GitBox <gi...@apache.org>.
cpramirez edited a comment on issue #3757:
URL: https://github.com/apache/netbeans/issues/3757#issuecomment-1067713814


   I deploy in a Tomcat10 and I am not having problems with it. It is also true that I am forced to pass the [Tomcat migration tool](https://github.com/apache/tomcat-jakartaee-migration) beforehand because some of my dependencies are not Jakarta yet, but it theory it only upgrades from Java EE 8 to Jakarta EE 9, it does not downgrade.
   
   Also, as it is only Tomcat, and not TomEE, it has only the Web elements integrated (Servlets, etc.), for the rest it depends on the libraries that come packaged in the war.
   
   The IDE is configured with the Jakarta EE 9 Web on its properties.


-- 
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


[GitHub] [netbeans] cpramirez commented on issue #3757: Problems with Jakarta Schemas

Posted by GitBox <gi...@apache.org>.
cpramirez commented on issue #3757:
URL: https://github.com/apache/netbeans/issues/3757#issuecomment-1067713814


   I deploy in a Tomcat10 and I am not having problems with it. It is also true that I am forced to pass the [Tomcat migration tool](https://github.com/apache/tomcat-jakartaee-migration) beforehand because some of my dependencies are not Jakarta yet, but it theory it only upgrades from Java EE 8 to Jakarta EE 9, it does not downgrade.
   
   The IDE is configured with the Jakarta EE 9 Web on its properties.


-- 
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


[GitHub] [netbeans] asbachb commented on issue #3757: Problems with Jakarta Schemas

Posted by GitBox <gi...@apache.org>.
asbachb commented on issue #3757:
URL: https://github.com/apache/netbeans/issues/3757#issuecomment-1067233930


   @cpramirez Which application server you're using?


-- 
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


[GitHub] [netbeans] asbachb commented on issue #3757: Problems with Jakarta Schemas

Posted by GitBox <gi...@apache.org>.
asbachb commented on issue #3757:
URL: https://github.com/apache/netbeans/issues/3757#issuecomment-1067324614


   I started to work on that issue. I'm going to keep that branch in sync. But I'm unsure if I'm capable of fixing that issue as many modules needs to be touched.
   
   https://github.com/asbachb/incubator-netbeans/tree/jakartaee-fixup


-- 
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


[GitHub] [netbeans] cpramirez commented on issue #3757: Problems with Jakarta Schemas

Posted by GitBox <gi...@apache.org>.
cpramirez commented on issue #3757:
URL: https://github.com/apache/netbeans/issues/3757#issuecomment-1067360850


   > @cpramirez Which application server you're using?
   
   Tomcat. I do not remember the version right now, as I do not normally deploy on local so the server integrated with the Netbeans is kind of "dummy". I can check it for you if it really important.


-- 
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


[GitHub] [netbeans] asbachb commented on issue #3757: Problems with Jakarta Schemas

Posted by GitBox <gi...@apache.org>.
asbachb commented on issue #3757:
URL: https://github.com/apache/netbeans/issues/3757#issuecomment-1067361667


   I just wondered as I don't think Jakarta EE 9.1 is supported by now.


-- 
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