2014-02-20 26 views
0

我运行了/opt/IBM/Worklight/shortcuts/configuration-tool.sh无法从putty中配置--tool.sh

我在日志中得到了以下错误。

!MESSAGE Application error 
    !STACK 1 
    org.eclipse.swt.SWTError: No more handles [gtk_init_check() failed] 
at org.eclipse.swt.SWT.error(SWT.java:4387) 
at org.eclipse.swt.widgets.Display.createDisplay(Display.java:914) 
at org.eclipse.swt.widgets.Display.create(Display.java:900) 
at org.eclipse.swt.graphics.Device.<init>(Device.java:156) 
at org.eclipse.swt.widgets.Display.<init>(Display.java:498) 
at org.eclipse.swt.widgets.Display.<init>(Display.java:489) 
at org.eclipse.ui.internal.Workbench.createDisplay(Workbench.java:669) 
at org.eclipse.ui.PlatformUI.createDisplay(PlatformUI.java:161) 
at com.ibm.worklight.config.ui.Application.start(Application.java:31) 
at   org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196) 
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:353) 
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180) 
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) 
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 
at java.lang.reflect.Method.invoke(Method.java:616) 
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629) 
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584) 
at org.eclipse.equinox.launcher.Main.run(Main.java:1438) 
at org.eclipse.equinox.launcher.Main.main(Main.java:1414) 

请帮助解决这个问题。

回答

3

Worklight Server配置工具,如文档here所述,是一个图形工具,即具有图形用户界面的程序。无法通过诸如没有X选项的PuTTY,没有X选项,'屏幕'或类似的'ssh'等终端模拟器运行这些程序。

你有两个选择:

  • 通过支持图形用户界面的网络连接使用工作灯服务器配置工具。这种网络协议的例子是VNC,具有X选项的PuTTY,具有X选项的ssh,RDP或带有'export DISPLAY'的ssh/telnet(后者由于安全原因而被弃用)。对于带X选项的PuTTY,您可以通过网络搜索“putty x11”找到一些配置配方,甚至可以找到video
  • 使用samples based approach设置Worklight Server,而不使用Worklight Server配置工具。这个路径可能有点乏味,但你只需要一个文本模式连接来完成它。