[
https://issues.apache.org/jira/browse/NETBEANS-6030?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17426172#comment-17426172
]
Claudia Pastor Ramirez commented on NETBEANS-6030:
--------------------------------------------------
Hello, still having issues with this. I have been investigating a little bit
about it and I have found more information. For example, about the problem with
the not recognised server.xml and persistence.xml files. It seems that none of
the [JakartaEE Schemas|https://jakarta.ee/xml/ns/jakartaee/] are included in
the IDE. Here is for example the catalog for the Persistence:
!Captura de pantalla de 2021-10-08 14-36-56.png!
It happens also with the webservices Catalog.
It seems that the org-netbeans-modules-j2ee-persistence.jar module that comes
bundled with the snap version for Ubuntu does not include the persistence APIs
over 2.1:
!Captura de pantalla de 2021-10-08 14-43-10.png!
Neither I see an equivalent module for jakartaee persistence.
I hope this helps.
> Unable to add Jakarta Persistence Provider
> ------------------------------------------
>
> Key: NETBEANS-6030
> URL: https://issues.apache.org/jira/browse/NETBEANS-6030
> Project: NetBeans
> Issue Type: Bug
> Components: javaee - Persistence
> Affects Versions: 12.4, 12.5
> Environment: Netbeans 12.4 both on Windows 10 and Ubuntu 20.04.
> Netbeans 12.5 on Ubuntu 20.04.
> API versions tested: Jakarta 2.2.3 and 3.0.0
> Persistence providers: Eclipselink-3.0.2 and Hibernate-5.5.3
> Reporter: Claudia Pastor Ramirez
> Priority: Minor
> Attachments: Captura de pantalla 2021-08-27 151310.png, Captura de
> pantalla de 2021-10-08 14-36-56.png, Captura de pantalla de 2021-10-08
> 14-43-10.png, ErrorMessage.png
>
>
> Hello everyone,
> First of all, thank you for your work on the IDE and your support on this
> concrete matter.
> The problem I currently have is that I am trying to add a new persistence
> provider for the 3.0 Persistence API, but the IDE seems to be unable to
> recognise the libraries as valid. I have tried both with Eclipselink and with
> Hibernate. Attached is the image of one of the attempts with Eclipselink (I
> have done several changing the included jars trying to find the problem).
> !Captura de pantalla 2021-08-27 151310.png!
>
> I am able to work with my projects despite of that, because I use Maven and
> the libraries are included anyway, but the IDE keeps telling me that my
> persistence.xml is wrong because it is declared as version 3.0 and giving me
> annoying warning and error messages right and left.
> !ErrorMessage.png!
> I suspect that the problem is because the wizard does not find the
> EntityManager under the Jakarta namespace, so it does not allow to carry on
> (it fails with other Jakarta jars, with lower versions too), but I have not
> way of verifying it.
> Thank you again for your help. Regards,
>
> NOTE: There seems to be also problems because I am using a 5.0 servlet
> version and it does not recognise it as you can see in the errors, but this
> one affects less to my work, so I have not opened an issue for it. Should I?
>
> {color:#ff0000}UPDATED today a 12.5 and still fails.{color}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
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