facebook

[Closed] MyEclipse 5.0 M2 fails to open JSP pages.

  1. MyEclipse Archived
  2.  > 
  3. Bugs
Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #254350 Reply

    henk
    Member

    Win XPSP2 / Eclipse 3.2 GA / MyEclipse 5.0 M2. Fresh install, only added subversive plug-in.

    I did a clean checkout from my SVN reposity. After MyEclipse was done building and validating, I tried to open a JSP page. This gave me an dialog saying:

    “An Error has occured. See error log for more details”

    The editor tab appears but is empty (gray). The tab doesn’t show the file name, but sais: “MyEclipse JSP Designer.”

    In the error log the following appeared: (using copy to clipboarc from error log view)

    eclipse.buildId=M20060629-1905
    java.version=1.5.0_06
    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

    Error
    Sat Jul 08 01:19:13 CEST 2006
    Problems occurred when invoking code from plug-in: “org.eclipse.jface”.

    java.lang.NoClassDefFoundError: org/eclipse/swt/browser/MozillaBrowser
    at java.lang.Class.getDeclaredConstructors0(Native Method)
    at java.lang.Class.privateGetDeclaredConstructors(Unknown Source)
    at java.lang.Class.getConstructor0(Unknown Source)
    at java.lang.Class.newInstance0(Unknown Source)
    at java.lang.Class.newInstance(Unknown Source)
    at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:157)
    at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:759)
    at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
    at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:51)
    at org.eclipse.ui.internal.WorkbenchPlugin.createExtension(WorkbenchPlugin.java:234)
    at org.eclipse.ui.internal.registry.EditorDescriptor.createEditor(EditorDescriptor.java:231)
    at org.eclipse.ui.internal.EditorManager.createPart(EditorManager.java:908)
    at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:549)
    at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:372)
    at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:566)
    at org.eclipse.ui.internal.EditorReference.getEditor(EditorReference.java:214)
    at org.eclipse.ui.internal.WorkbenchPage.makeActiveEditor(WorkbenchPage.java:1168)
    at org.eclipse.ui.internal.WorkbenchPage.updateActivePart(WorkbenchPage.java:1126)
    at org.eclipse.ui.internal.WorkbenchPage.partAdded(WorkbenchPage.java:1524)
    at org.eclipse.ui.internal.EditorAreaHelper.addEditor(EditorAreaHelper.java:210)
    at org.eclipse.ui.internal.EditorManager.createEditorTab(EditorManager.java:819)
    at org.eclipse.ui.internal.EditorManager.openEditorFromDescriptor(EditorManager.java:718)
    at org.eclipse.ui.internal.EditorManager.openEditor(EditorManager.java:679)
    at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2586)
    at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2521)
    at org.eclipse.ui.internal.WorkbenchPage.access$10(WorkbenchPage.java:2513)
    at org.eclipse.ui.internal.WorkbenchPage$9.run(WorkbenchPage.java:2498)
    at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67)
    at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2493)
    at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2478)
    at org.eclipse.ui.ide.IDE.openEditor(IDE.java:388)
    at org.eclipse.ui.ide.IDE.openEditor(IDE.java:350)
    at org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(EditorUtility.java:275)
    at org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(EditorUtility.java:139)
    at org.eclipse.jdt.internal.ui.actions.OpenActionUtil.open(OpenActionUtil.java:49)
    at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:190)
    at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:174)
    at org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchRun(SelectionDispatchAction.java:267)
    at org.eclipse.jdt.ui.actions.SelectionDispatchAction.run(SelectionDispatchAction.java:243)
    at org.eclipse.jdt.internal.ui.packageview.PackageExplorerActionGroup.handleOpen(PackageExplorerActionGroup.java:306)
    at org.eclipse.jdt.internal.ui.packageview.PackageExplorerPart$4.open(PackageExplorerPart.java:651)
    at org.eclipse.jface.viewers.StructuredViewer$2.run(StructuredViewer.java:817)
    at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
    at org.eclipse.core.runtime.Platform.run(Platform.java:843)
    at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:44)
    at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:149)
    at org.eclipse.jface.viewers.StructuredViewer.fireOpen(StructuredViewer.java:815)
    at org.eclipse.jface.viewers.StructuredViewer.handleOpen(StructuredViewer.java:1069)
    at org.eclipse.jface.viewers.StructuredViewer$6.handleOpen(StructuredViewer.java:1168)
    at org.eclipse.jface.util.OpenStrategy.fireOpenEvent(OpenStrategy.java:249)
    at org.eclipse.jface.util.OpenStrategy.access$2(OpenStrategy.java:243)
    at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:283)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3348)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2968)
    at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1914)
    at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878)
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:419)
    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
    at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:95)
    at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:78)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336)
    at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
    at org.eclipse.core.launcher.Main.run(Main.java:977)
    at org.eclipse.core.launcher.Main.main(Main.java:952)

    Currently I have only a really old version of mozilla installed (I use Firefox as my main browser).

    #254356

    Greg
    Member

    Try restarting MyEclipse once with a “-clean” argument. That should clear things up.

    #254358

    I had the same issue and that worked like a charm.

    Thanks Gregg

    #254363

    henk
    Member

    I tried -clean and it worked for me too. Thanks!

    Btw,wouldn’t it be possible somehow to catch this exception and advice the user to restart using -clean? Or even better, could a plug-in initiate such a restart?

    #254368

    Scott Anderson
    Participant

    We’ve actually looked at both. Unfortunately, the update manager restart mechanism in the workbench is a *very* low level feature that isn’t really open to customization. We’ve even asked the update manager team to always restart with -clean after updates (via a bug report) as a safeguard. They always assert that “oh, that was just a bug and it’s fixed now.” But it isn’t. There are still lots of bugs around restart. But they won’t add -clean without a specific, reproducable testcase and our product is a bit big for that. Even the BIRT project recommends clean restarts.

    Anyway, we put it in each announcement when we release product to let everyone know, but it still apparently doesn’t get read all the time. 😉

    #254431

    @mikeklat wrote:

    I had the same issue and that worked like a charm.

    Thanks Gregg

    Thanks Gregg again! I had done the same thing.

    #254432

    another question :Where can I find the error log ? I had searched for the directory . I am a freshman in Eclipse ^_^.

    #254464

    @xgj9795@gmail.com wrote:

    another question :Where can I find the error log ? I had searched for the directory . I am a freshman in Eclipse ^_^.

    Look at <Workspace Dir>\.metadata\.log

    #254475

    Riyad Kalla
    Member

    <workspace dir>\.metadata\.log is the file

Viewing 9 posts - 1 through 9 (of 9 total)
Reply To: [Closed] MyEclipse 5.0 M2 fails to open JSP pages.

You must be logged in to post in the forum log in