Worklight Development服务器不会启动

时间:2014-06-06 20:47:39

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

我正在尝试使用IBM Worklight开始开发并遵循以下步骤: http://public.dhe.ibm.com/software/mobile-solutions/worklight/docs/v610/01_01_Setting_up_your_Worklight_development_environment.pdf

我已下载以下内容:

  1. Eclipse Java EE 4.3.1 win 64-bit(“Kepler”SR1)
  2. IBM Worklight 6.1(来自“帮助> Eclipse Marketplace”)
  3. 我正在使用Java JDK 7 win 64-bit

    我还将文件编码设置为UTF-8

    当我尝试启动Worklight Development Server时,收到以下错误:

    [ERROR   ] CWWKZ0005E: The application Demo1 cannot start because the server is not configured to handle applications of type war.
    [ERROR   ] CWWKZ0005E: The application _MobileBrowserSimulator cannot start because the server is not configured to handle applications of type war.
    

    以下是整个控制台日志:

    Listening for transport dt_socket at address: 10777
    Launching worklight (WebSphere Application Server 8.5.5.0/wlp-1.0.3.20130524-0951) on Java HotSpot(TM) 64-Bit Server VM, version 1.7.0_60-b19 (en_US)
    [AUDIT   ] CWWKE0001I: The server worklight has been launched.
    [AUDIT   ] CWWKZ0058I: Monitoring dropins for applications. 
    [AUDIT   ] CWWKF0011I: The server worklight is ready to run a smarter planet.
    [ERROR   ] CWWKZ0005E: The application Demo1 cannot start because the server is not configured to handle applications of type war.
    [ERROR   ] CWWKZ0005E: The application _MobileBrowserSimulator cannot start because the server is not configured to handle applications of type war.
    [AUDIT   ] CWWKE0036I: The server worklight stopped after 1 minutes, 0.170 seconds.
    

    这里已经解决了同样的问题(Worklight Development Server does not start),但我尝试过该用户使用Java JDK 7的解决方案,但仍然看到了问题。任何帮助将不胜感激。

2 个答案:

答案 0 :(得分:0)

您的第二个错误可能是由于您的计算机有两个不同的IP而引起的。所以如果你正在使用" localhost"在您的服务器中,Worklight Studio将尝试猜测您的IP并且无法获取错误的IP。我建议您转到Servers View,双击Worklight Development Server,在服务器编辑器中,更改主机名" localhost"到你想要使用的特定IP。

答案 1 :(得分:0)

事实证明我的Eclipse Workspace中的MobileBrowserSimulator应用程序存在问题(可能是文件已损坏)。重新创建Eclipse工作区后,Worklight Server就能够启动。