【问题标题】:IBM Worklight not working in Eclipse 3.7.2IBM Worklight 在 Eclipse 3.7.2 中不工作
【发布时间】:2012-07-13 05:06:18
【问题描述】:

我正在尝试评估 IBM Worklight,但是 Eclipse 3.7.2 没有显示任何应该由 IBM Worklight 插件提供的功能。

我从 Eclipse Marketplace 安装了 Worklight,并验证了插件实际上列在“关于 Eclipse SDK”下。我的eclipse.ini如下:

-startup
../../../plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
--launcher.library
../../../plugins/org.eclipse.equinox.launcher.cocoa.macosx_1.1.101.v20120109-1504
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
512M
--launcher.defaultAction
openFile
-vmargs
-Xms100m
-Xmx1024m
-XX:MaxPermSize=512m   
-Djava.util.Arrays.useLegacyMergeSort=true
-Dcom.ibm.ws.management.event.max_polling_interval=1000
-Xdock:icon=../Resources/Eclipse.icns
-XstartOnFirstThread
-Dorg.eclipse.swt.internal.carbon.smallFonts
-Dosgi.requiredJavaVersion=1.6

我还尝试将 -clean 附加到上述列表以及重新启动 Eclipse、更改工作区等。但是我仍然完全无法在我的工具栏中看到 Worklight 或创建 Worklight 项目。

有人知道我做错了什么吗?

更新:为新工作区添加了工作区日志。

!会话 2012-07-13 14:44:27.572 ----------------------------------------------------------- eclipse.buildId =M20120208-0800 java.version=1.6.0_33 java.vendor=Apple Inc. BootLoader 常量:OS=macosx, ARCH=x86, WS=cocoa, NL=en_US 框架参数:-keyring /Users/ben/.eclipse_keyring -showlocation 命令行参数:-os macosx -ws cocoa -arch x86 -data /Users/ben/Projects/eclipse/worklight -keyring /Users/ben/.eclipse_keyring -showlocation

!ENTRY org.eclipse.core.net 1 0 2012-07-13 14:44:31.545 !MESSAGE 系统属性 http.nonProxyHosts 已设置为 local|.local|169.254/16|.169.254/16 来自外部来源。这 值将被首选项中的值覆盖

!ENTRY org.eclipse.ui 4 0 2012-07-13 14:47:09.927 !MESSAGE 未处理 事件循环异常!堆栈 0 org.eclipse.swt.SWTException:设备是 位于 org.eclipse.swt.SWT.error(SWT.java:4282) 处 org.eclipse.swt.SWT.error(SWT.java:4197) 在 org.eclipse.swt.SWT.error(SWT.java:4168) 在 org.eclipse.swt.widgets.Display.error(Display.java:1065) 在 org.eclipse.swt.widgets.Display.checkDevice(Display.java:619) 在 org.eclipse.swt.widgets.Display.getShells(Display.java:1704) 在 org.eclipse.swt.custom.BusyIndi​​cator.showWhile(BusyIndi​​cator.java:72) 在 org.eclipse.equinox.internal.p2.ui.sdk.PreloadingRepositoryHandler.execute(PreloadingRepositoryHandler.java:66) 在 org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:293) 在 org.eclipse.core.commands.Command.executeWithChecks(Command.java:476) 在 org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:508) 在 org.eclipse.ui.internal.handlers.HandlerService.executeCommand(HandlerService.java:169) 在 org.eclipse.ui.internal.handlers.SlaveHandlerService.executeCommand(SlaveHandlerService.java:241) 在 org.eclipse.ui.menus.CommandContributionItem.handleWidgetSelection(CommandContributionItem.java:829) 在 org.eclipse.ui.menus.CommandContributionItem.access$19(CommandContributionItem.java:815) 在 org.eclipse.ui.menus.CommandContributionItem$5.handleEvent(CommandContributionItem.java:805) 在 org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) 在 org.eclipse.swt.widgets.Display.sendEvent(Display.java:4128) 在 org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1457) 在 org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1480) 在 org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1465) 在 org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1270) 在 org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3974) 在 org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3613) 在 org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2701) 在 org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2665) 在 org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2499) 在 org.eclipse.ui.internal.Workbench$7.run(Workbench.java:679) 在 org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) 在 org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:668) 在 org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149) 在 org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:123) 在 org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196) 在 org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110) 在 org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79) 在 org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344) 在 org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179) 在 sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 在 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 在 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 在 java.lang.reflect.Method.invoke(Method.java:597) 在 org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622) 在 org.eclipse.equinox.launcher.Main.basicRun(Main.java:577) 在 org.eclipse.equinox.launcher.Main.run(Main.java:1410) !SESSION 2012-07-13 14:47:14.118 ----------------------------------------------------------- eclipse.buildId =M20120208-0800 java.version=1.6.0_33 java.vendor=Apple Inc. BootLoader 常量:OS=macosx, ARCH=x86, WS=cocoa, NL=en_US 框架参数:-keyring /Users/ben/.eclipse_keyring -showlocation 命令行参数:-os macosx -ws cocoa -arch x86 -keyring /Users/ben/.eclipse_keyring -showlocation

