[ https://issues.apache.org/jira/browse/NETBEANS-2778?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Josh Juneau resolved NETBEANS-2778. ----------------------------------- Resolution: Fixed Fix Version/s: 11.1 Repaired webapp-javaee8 archetype with version 1.3 > Java EE 8 project incorrect schema definition in persistence.xml > ---------------------------------------------------------------- > > Key: NETBEANS-2778 > URL: https://issues.apache.org/jira/browse/NETBEANS-2778 > Project: NetBeans > Issue Type: Bug > Environment: 11.1 beta2 > Java: 1.8.0_192; Java HotSpot(TM) 64-Bit Server VM 25.192-b12 > Runtime: Java(TM) SE Runtime Environment 1.8.0_192-b12 > System: Windows 10 version 10.0 running on amd64; Cp1252; en_US (nb) > Reporter: Vano Beridze > Assignee: Josh Juneau > Priority: Major > Fix For: 11.1 > > > # Create maven java ee 8 web project > # open persistence.xml > <?xml version="1.0" encoding="UTF-8"?> > <persistence version="2.1" xmlns="http://xmlns.jcp.org/xml/ns/persistence" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/persistence > [http://xmlns.jcp.org/xml/ns/persistence/persistence_2_1.xsd]"> > <persistence-unit name=""> > > </persistence-unit> > </persistence> > > It should be like > {{<persistence xmlns=}}{{"[http://xmlns.jcp.org/xml/ns/persistence]"}} > {{ }}{{xmlns:xsi=}}{{"[http://www.w3.org/2001/XMLSchema-instance]"}} > {{version=}}{{"2.2"}} > {{ }}{{xsi:schemaLocation=}}{{"[http://xmlns.jcp.org/xml/ns/persistence] > [http://xmlns.jcp.org/xml/ns/persistence/persistence_2_2.xsd]"}}{{>}} > {{ }}{{<!-- Define persistence unit -->}} > {{ }}{{<persistence-unit name=}}{{"my-persistence-unit"}}{{>}} > {{ }}{{</persistence-unit>}} > {{</persistence>}} > > another problem is that persistence unit is partially defined. I think wizard > should not generate it at all. > > -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists