This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
[ BUILD # : 201306102301 ] [ JDK VERSION : 1.7.0_21 ] Fresh install of latest daily build, Full bundle with GlassFish 4, Windows installer. Create a new JavaEE application (using defaults in every field). The "Finish" button throws an exception and dones't validate: java.lang.UnsupportedOperationException: Project in C:\Users \TheKnightsWhoSayNii\Documents\NetBeansProjects \EnterpriseApplication3\EnterpriseApplication3-war of class org.netbeans.modules.web.project.WebProject has a ProjectClassPathModifierImplementation but it will not handle classpath/ compile_only for C:\Users\TheKnightsWhoSayNii\Documents \NetBeansProjects\EnterpriseApplication3\EnterpriseApplication3-war extensible source groups: C:\Users\TheKnightsWhoSayNii\Documents \NetBeansProjects\EnterpriseApplication3\EnterpriseApplication3-war \src\java at org.netbeans.api.java.project.classpath.ProjectClassPathModifier.findExt ensible(ProjectClassPathModifier.java:386) at org.netbeans.api.java.project.classpath.ProjectClassPathModifier.addAnt Artifacts(ProjectClassPathModifier.java:277) at org.netbeans.modules.j2ee.earproject.EarProjectGenerator.addEJBToCl assPaths(EarProjectGenerator.java:371) at org.netbeans.modules.j2ee.earproject.ui.wizards.NewEarProjectWizardIt erator.testableInstantiate(NewEarProjectWizardIterator.java:289) at org.netbeans.modules.j2ee.earproject.ui.wizards.NewEarProjectWizardIt erator.instantiate(NewEarProjectWizardIterator.java:164) at org.openide.loaders.TemplateWizard $InstantiatingIteratorBridge.instantiate(TemplateWizard.java:1044) at org.openide.loaders.TemplateWizard.handleInstantiate (TemplateWizard.java:605) at org.openide.loaders.TemplateWizard.instantiateNewObjects (TemplateWizard.java:439) at org.openide.loaders.TemplateWizardIterImpl.instantiate (TemplateWizardIterImpl.java:253) at org.openide.loaders.TemplateWizardIteratorWrapper $ProgressInstantiatingIterator.instantiate (TemplateWizardIteratorWrapper.java:180) at org.openide.WizardDescriptor.callInstantiateOpen (WizardDescriptor.java:1626) at org.openide.WizardDescriptor.callInstantiate (WizardDescriptor.java:1570) at org.openide.WizardDescriptor.access $2300(WizardDescriptor.java:92) [catch] at org.openide.WizardDescriptor$Listener$2$1.run (WizardDescriptor.java:2257) at org.openide.util.RequestProcessor$Task.run (RequestProcessor.java:1432) at org.openide.util.RequestProcessor$Processor.run (RequestProcessor.java:2042)
Created attachment 135657 [details] netbeans logs
Created attachment 135658 [details] Screenshot of the New Project dialog and exception
100% reproducible. Probably related to the j2ee.common cleanup (the same cause as the web-main-tests failure). Increasing priority since I don't have any WA for EAR project creation and it should be fixed to Beta.
*** Bug 231084 has been marked as a duplicate of this bug. ***
I did tested EAR creation at one point and it worked. Looking into it now.
(In reply to comment #5) > I did tested EAR creation at one point and it worked. Looking into it now. Obviously I must have tested it before I did the change because EAR creation with default wizard settings always fails. Same as unit tests. It was a silly mistake - passing project root into classpath modifying functions instead of Java sources folder root. Sorry about that. web-main#9641f575be8a
Integrated into 'main-golden', will be available in build *201306132301* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/9641f575be8a User: David Konecny <dkonecny@netbeans.org> Log: #231106 - UnsupportedOperationException on EnterpriseApplication project creation