!ENTRY org.eclipse.core.net 1 0 2012-07-13 14:47:19.044 !MESSAGE 系统属性 http.nonProxyHosts 已设置为 local|.local|169.254/16|.169.254/16 来自外部来源。这 将使用首选项中的值覆盖值 !会话 2012-07-13 14:48:38.988 ----------------------------------------------------------- eclipse.buildId =M20120208-0800 java.version=1.6.0_33 java.vendor=Apple Inc. BootLoader 常量:OS=macosx, ARCH=x86, WS=cocoa, NL=en_US 框架参数:-keyring /Users/ben/.eclipse_keyring -showlocation 命令行参数:-os macosx -ws cocoa -arch x86 -keyring /Users/ben/.eclipse_keyring -showlocation

!ENTRY org.eclipse.core.net 1 0 2012-07-13 14:48:42.586 !MESSAGE 系统属性 http.nonProxyHosts 已设置为 local|.local|169.254/16|.169.254/16 来自外部来源。这 将使用首选项中的值覆盖值 !会话 2012-07-13 14:49:29.076 ----------------------------------------------------------- eclipse.buildId =M20120208-0800 java.version=1.6.0_33 java.vendor=Apple Inc. BootLoader 常量:OS=macosx, ARCH=x86, WS=cocoa, NL=en_US 框架参数:-keyring /Users/ben/.eclipse_keyring -showlocation 命令行参数:-os macosx -ws cocoa -arch x86 -keyring /Users/ben/.eclipse_keyring -showlocation

!ENTRY org.eclipse.core.net 1 0 2012-07-13 14:49:32.650 !MESSAGE 系统属性 http.nonProxyHosts 已设置为 local|.local|169.254/16|.169.254/16 来自外部来源。这 将使用首选项中的值覆盖值 !会话 2012-07-13 14:49:47.302 ----------------------------------------------------------- eclipse.buildId =M20120208-0800 java.version=1.6.0_33 java.vendor=Apple Inc. BootLoader 常量:OS=macosx, ARCH=x86, WS=cocoa, NL=en_US 框架参数:-showsplash org.eclipse.platform --launcher.XXMaxPermSize 256m --launcher.defaultAction openFile -keyring /Users/ben/.eclipse_keyring -showlocation 命令行参数:-os macosx -ws cocoa -arch x86 -showsplash org.eclipse.platform --launcher.XXMaxPermSize 256m --launcher.defaultAction openFile -keyring /Users/ben/.eclipse_keyring -showlocation

!ENTRY org.eclipse.core.net 1 0 2012-07-13 14:49:50.918 !MESSAGE 系统属性 http.nonProxyHosts 已设置为 local|.local|169.254/16|.169.254/16 来自外部来源。这 将使用首选项中的值覆盖值 !会话 2012-07-13 14:52:52.544 ----------------------------------------------------------- eclipse.buildId =M20120208-0800 java.version=1.6.0_33 java.vendor=Apple Inc. BootLoader 常量:OS=macosx, ARCH=x86, WS=cocoa, NL=en_US 框架参数:-keyring /Users/ben/.eclipse_keyring -showlocation 命令行参数:-os macosx -ws cocoa -arch x86 -keyring /Users/ben/.eclipse_keyring -showlocation

!ENTRY org.eclipse.core.net 1 0 2012-07-13 14:52:55.949 !MESSAGE 系统属性 http.nonProxyHosts 已设置为 local|.local|169.254/16|.169.254/16 来自外部来源。这 值将被首选项中的值覆盖

更新 2:根据我能找到的少量信息,这可能是由于与最新的 Android 开发工具 (ADT 20) 不兼容造成的。考虑到 Worklight 旨在与 ADT 结合使用,这有点令人担忧。

【问题讨论】:

  • 错误日志视图(或您工作区的 .metadata/.log 文件)中是否显示任何可能表明存在问题的内容?
  • @nitind - 我在上面附上了一个日志。 org.eclipse.swt.SWTException 听起来不太好,但似乎并不相关。

标签: eclipse ibm-mobilefirst


【解决方案1】:

Eclipse Classic (3.7.2) 和 Worklight 和 ADT 20 存在问题。ADT 20 是在当前版本的 Worklight 发布之后发布的。

作为一种解决方法,您可以为 Java EE 开发人员安装 Eclipse IDE(Eclipse Indigo 或 Helios,但不是最新版本的 Juno,它也是在当前版本的 Worklight 发布之后发布的)。

【讨论】:

  • 实际上,我正在使用 Eclipse Juno 和 Worklight,它们一起工作得很好。在安装 ADT 20 后安装 Worklight 时会出现该错误。因此,安装干净的 Eclipse,安装 Worklight,然后安装 ADT 20。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2013-07-31
相关资源
最近更新 更多