Worklight Development Server无法启动 [英] Worklight Development Server does not start

查看:137
本文介绍了Worklight Development Server无法启动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在developerWorks上关注Worklight的入门部分。我已将Worklight Studio 6.1 Consumer Edition(而不是开发版)安装到Eclipse 4.3.2中。我做了一个应用程序的基本创建,并试图运行它。但是,为我自动创建的Worklight Development Server将无法启动。我删除了应用程序以查看是否可以启动它但它仍然失败。错误消息是:

I am trying to follow the Getting Started section for Worklight on developerWorks. I have installed Worklight Studio 6.1 Consumer Edition (instead of Development Edition) into Eclipse 4.3.2. I did the basic creation of an app and tried to run it. However, the Worklight Development Server that was automatically created for me will not start. I deleted the app to see if I could get it to start but it still fails. The error message is:

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

这与我创建的应用程序获得的错误相同。我在服务器配置中看不到它是否应该处理WAR文件。事实上,它很乐意允许我通过服务器配置编辑器添加基于WAR文件的Web应用程序。 Worklight Development Server的整个控制台是:

That was the same error I was getting for the app I created. I can see no place in the server configuration to tell it whether or not it should handle WAR files. In fact, it will gladly allow me to add a Web Application based on a WAR file via the Server Configuration editor. The entire console for the Worklight Development Server is:

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_51-b13 (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 _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.848 seconds.

如何告诉开发服务器处理WAR文件?或者是其他事情发生在这里?

How do I tell the development server to handle WAR files? Or is something else going on here?

推荐答案

事实证明问题是我用来运行Eclipse的Java JDK而不是开普勒的版本。我使用IBM Java 7 JDK来运行Eclipse,但是已经配置了Oracle Java 7 JDK来运行Eclipse中的任何应用程序。我被告知要使用Oracle JDK,但认为这仅用于运行应用程序。一旦我使用Oracle JDK切换到运行Eclipse,我的应用程序和服务器就启动了。因此,只要您使用Oracle JDK,Worklight Studio v6.1似乎可以与Eclipse Kepler SR2一起使用。

It turns out the problem was the Java JDK I was using to run Eclipse and not the version of Kepler. I was using the IBM Java 7 JDK to run Eclipse but had configured the Oracle Java 7 JDK for running any apps in Eclipse. I had been told to use the Oracle JDK but thought that was only for running the apps. Once I switched to running Eclipse using the Oracle JDK, my apps and the server started. So, Worklight Studio v6.1 seems to work fine with Eclipse Kepler SR2 as long as you use the Oracle JDK.

这篇关于Worklight Development Server无法启动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