Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 366977 - EJB Project wizard doesn't show up and shows an error
Summary: EJB Project wizard doesn't show up and shows an error
Status: RESOLVED WONTFIX
Alias: None
Product: WTP Java EE Tools
Classification: WebTools
Component: jst.j2ee (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.3.2 P   Edit
Assignee: Galileo Perez CLA
QA Contact: Chuck Bridgham CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-16 15:48 EST by Galileo Perez CLA
Modified: 2015-02-24 11:46 EST (History)
2 users (show)

See Also:


Attachments
NPE Fix (8.86 KB, patch)
2011-12-16 15:53 EST, Galileo Perez CLA
galileo: review?
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Galileo Perez CLA 2011-12-16 15:48:50 EST
Build Identifier: WTP 3.3.2

Using an adopter product over eclipse with WTP 3.3.2 when creating an EJB
project on a workspace with two runtimes, one supports a facet and the other
doesn't. The wizard never appears and log. file shows a NPE.

java.lang.NullPointerException
    at
org.eclipse.wst.common.project.facet.core.internal.FacetedProjectWorkingCopy.setProjectFacets(FacetedProjectWorkingCopy.java:726)
    at
org.eclipse.wst.web.ui.internal.wizards.NewProjectDataModelFacetWizard.setRuntimeAndDefaultFacets(NewProjectDataModelFacetWizard.java:261)
    at
org.eclipse.wst.web.ui.internal.wizards.NewProjectDataModelFacetWizard.createPageControls(NewProjectDataModelFacetWizard.java:150)
    at
org.eclipse.jface.wizard.WizardDialog.createPageControls(WizardDialog.java:736)
    at
org.eclipse.jface.wizard.WizardDialog.createContents(WizardDialog.java:608)
    at org.eclipse.jface.window.Window.create(Window.java:431)
    at org.eclipse.jface.dialogs.Dialog.create(Dialog.java:1089)

Reproducible: Always

Steps to Reproduce:
1.Install the two runtimes with EJB facet that is not supported in one of them
2.Create a web project with runtime of the runtime that does not support the
EJB facet and check the Add project to EAR checkbox
3.File > New > EJB Project
Comment 1 Galileo Perez CLA 2011-12-16 15:53:15 EST
Created attachment 208507 [details]
NPE Fix
Comment 2 Roberto Sanchez Herrera CLA 2015-02-24 11:46:45 EST
Please reopen if this backport is still needed.