facebook

Error with JSP Designer on MyEcplise 5.0M1

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

    everbright
    Member

    Hi,

    I’m trying out MyEclipse 5.0M1 with Eclispe 3.2. Having some problems with the JSP Designer. Whenever I try and create or edit a JSP, I get the following pop-up message:

    [b]Unsupported content type in editor. 
    To associate file extension with a supported content type, please see Content Types Preferences Page.[/b]

    I went into the Content Types Preferences Page, and checked the JSP settings, which seems to be ok.

    Any ideas if this is a bug, or am I having some configuration issues here?

    Thanks!

    #252618 Reply

    Riyad Kalla
    Member

    Looks like a config issue, does this happen when you try and open a certain type of file and you cannot see it’s content, or can you open the file and edit it and this only happens when you try and switch to design mode or something?

    #252658 Reply

    everbright
    Member

    It happens whenever I tried to create or edit a JSP. The default editor for JSP that Eclipse uses to handle JSP is the JSP Designer.

    The Designer will launch, but it will be blank. The pop-up happens whenever you click on the tab for the Designer.

    Did a check on the error log. Got the following errors/warnings whenever the pop-up happens:

    Error
    Sat May 27 09:57:48 SGT 2006
    Problems occurred when invoking code from plug-in: "org.eclipse.jface".
    
    java.lang.NoClassDefFoundError: org/eclipse/wst/javascript/ui/internal/common/taginfo/JavaScriptInformationProvider
        at org.eclipse.jst.jsp.ui.StructuredTextViewerConfigurationJSP.getHTMLSourceViewerConfiguration(StructuredTextViewerConfigurationJSP.java:257)
        at org.eclipse.jst.jsp.ui.StructuredTextViewerConfigurationJSP.getConfiguredContentTypes(StructuredTextViewerConfigurationJSP.java:175)
        at org.eclipse.wst.sse.ui.StructuredTextViewerConfiguration.getContentAssistant(StructuredTextViewerConfiguration.java:202)
        at org.eclipse.wst.sse.ui.internal.StructuredTextViewer.configure(StructuredTextViewer.java:182)
        at org.eclipse.wst.sse.ui.StructuredTextEditor.setSourceViewerConfiguration(StructuredTextEditor.java:2687)
        at org.eclipse.wst.sse.ui.StructuredTextEditor.updateSourceViewerConfiguration(StructuredTextEditor.java:3075)
        at org.eclipse.wst.sse.ui.StructuredTextEditor.update(StructuredTextEditor.java:2744)
        at com.genuitec.eclipse.webdesigner2.HTMLMultiPageEditorPart.createSourcePage(HTMLMultiPageEditorPart.java:439)
        at com.genuitec.eclipse.webdesigner2.HTMLMultiPageEditorPart.createPages(HTMLMultiPageEditorPart.java:255)
        at org.eclipse.ui.part.MultiPageEditorPart.createPartControl(MultiPageEditorPart.java:275)
        at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:596)
        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.PartPane.setVisible(PartPane.java:290)
        at org.eclipse.ui.internal.presentations.PresentablePart.setVisible(PresentablePart.java:140)
        at org.eclipse.ui.internal.presentations.util.PresentablePartFolder.select(PresentablePartFolder.java:268)
        at org.eclipse.ui.internal.presentations.util.LeftToRightTabOrder.select(LeftToRightTabOrder.java:65)
        at org.eclipse.ui.internal.presentations.util.TabbedStackPresentation.selectPart(TabbedStackPresentation.java:394)
        at org.eclipse.ui.internal.PartStack.refreshPresentationSelection(PartStack.java:1144)
        at org.eclipse.ui.internal.PartStack.setSelection(PartStack.java:1097)
        at org.eclipse.ui.internal.PartStack.showPart(PartStack.java:1311)
        at org.eclipse.ui.internal.PartStack.add(PartStack.java:455)
        at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:102)
        at org.eclipse.ui.internal.PartStack.add(PartStack.java:441)
        at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:111)
        at org.eclipse.ui.internal.EditorSashContainer.addEditor(EditorSashContainer.java:60)
        at org.eclipse.ui.internal.EditorAreaHelper.addToLayout(EditorAreaHelper.java:217)
        at org.eclipse.ui.internal.EditorAreaHelper.addEditor(EditorAreaHelper.java:207)
        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:2535)
        at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2470)
        at org.eclipse.ui.internal.WorkbenchPage.access$10(WorkbenchPage.java:2462)
        at org.eclipse.ui.internal.WorkbenchPage$9.run(WorkbenchPage.java:2447)
        at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67)
        at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2442)
        at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2427)
        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:187)
        at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:171)
        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:811)
        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:809)
        at org.eclipse.jface.viewers.StructuredViewer.handleOpen(StructuredViewer.java:1063)
        at org.eclipse.jface.viewers.StructuredViewer$6.handleOpen(StructuredViewer.java:1162)
        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:925)
        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:143)
        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)
    
    Warning
    Sat May 27 09:57:48 SGT 2006
    StructuredTextEditor being used without StructuredDocument
    
    Warning
    Sat May 27 09:57:48 SGT 2006
             Input Name: MyJsp.jsp
    Warning
    Sat May 27 09:57:48 SGT 2006
            Unexpected IDocumentProvider implementation: org.eclipse.ui.editors.text.TextFileDocumentProvider
    Warning
    Sat May 27 09:57:48 SGT 2006
            Unexpected IDocument implementation: org.eclipse.core.internal.filebuffers.SynchronizableDocument

    Hope that provides some clues to this issue!

    #252665 Reply

    Riyad Kalla
    Member

    It looks like you might have a different version of WTP installed besides what MyEclipse ships (notice the class not found exception, API break). Check your Eclipse dir, go into the Plugins dir and look for any “wtp” or “sse” plugins, see any?

    #252676 Reply

    everbright
    Member

    I’m using a clean install of Eclipse 3.2. Couldn’t find any wtp or sse, or maybe I’m not recognizing them. Any ideas what they are called?

    #252684 Reply

    Riyad Kalla
    Member

    com.ibm.wtp I think or org.eclipse.webtools

    #252687 Reply

    everbright
    Member

    Hi,

    I’ve checked both the Eclipse and MyEclipse plugin folder. Can’t find the packages you mentioned 🙁

    #252688 Reply

    Riyad Kalla
    Member

    Strange, the only thing I can ask you to do is wait for our M2 release here in about a month or so. We are completely replacing the designer, so troubleshooting the old designer framework now would serve no purpose.

    Sorry for the inconvenience. If you had the time you might try a Eclipse 3.2RC5 and MyEclipse 5.0M1 install to new dirs and see if that worked (that’s what I have running here).

    #252689 Reply

    everbright
    Member

    ok. That makes sense. Will wait for MyEclipse 5.0M2 then! Thanks for the attention on this issue!

    #252713 Reply

    everbright
    Member

    just to let you guys know. I’ve tried using Eclipse 3.2RC5 (was previously on RC2) and it works great!

    #252723 Reply

    Riyad Kalla
    Member

    Glad it’s working, it’s amazing how little tiny API changes can cause something to break or work. I’ll let the guys know.

Viewing 11 posts - 1 through 11 (of 11 total)
Reply To: Error with JSP Designer on MyEcplise 5.0M1

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