- This topic has 8 replies, 3 voices, and was last updated 4 years, 1 month ago by ibanezje.
-
AuthorPosts
-
PatriceParticipantWell 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.16cheers Patrice
Brian FernandesModeratorPatrice,
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/.log
ibanezjeParticipant1 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 attachAttachments:
You must be logged in to view attached files.
Brian FernandesModeratorThe 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.xml
file? 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_PROD
as being the root of many problems. Have you renamed or moved the project? IsWPLscan_PROD
the 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?
ibanezjeParticipant1 . <faceted-project>
<runtime name=”was.base.v85″/>
<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 attachmentAttachments:
You must be logged in to view attached files.
Brian FernandesModeratorPatrice,
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
-clean
argument, 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?
ibanezjeParticipantI 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?
Brian FernandesModeratorHmm, 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!
ibanezjeParticipantOk so importing in new workspace worked, but needed some tweaking here and there, but I got it to work .
Thanks for the support! -
AuthorPosts