IBM Worklight studio 6.0开发服务器无法启动

时间:2013-11-12 10:11:49

标签: websphere ibm-mobilefirst worklight-studio worklight-server

从eclipse(甚至从windows powershell)启动Worklight服务器时,会立即抛出以下异常(来自日志):

CWWKE0005E: The runtime environment could not be launched.
CWWKE0018E: An exception occurred while launching the runtime environment: java.lang.IllegalArgumentException: WebSphere-DefaultExtension-windowsnt(unknown)
com.ibm.ws.kernel.boot.LaunchException: Caught unexpected exception java.lang.IllegalArgumentException: WebSphere-DefaultExtension-windowsnt(unknown)
    at com.ibm.ws.kernel.boot.internal.KernelBootstrap.rethrowException(KernelBootstrap.java:412)
    at com.ibm.ws.kernel.boot.internal.KernelBootstrap.go(KernelBootstrap.java:179)
    at com.ibm.ws.kernel.boot.Launcher.createPlatform(Launcher.java:131)
    at com.ibm.ws.kernel.boot.Launcher.main(Launcher.java:55)
    at com.ibm.ws.kernel.boot.cmdline.EnvCheck.main(EnvCheck.java:52)
Caused by: java.lang.IllegalArgumentException: WebSphere-DefaultExtension-windowsnt(unknown)
    at java.util.jar.Attributes$Name.<init>(Unknown Source)
    at java.util.jar.Attributes.getValue(Unknown Source)
    at com.ibm.ws.kernel.boot.internal.BootstrapManifest.getOSExtensionDefinition(BootstrapManifest.java:146)
    at com.ibm.ws.kernel.boot.internal.KernelBootstrap.go(KernelBootstrap.java:122)
    ... 3 more

start.log文件报告这些命令以启动服务器:

arg0=worklightServer
arg1=--status:start
exit=22

               Command:  "java" -XX:MaxPermSize=512m  "-javaagent:C:\Users\xxx\Downloads\eclipse-jee-juno-SR2-win32-x86_64\eclipse\plugins\com.worklight.studio.plugin_6.0.0.20130926-1933\liberty\wlp\bin\tools\ws-javaagent.jar" -jar "C:\Users\xxx\Downloads\eclipse-jee-juno-SR2-win32-x86_64\eclipse\plugins\com.worklight.studio.plugin_6.0.0.20130926-1933\liberty\wlp\bin\tools\ws-server.jar" --batch-file start worklightServer
             Java home:  C:\Program Files\Java\jre7
          Install root:  C:/Users/xxx/Downloads/eclipse-jee-juno-SR2-win32-x86_64/eclipse/plugins/com.worklight.studio.plugin_6.0.0.20130926-1933/liberty/wlp/
      System libraries:  C:/Users/xxx/Downloads/eclipse-jee-juno-SR2-win32-x86_64/eclipse/plugins/com.worklight.studio.plugin_6.0.0.20130926-1933/liberty/wlp/lib/
             User root:  C:/Users/xxx/Downloads/eclipse-jee-juno-SR2-win32-x86_64/eclipse/plugins/com.worklight.studio.plugin_6.0.0.20130926-1933/liberty/wlp/usr/
         Server config:  C:/Users/xxx/Downloads/eclipse-jee-juno-SR2-win32-x86_64/eclipse/plugins/com.worklight.studio.plugin_6.0.0.20130926-1933/liberty/wlp/usr/servers/worklightServer/
         Server output:  C:/Users/xxx/Downloads/eclipse-jee-juno-SR2-win32-x86_64/eclipse/plugins/com.worklight.studio.plugin_6.0.0.20130926-1933/liberty/wlp/usr/servers/worklightServer/

我运行Windows 8 64位,使用eclipse juno 64位和JRE7,并使用直接从IBM提供的安装文件(包括fixpack和临时修复)。我已经在日食市场尝试了这些软件包,但无济于事。它引发了同样的异常。

根据这个question的答案,问题应该使用64位版本的eclipse来解决,但我已经这样做了。无奈之下我已经开始搞乱插件/ WKL_STDIO_PLUGIN / liberty / wlp /中的server.bat脚本,但我没有看到任何错误。

任何人都可以帮我吗? 谢谢!

1 个答案:

答案 0 :(得分:3)

这是由Java(无法识别Windows 8)和Liberty(未正确处理未知Windows os.name)的组合导致的缺陷,因此我建议与IBM一起打开PMR。要解决此问题,您可以在jvm.options中指定-Dos.name=Windows 8

修改:此修复程序包含在APAR PI26048

的一部分中