September 24, 2020 at 9:03 am #664027
Well the title says it all.
I hava projects configured with EAR facet.
When I close the project and reopen, the facet is gone. Pretty annoying.
This has worked ok before. current ME version: 2020.9.16
cheers PatriceSeptember 28, 2020 at 6:08 am #664122
I’m sorry we missed this post last week – that behavior sounds very odd.
1) What if you restart the Eclipse session without closing the project – is the facet retained then?
2) Can you tell me what version of MyEclipse you were using before – did it start happening only after the 2020.9.16 update?
3) Please send us your workspace log file – you can find it at
[workspace_location]/.metadata/.logSeptember 29, 2020 at 2:12 am #664160
1 with project open and restart, the facet is retained
2 not 100% sure but it seems it worked before the 2020.9.16 update. Cant remember what version that was but I always upgrade to the latest version when ME promps me to.
3 see attach
Attachments:You must be logged in to view attached files.September 29, 2020 at 5:33 am #664166
The log doesn’t indicate any facet removal, however, it does show several facet related errors in your project. It may be that the facet is present, but when you open the property page to check, an error prevents the page from being correctly initialized, resulting in that facet being unchecked. If you close / apply changes now, the facet may actually be removed by this page if you don’t check it again.
1) When you close and reopen your project, instead of opening the property page, can you check the contents of the
.settings/org.eclipse.wst.common.project.facet.core.xmlfile? See if it has an
<installed facet="jst.ear" ...>element?
2) I see this error in the file
java.lang.IllegalArgumentException: Path must include project and resource name: /WPLscan_PRODas being the root of many problems. Have you renamed or moved the project? Is
WPLscan_PRODthe name of an existing project in your workspace – is this the project losing facets?
3) Could you try creating a new dummy EAR project and see if the issue can be replicated with this project?September 29, 2020 at 8:05 am #664168
1 . <faceted-project>
<installed facet=”jst.ear” version=”6.0″/> </faceted-project>
So facet is still configured but properties panel doesn’t show it. More important, when I want to deploy to Websphere, the project is not selectable as an available resource (because is is not recognized as an Ear I suppose)
2. I have multiple EAR projects in the same workspace, WPLscan_PROD is one of them. Every EAR project has this same behaviour. Nothing has moved.
3. When I try to create a new EAR project nothing happens, but error messages appears in error log. Also , new WebProject doesn’t work. See log attachment
Attachments:You must be logged in to view attached files.September 30, 2020 at 8:12 am #664221
This is beginning to look more like a corrupt install with key bits missing according to your log file – perhaps something went awry with the update. The fact that you cannot even create a new WebProject is indicative of how corrupt your install probably is.
Can you start MyEclipse just once with the
-cleanargument, and if that doesn’t resolve the issue, can you download a fresh offline installer and use the repair option to repair the current installation?September 30, 2020 at 9:20 am #664225
I did a complete clean install, -clean and repair did not work.
Even the clean instal did not resolve the issue in this specific workspace.
When I create a new workspace, all problems are gone and I can create a fresh EAP project.
So the trouble is in the workspace.
Is there a way to copy or duplicate a workspace to a fresh initialized new workspace?September 30, 2020 at 9:52 am #664227
Hmm, I was going to suggest a new workspace, but didn’t think it would resolve this sort of problem, so didn’t bother. Glad you tried it out.
To import projects, if they’re all in the same directory, you can just use the Import project wizard, specify that directory and it will pick them all up. Any version control systems they’re connected to should get automatically initialized as well. If it’s more complicated than that, you could look at exporting a Team Project set from the export wizard.
For preferences, you can export and import some of the preferences from the preference export / import wizard.
Hope this helps!October 1, 2020 at 3:46 am #664244
Ok so importing in new workspace worked, but needed some tweaking here and there, but I got it to work .
Thanks for the support!