首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > JAVA > Eclipse开发 >

用MYEclipse 为什么建立不了JSP文件 报错了 看下解决方法

2012-01-02 
用MYEclipse 为什么建立不了JSP文件 报错了 看下我建立Servlet是可以但是我建立JSP就出现下面错误出现这Un

用MYEclipse 为什么建立不了JSP文件 报错了 看下
我建立Servlet是可以   但是我建立JSP     就出现下面错误  
出现这Unable   to   create   this   part   due   to   an   internal   error.   Reason   for   the   failure:   Widget   is   disposed
按   dateil出现如下     信息
org.eclipse.swt.SWTException:   Widget   is   disposed
at   org.eclipse.swt.SWT.error(SWT.java:3374)
at   org.eclipse.swt.SWT.error(SWT.java:3297)
at   org.eclipse.swt.SWT.error(SWT.java:3268)
at   org.eclipse.swt.widgets.Widget.error(Widget.java:435)
at   org.eclipse.swt.widgets.Widget.checkWidget(Widget.java:330)
at   org.eclipse.swt.widgets.Control.setLayoutData(Control.java:2386)
at   com.genuitec.eclipse.webdesigner3.design.DesignEditSystem.createDesignView(DesignEditSystem.java:73)
at   com.genuitec.eclipse.webdesigner3.WebDesigner3.createDesignView(WebDesigner3.java:74)
at   com.genuitec.eclipse.webdesigner3.editors.WebDesignerMultiPageEditor.createDesignView(WebDesignerMultiPageEditor.java:399)
at   com.genuitec.eclipse.webdesigner3.editors.WebDesignerMultiPageEditor.createDesignPage(WebDesignerMultiPageEditor.java:371)
at   com.genuitec.eclipse.webdesigner3.editors.WebDesignerMultiPageEditor.createPages(WebDesignerMultiPageEditor.java:293)
at   org.eclipse.ui.part.MultiPageEditorPart.createPartControl(MultiPageEditorPart.java:276)
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:822)
at   org.eclipse.ui.internal.EditorManager.openEditorFromDescriptor(EditorManager.java:721)
at   org.eclipse.ui.internal.EditorManager.openEditor(EditorManager.java:682)
at   org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2593)
at   org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2528)
at   org.eclipse.ui.internal.WorkbenchPage.access$10(WorkbenchPage.java:2520)
at   org.eclipse.ui.internal.WorkbenchPage$9.run(WorkbenchPage.java:2505)
at   org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67)
at   org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2500)


at   org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2477)
at   com.genuitec.eclipse.core.util.EditorUtil.openEditor(EditorUtil.java:84)
at   com.genuitec.eclipse.core.util.EditorUtil.openEditor(EditorUtil.java:77)
at   com.aston.WizardPage$1.run(WizardPage.java:247)
at   org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
at   org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:123)
at   org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3325)
at   org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2971)
at   org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1930)
at   org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1894)
at   org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:422)
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)


[解决办法]
你到window-preference-general-editors-file associations
下看看你的*.html默认打开方式是什么。
你改成myeclipse html editor就能打开了。
[解决办法]
如果版本是MyEclipse5.0M2,可能是个bug
换个新版本5.0.1GA 之类的

热点排行