richard-grin opened a new issue, #4605:
URL: https://github.com/apache/netbeans/issues/4605
### Apache NetBeans version
Apache NetBeans 15 release candidate
### What happened
Windows 11
NetBeans 15
Impossible to create a Java with Maven - Web Application, Server GlassFish
Server 6.2.5, Jakarta EE 9.1
Menu File > New Project > Java with Maven > Web Application.
Server: GlassFish Server 6.2.5
Java EE Version: Jakarta EE 9.1 Web.
Click on Finish.
In the Notifications Zone, an "Unexpected Exception" appears. The error
message:
java.lang.IllegalStateException: **No archetype defined for profile 9.1-web
in class
org.netbeans.modules.maven.j2ee.ui.wizard.archetype.J2eeArchetypeFactory$WebArchetypes**;
check whether all possible <Profile, Archetype> pairs have been added
at
org.netbeans.modules.maven.j2ee.ui.wizard.archetype.BaseJ2eeArchetypeProvider.getArchetypeFor(BaseJ2eeArchetypeProvider.java:135)
at
org.netbeans.modules.maven.j2ee.ui.wizard.archetype.J2eeArchetypeFactory.findArchetypeFor(J2eeArchetypeFactory.java:79)
at
org.netbeans.modules.maven.j2ee.ui.wizard.EEWizardIterator.instantiate(EEWizardIterator.java:102)
at ...
...
### How to reproduce
Launch NetBeans 15.
Menu File > New Project > Java with Maven > Web Application.
Server: GlassFish Server 6.2.5
Java EE Version: Jakarta EE 9.1 Web.
Click on Finish.
In the Notifications Zone, an "Unexpected Exception" appears. The error
message:
java.lang.IllegalStateException: No archetype defined for profile
**9.1-web** in class
org.netbeans.modules.maven.j2ee.ui.wizard.archetype.J2eeArchetypeFactory$WebArchetypes;
check whether all possible <Profile, Archetype> pairs have been added
at
org.netbeans.modules.maven.j2ee.ui.wizard.archetype.BaseJ2eeArchetypeProvider.getArchetypeFor(BaseJ2eeArchetypeProvider.java:135)
at
org.netbeans.modules.maven.j2ee.ui.wizard.archetype.J2eeArchetypeFactory.findArchetypeFor(J2eeArchetypeFactory.java:79)
at
org.netbeans.modules.maven.j2ee.ui.wizard.EEWizardIterator.instantiate(EEWizardIterator.java:102)
at ...
...
### Did this work correctly in an earlier version?
Apache NetBeans 13
### Operating System
Windows 11
### JDK
Java: 17; OpenJDK 64-Bit Server VM 17+35-2724
### Apache NetBeans packaging
Apache NetBeans provided installer
### Anything else
Every time.
The creation of a Maven Web Application for Jakarta EE 8 worked in NetBeans
13. I didn't try NetBeans 14.
Afterwards, it is not possible to create a new project, of any type (even a
simple Java project with Maven). I must restart NetBeans to be able to create a
simple Java project with Maven.
### 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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
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