【问题标题】:Grails: GGTS not running on Amazon AWS EC2 anyone else successful?Grails:GGTS 没有在 Amazon AWS EC2 上运行,还有其他人成功吗?
【发布时间】:2014-07-28 22:54:46
【问题描述】:

我很好奇是否有人成功地尝试在 Amazon AWS EC2 实例上运行 Groovy Grails 工具套件,并将其显示导出到您的 Windows 机器中。如果是这样,我想知道 EC2 上使用了哪种版本的 linux。我在 Amazon Linux 上并没有取得太大的成功,但还没有尝试过他们的 Ubuntu 实例。我一直在安装 GGTS 并导出显示,但是当我启动 GGTS 时,我收到有关缺少库的日志错误。这很可能是因为我没有使用 yum 来安装它,所以我可能缺少依赖项,但我没有选择它不作为 yum 包提供。以下是我尝试启动 GGTS 时的日志文件错误:

!SESSION 2014-06-08 03:08:04.873 -----------------------------------------------
eclipse.buildId=3.5.1.201405030657-RELEASE-e43
java.version=1.7.0_55
java.vendor=Oracle Corporation
Framework arguments:  -product org.springsource.ggts.ide
Command-line arguments:  -os linux -ws gtk -arch x86_64 -product org.springsourc
e.ggts.ide

!ENTRY org.eclipse.osgi 4 0 2014-06-08 03:08:12.116
!MESSAGE Application error
!STACK 1
java.lang.UnsatisfiedLinkError: Could not load SWT library. Reasons:
    /home/ec2-user/ggts_sh/ggts-3.5.1.RELEASE/configuration/org.eclipse.osgi
/bundles/704/1/.cp/libswt-pi-gtk-4335.so: libgtk-x11-2.0.so.0: cannot open share
d object file: No such file or directory
     no swt-pi-gtk in java.library.path
    /home/ec2-user/.swt/lib/linux/x86_64/libswt-pi-gtk-4335.so: libgtk-x11-2
.0.so.0: cannot open shared object file: No such file or directory
    Can't load library: /home/ec2-user/.swt/lib/linux/x86_64/libswt-pi-gtk.s
o

    at org.eclipse.swt.internal.Library.loadLibrary(Library.java:331)
    at org.eclipse.swt.internal.Library.loadLibrary(Library.java:240)
    at org.eclipse.swt.internal.gtk.OS.<clinit>(OS.java:45)
    at org.eclipse.swt.internal.Converter.wcsToMbcs(Converter.java:63)
    at org.eclipse.swt.internal.Converter.wcsToMbcs(Converter.java:54)
    at org.eclipse.swt.widgets.Display.<clinit>(Display.java:133)
    at org.eclipse.ui.internal.Workbench.createDisplay(Workbench.java:679)
    at org.eclipse.ui.PlatformUI.createDisplay(PlatformUI.java:162)
    at org.eclipse.ui.internal.ide.application.IDEApplication.createDisplay(
IDEApplication.java:154)
       at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEAppli
cation.java:96)
    at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandl
e.java:196)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runAppli
cation(EclipseAppLauncher.java:110)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(Ec
lipseAppLauncher.java:79)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.ja
va:354)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.ja
va:181)
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:636)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:591)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1450)
    at org.eclipse.equinox.launcher.Main.main(Main.java:1426)

【问题讨论】:

    标签: grails amazon-web-services amazon-ec2


    【解决方案1】:

    这里的问题类似于:facing trouble launching spoon.sh on amazon ec2 linux

    您缺少以下库:libswt-gtk-3-jni libswt-gtk-3-java。要么您必须重新编译它们(以及所有传递依赖项,如 GTK),要么使用另一个图像(如 Ubuntu),您可以简单地从中执行 apt-get install libswt-gtk-3-jni libswt-gtk-3-java。

    【讨论】:

      【解决方案2】:

      改为使用 Ec2 Ubuntu 运行 GGTS。所有需要的包都在那里,没有依赖问题。我已经成功地让 GGTS 在 Ec2 Ubuntu 中运行,并将显示导出到我的 Windows 环境中。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 2011-10-18
        • 1970-01-01
        • 1970-01-01
        • 2013-11-28
        • 2011-11-04
        • 2011-03-28
        • 1970-01-01
        相关资源
        最近更新 更多