2010-01-18 57 views
5

當我在eclipse的「服務器」選項卡上雙擊我的tomcat服務器時,我進入propeties頁面。此頁面只有一個選項卡「概覽」,並具有紅色方塊作爲其圖標。當我點擊「概覽」選項卡上的「打開啓動配置」鏈接,我得到兩個彈出消息:發生Eclipse WTP - 「沒有爲啓動配置類型org.eclipse.jst.server.tomcat.core.launchConfigurationType定義選項卡組...」?

異常創建啓動配置選項卡 原因: 的啓動配置類型org.eclipse定義沒有標籤組.jst.server.tomcat.core.launchConfigurationType

和:爲啓動配置類型的Apache Tomcat

定義

沒有標籤

Eclipse的 「錯誤日誌」 選項卡:

eclipse.buildId=M20090917-0800 
java.version=1.6.0_17 
java.vendor=Sun Microsystems Inc. 
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_GB 
Framework arguments: -product org.eclipse.epp.package.java.product 
Command-line arguments: -os win32 -ws win32 -arch x86 -product org.eclipse.epp.package.java.product -data C:\devsrc 

Error 
Mon Jan 18 13:38:01 GMT 2010 
Unhandled event loop exception 
java.lang.NullPointerException 
    at org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationManager.filterLaunchDelegates(LaunchConfigurationManager.java:267) 
    at org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationTabGroupViewer.hasMultipleDelegates(LaunchConfigurationTabGroupViewer.java:1138) 
    at org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationTabGroupViewer.hasDuplicateDelegates(LaunchConfigurationTabGroupViewer.java:1121) 
    at org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationTabGroupViewer.getErrorMesssage(LaunchConfigurationTabGroupViewer.java:1163) 
    at org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationsDialog.updateMessage(LaunchConfigurationsDialog.java:1433) 
    at org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationsDialog.refreshStatus(LaunchConfigurationsDialog.java:1159) 
    at org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationTabGroupViewer.refreshStatus(LaunchConfigurationTabGroupViewer.java:989) 
    at org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationTabGroupViewer$8.run(LaunchConfigurationTabGroupViewer.java:692) 
    at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70) 
    at org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationTabGroupViewer.inputChanged(LaunchConfigurationTabGroupViewer.java:697) 
    at org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationTabGroupViewer.setInput0(LaunchConfigurationTabGroupViewer.java:659) 
    at org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationTabGroupViewer.setInput(LaunchConfigurationTabGroupViewer.java:635) 
    at org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationPropertiesDialog.initializeContent(LaunchConfigurationPropertiesDialog.java:126) 
    at org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationsDialog.createContents(LaunchConfigurationsDialog.java:425) 
    at org.eclipse.jface.window.Window.create(Window.java:431) 
    at org.eclipse.jface.dialogs.Dialog.create(Dialog.java:1089) 
    at org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationsDialog.create(LaunchConfigurationsDialog.java:354) 
    at org.eclipse.jface.window.Window.open(Window.java:790) 
    at org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationsDialog.open(LaunchConfigurationsDialog.java:1064) 
    at org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationPropertiesDialog.open(LaunchConfigurationPropertiesDialog.java:227) 
    at org.eclipse.debug.ui.DebugUITools.openLaunchConfigurationPropertiesDialog(DebugUITools.java:448) 
    at org.eclipse.debug.ui.DebugUITools.openLaunchConfigurationPropertiesDialog(DebugUITools.java:425) 
    at org.eclipse.wst.server.ui.internal.editor.OverviewEditorPart$9.linkActivated(OverviewEditorPart.java:578) 
    at org.eclipse.ui.forms.widgets.AbstractHyperlink.handleActivate(AbstractHyperlink.java:233) 
    at org.eclipse.ui.forms.widgets.AbstractHyperlink.handleMouseUp(AbstractHyperlink.java:327) 
    at org.eclipse.ui.forms.widgets.AbstractHyperlink.access$2(AbstractHyperlink.java:311) 
    at org.eclipse.ui.forms.widgets.AbstractHyperlink$4.handleEvent(AbstractHyperlink.java:125) 
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) 
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003) 
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3880) 
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3473) 
    at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2405) 
    at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2369) 
    at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2221) 
    at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:500) 
    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) 
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:493) 
    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149) 
    at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113) 
    at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:194) 
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110) 
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79) 
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:368) 
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179) 
    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:597) 
    at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:559) 
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514) 
    at org.eclipse.equinox.launcher.Main.run(Main.java:1311) 
    at org.eclipse.equinox.launcher.Main.main(Main.java:1287) 

我能做些什麼來得到它的工作?

謝謝...

回答

3

看起來像一個安裝問題。

在乾淨的eclipse上嘗試新的WTP安裝(你可以在任何你想要的地方解壓縮,以免弄亂當前的eclipse安裝)。

WTP download page中所述,您可以使用p2更新過程嘗試他們的update site

如果您剛剛開始使用Eclipse或Eclipse Web Tools,則可能需要先從Galileo update site進行安裝,因爲它擁有開始所需的一切。

此Web Tools Platform更新站點確實假設您已安裝所有的前置請求。

+0

它的工作原理...可能應該試過這個之前問:) – 2010-01-20 11:36:33

相關問題