7 Replies Latest reply on Feb 4, 2010 5:28 AM by Pedro Gomes

    Error in Eclipse when adding server, saving properties, and publishing

    Pedro Gomes Newbie

      I'm writing where because of a bug that happened some hours ago, and it doesn't let me work.

       

      When I was trying to solve a bug when deploying my EAR project, I went to the Java EE module dependencies and added a OSGi bundle as a lib.

      Then the hell started, the auto publish throw a error, I don't know which, and since then every time I add a element to the server, when I add a server to the server tab, and try to save the server properties, I get a popup Title: "Server Error" and Message: "org/jboss/tools/jmx/core/tree/ErrorRoot"

      I have replaced Jboss but the problem continues.

       

      In truth, when trying to save the properties, the error is a little different,because it can be seen in the error log.

       

      java.lang.NoClassDefFoundError: org/jboss/tools/jmx/core/tree/ErrorRoot
           at org.jboss.ide.eclipse.as.core.extensions.jmx.JBossServerConnectionProvider.createConnection(JBossServerConnectionProvider.java:68)
           at org.jboss.ide.eclipse.as.core.extensions.jmx.JBossServerConnectionProvider.serverChanged(JBossServerConnectionProvider.java:86)
           at org.eclipse.wst.server.core.internal.ResourceManager.fireServerEvent(ResourceManager.java:494)
           at org.eclipse.wst.server.core.internal.ResourceManager.addServer(ResourceManager.java:631)
           at org.eclipse.wst.server.core.internal.Server.saveToMetadata(Server.java:394)
           at org.eclipse.wst.server.core.internal.Base.doSave(Base.java:264)
           at org.eclipse.wst.server.core.internal.Server.doSave(Server.java:383)
           at org.eclipse.wst.server.core.internal.ServerWorkingCopy.save(ServerWorkingCopy.java:421)
           at org.eclipse.wst.server.ui.internal.editor.ServerEditor.doSave(ServerEditor.java:363)
           at org.eclipse.ui.internal.SaveableHelper$2.run(SaveableHelper.java:151)
           at org.eclipse.ui.internal.SaveableHelper$5.run(SaveableHelper.java:274)
           at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:464)
           at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:372)
           at org.eclipse.jface.window.ApplicationWindow$1.run(ApplicationWindow.java:759)
           at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
           at org.eclipse.jface.window.ApplicationWindow.run(ApplicationWindow.java:756)
           at org.eclipse.ui.internal.WorkbenchWindow.run(WorkbenchWindow.java:2579)
           at org.eclipse.ui.internal.SaveableHelper.runProgressMonitorOperation(SaveableHelper.java:282)
           at org.eclipse.ui.internal.SaveableHelper.runProgressMonitorOperation(SaveableHelper.java:261)
           at org.eclipse.ui.internal.SaveableHelper.savePart(SaveableHelper.java:156)
           at org.eclipse.ui.internal.EditorManager.savePart(EditorManager.java:1357)
           at org.eclipse.ui.internal.WorkbenchPage.savePart(WorkbenchPage.java:3328)
           at org.eclipse.ui.internal.WorkbenchPage.saveEditor(WorkbenchPage.java:3341)
           at org.eclipse.ui.internal.SaveAction.run(SaveAction.java:76)
           at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
           at org.eclipse.jface.commands.ActionHandler.execute(ActionHandler.java:119)
           at org.eclipse.core.commands.Command.executeWithChecks(Command.java:476)
           at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:508)
           at org.eclipse.ui.internal.handlers.HandlerService.executeCommand(HandlerService.java:169)
           at org.eclipse.ui.internal.keys.WorkbenchKeyboard.executeCommand(WorkbenchKeyboard.java:470)
           at org.eclipse.ui.internal.keys.WorkbenchKeyboard.press(WorkbenchKeyboard.java:824)
           at org.eclipse.ui.internal.keys.WorkbenchKeyboard.processKeyEvent(WorkbenchKeyboard.java:880)
           at org.eclipse.ui.internal.keys.WorkbenchKeyboard.filterKeySequenceBindings(WorkbenchKeyboard.java:569)
           at org.eclipse.ui.internal.keys.WorkbenchKeyboard.access$3(WorkbenchKeyboard.java:510)
           at org.eclipse.ui.internal.keys.WorkbenchKeyboard$KeyDownFilter.handleEvent(WorkbenchKeyboard.java:125)
           at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
           at org.eclipse.swt.widgets.Display.filterEvent(Display.java:965)
           at org.eclipse.swt.widgets.Display.sendEvent(Display.java:3542)
           at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1250)
           at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1273)
           at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1258)
           at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1287)
           at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1283)
           at org.eclipse.swt.widgets.Canvas.sendKeyEvent(Canvas.java:433)
           at org.eclipse.swt.widgets.Control.doCommandBySelector(Control.java:906)
           at org.eclipse.swt.widgets.Display.windowProc(Display.java:4741)
           at org.eclipse.swt.internal.cocoa.OS.objc_msgSend(Native Method)
           at org.eclipse.swt.internal.cocoa.NSResponder.interpretKeyEvents(NSResponder.java:56)
           at org.eclipse.swt.widgets.Composite.keyDown(Composite.java:516)
           at org.eclipse.swt.widgets.Display.windowProc(Display.java:4655)
           at org.eclipse.swt.internal.cocoa.OS.objc_msgSendSuper(Native Method)
           at org.eclipse.swt.widgets.Widget.callSuper(Widget.java:202)
           at org.eclipse.swt.widgets.Widget.windowSendEvent(Widget.java:1753)
           at org.eclipse.swt.widgets.Shell.windowSendEvent(Shell.java:1825)
           at org.eclipse.swt.widgets.Display.windowProc(Display.java:4713)
           at org.eclipse.swt.internal.cocoa.OS.objc_msgSendSuper(Native Method)
           at org.eclipse.swt.widgets.Display.applicationSendEvent(Display.java:4285)
           at org.eclipse.swt.widgets.Display.applicationProc(Display.java:4352)
           at org.eclipse.swt.internal.cocoa.OS.objc_msgSend(Native Method)
           at org.eclipse.swt.internal.cocoa.NSApplication.sendEvent(NSApplication.java:101)
           at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3097)
           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)
      Caused by: java.lang.ClassNotFoundException: org.jboss.tools.jmx.core.tree.ErrorRoot
           at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:494)
           at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:410)
           at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:398)
           at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:105)
           at java.lang.ClassLoader.loadClass(ClassLoader.java:254)
           at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:399)
           ... 81 more
      
      

       

        The session info:

       

      eclipse.buildId=M20090917-0800
      java.version=1.6.0_15
      java.vendor=Apple Inc.
      BootLoader constants: OS=macosx, ARCH=x86_64, WS=cocoa, NL=en_US
      Framework arguments:  -product org.eclipse.epp.package.jee.product -keyring /Users/pedro/.eclipse_keyring -showlocation
      Command-line arguments:  -os macosx -ws cocoa -arch x86_64 -product org.eclipse.epp.package.jee.product -keyring /Users/pedro/.eclipse_keyring -showlocation
      

       

      JbossGA 5.1

      JBossAS Tools Version: 2.1.0.v200912250601M-H198-CR1

       

       

      Because I'am in a hurry I will reinstall everything, because I want to change the deploy folder, and I can't.

      But if someone can bring some light to this subject, I didn't find any info about this exception in the web.

       

      Thanks