Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
515 views
in Technique[技术] by (71.8m points)

ibm mobilefirst - Worklight Development Server does not start

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.

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.

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

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...