从 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 直接提供的安装文件(包括修订包和临时修订)。我已经在 Eclipse 市场中尝试过这些软件包,但无济于事。它抛出相同的异常。
根据这个问题的答案,应该使用 64 位版本的 eclipse 来解决问题,但我已经在这样做了。绝望中,我已经开始弄乱 plugins/WKL_STDIO_PLUGIN/liberty/wlp/ 中的 server.bat 脚本,但我没有发现任何问题。
谁能帮我这个?谢谢!