Accepted answer

i had to delete the project facet .xml file so i could recreate it with the correct facets


root cause is that the wtp project configuration fails due to the wrong java web facet being installed.

you could try to determine if the ear project has deployment descriptor, if so, then force save.

    final referencedcomponent ref = addcomponenttoenterpriseapplicationop.findreferencedcomponent(earwc, wc, se, compse);

Related Query

More Query from same tag