- This topic has 8 replies, 3 voices, and was last updated 20 years, 3 months ago by Paul.
-
AuthorPosts
-
YellowDogMemberI’m dead in the water here guys. My next step is to uninstal and reinstall. Is there a better way?
I added a JAR to \WEB-INF\lib and refreshed the project. I shut down and restarted Eclipse. I’m getting the following error on startup:
Could not restore workbench layout.
Reason:
Problems occured restoring workbench.
Details:
Unable to restore perspective: Workspace – Resources.What operating system and version are you running? Win XP Pro
What Eclipse version and build id are you using? (Help > About Eclipse Platform) 2.1.3 / 200403101828
– Was Eclipse freshly installed for MyEclipse? Yes
– If not, was it upgraded to its current version using the update manager?
– Are any other external plugins installed? No
– How many plugins in the <eclipse>/plugins directory are like org.eclipse.pde.* 7
What MyEclipse version are you using? (Help > About Eclipse Platform > Features) 2.7.1
What JDK version are you using to run Eclipse? (java -version) 1.4.2
What JDK version are you using to launch your application server? 1.4.2
What steps did you take that resulted in the issue?
What application server are you using? Tomecat 5.0.19
Are there any errors in the Eclipse log? (<workspace>/.metadata/.log)
!SESSION Aug 31, 2004 13:38:32.74 ———————————————-
java.version=1.4.2
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Command-line arguments: -os win32 -ws win32 -arch x86 -data C:\EclipseWS -install file:C:/Eclipse/
!ENTRY org.eclipse.ui 4 4 Aug 31, 2004 13:38:32.74
!MESSAGE Unable to find element factory: org.eclipse.ui.internal.model.ResourceFactory
!ENTRY org.eclipse.ui 4 4 Aug 31, 2004 13:38:32.74
!MESSAGE Unable to restore pagee – cannot instantiate input factory: org.eclipse.ui.internal.model.ResourceFactory
!ENTRY org.eclipse.ui 4 4 Aug 31, 2004 13:38:32.215
!MESSAGE Could not create view: org.eclipse.ui.views.ResourceNavigator
!ENTRY org.eclipse.ui 4 4 Aug 31, 2004 13:38:32.215
!MESSAGE Unable to find view label: org.eclipse.ui.views.BookmarkNavigator
!ENTRY org.eclipse.ui 4 4 Aug 31, 2004 13:38:32.215
!MESSAGE Could not create view: org.eclipse.ui.views.ContentOutline
!ENTRY org.eclipse.ui 4 4 Aug 31, 2004 13:38:32.215
!MESSAGE Could not create view: org.eclipse.ui.views.TaskList
!ENTRY org.eclipse.ui 4 4 Aug 31, 2004 13:38:32.230
!MESSAGE Referenced part does not exist yet: org.eclipse.ui.views.ContentOutline.
!ENTRY org.eclipse.ui 4 4 Aug 31, 2004 13:38:32.230
!MESSAGE Unable to find Action Set: org.eclipse.ui.NavigateActionSet
!ENTRY org.eclipse.ui 4 4 Aug 31, 2004 13:38:32.340
!MESSAGE Invalid Menu Extension (Path is invalid): com.genuitec.myeclipse.webproject.action.projectconvert
!ENTRY org.eclipse.core.resources 2 1 Aug 31, 2004 13:40:25.934
!MESSAGE Skipping builder org.eclipse.jdt.core.javabuilder for project WebForms. Either the builder is missing from the install, or it belongs to a project nature that is missing or disabled.
!ENTRY org.eclipse.core.resources 2 1 Aug 31, 2004 13:40:25.934
!MESSAGE Skipping builder de.bb.bje.eclipse.IncrementalJspBuilder for project WebForms. Either the builder is missing from the install, or it belongs to a project nature that is missing or disabled.
!ENTRY org.eclipse.core.resources 2 1 Aug 31, 2004 13:40:25.950
!MESSAGE Skipping builder com.genuitec.eclipse.ast.deploy.core.DeploymentBuilder for project WebForms. Either the builder is missing from the install, or it belongs to a project nature that is missing or disabled.
Riyad KallaMemberOk a few things, lets do some sanity checks:
NOTE: The “cannot restore workbench layout” is typically harmless and can be ignored, just open the views/perspective back up that you need. BUT since you said you were dead in the water, I’m guessing something is *busted*
-
1) Startup Eclipse, check the Window > Prefs dialog, do you see the MyEclipse prefs? Can you click around in them and view them all OK?
2) Check your <eclipse dir>\links folder, do you see a com.genuitec.blah.blah file? What is its contents?
3) If you go to Help > About in Eclipse, can you see a MyEclipse icon? Can you click it and see plugin/feature information and versions OK?
4) Window > Open Perspective > Other… > MyEclipse, did that work?
5) Can you open your Java Projects and Web Module/EJB or EAP Projects alright?IF you got to this point and things still aren’t working:
6) Close ALL your editors and projects, and all your perspectives, navigate to your <workspace dir>\.metadata directory and move the .config directory to your desktop (we want to delete it, but just incase lets move it first)
7) Start Eclipse up, did it start OK? Can you slowly open back up your perspectives? If so, go ahead and erase the .config dir on your desktop.
YellowDogMember1) No. Clicking Windows > Prefs does not respond.
2) path=C:\\EclipseME
3) Yes
4) Yes, but other thant the borders for the various views, the screen is blank.
5) No.
6) OK, moved.
7) No. A brief message appears that says “check the log”. Eclipse will not start. Here’s the log entry:!SESSION ———————————————————————-
!ENTRY org.eclipse.core.launcher 4 0 Sep 01, 2004 11:20:41.415
!MESSAGE Exception launching the Eclipse Platform:
!STACK
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.eclipse.core.launcher.Main.basicRun(Main.java:291)
at org.eclipse.core.launcher.Main.run(Main.java:747)
at org.eclipse.core.launcher.Main.main(Main.java:583)
Caused by: java.lang.IllegalArgumentException: Application not found: org.eclipse.update.core.reconciler.
at org.eclipse.core.internal.boot.InternalBootLoader.run(InternalBootLoader.java:856)
at org.eclipse.core.boot.BootLoader.run(BootLoader.java:461)
… 7 more
Riyad KallaMemberOk I’ve had this happen to me twice on linux but never on Windows, my Workspaec got corrupt and thekey was to create a new one. This wasn’t ME’s fault as I’ve had it happen on a vanilla Eclipse install that I was using for testing before… no idea what causes it but it doesn’t seem to happen with 3.0 anymore.
So try this:
1) Try and export your preferences from your current eclipse if you can and shut down Eclipse.
2) Move you workspace dir to your desktop and erase the new .config dir and then start Eclipse, it should act as if it was just reinstalled fresh.
3) Try and import your preferences, then slowly try and move your projects (using Windows explorer or something) back into your workspace and Importing them via File > import until you are back in action.It really sounds like something got barfed on hard…
PaulParticipantI was going to comment on this in a diff thread, but it might actually be more appropriate here – not sure if this is your problem or not. I was viewing the latest struts tutorial yesterday, and in that the demonstrater went to windows explorer and copied a graphic file (file type doesn’t matter) directly into the workspace file heirarchy, bypassing eclipse in the process. They then went back to eclipse and linked to the file from there.
I’ve done this in the past on Linux, and it hosed me huge. To do anything like that I have to inside of eclipse right-click on the target directory, select ‘Import’, and then ‘import from filesystem’ to bring in any external artifacts.
Not sure if this is related or not, but I’ve hosed my workspace in the past by doing the above.
Riyad KallaMemberpwoods, that’s interesting that caused it to die because when I did hose it on Linux it happened twice in 2 weeks and was making me crazy… and I do a lot of drag-n-drop from my external file system into Eclipse which is what might have caused the problem…
Thanks for the information.
YellowDogMemberOK. I’m back in business. I think.
Here’s what I did.
I was able to get back into the crippled Eclipse by restoring the (faulty) .config file.
I exported my preferences and shut down Eclipse.
I moved the suspect workspace directory tree to an archive.
I re-started Eclipse with my usual script and it created the workspace anew. I imported my preferences and shut down Eclipse.
I then retrieved the old workspace file, extracted the project directory tree, and copied that (using OS utilities) to the newly created workspace.
I re-started Eclipse and did a File > Import > Existing Project Into Workspace using the project directory tree as the source. That went swimmingly. Now I’m back up. Almost.
I still had some unresolved messiness with the JAR file that I had originally added that started this whole ordeal, but I quickly ran that to ground.
Thanks for your help!
P.S. “copying directly into the workspace file heirarchy, bypassing eclipse in the process”. I think what may have done me in is this JAR file I added was an upgrade of an existing JAR (commons-collection-3.1 vs. commons-collections). Eclipse immediately went into a re-compile frenzy (project is Struts) w/o me ever having added the JAR to the Build Path. From there it was all downhill.
Riyad KallaMemberYellow I’m glad to hear you are back in business, that really is a brutal thing to happen, and pwoods thanks again for your suggestion!
PaulParticipantIt’s funny you mention the drag and drop into eclipse – i just found out you could do that very recently – and that works for me. My problems were when I left my/eclipse out of the equation entirely, and loaded it up w/ what it determined to be a diff directory structure. I guess we learn through a bit of pain the diffs between diff platforms.
-
AuthorPosts