0

MobileFirst 控制台日志:

[2014-12-17 11:16:49]             Environment 'iPhone' was created. 
[2014-12-17 11:17:00]             Starting build process: application 'HelloWorldApp', environment 'iphone' 
[2014-12-17 11:17:13] FWLPL0010W: The current server configuration is set to "localhost". Therefore the MobileFirst build uses the primary IP address of this 
computer (192.168.137.1) instead. It is recommended to set the server configuration to use the fully qualified hostname or IP address 
of this computer. To configure the setting, in the "Servers" view double-click the MobileFirst Development Server entry and edit the 
"Host name" field. 
[2014-12-17 11:17:25]             Application 'HelloWorldApp' with environment 'iphone' build finished.
[2014-12-17 11:19:38]             Starting build process: application 'HelloWorldApp', all environments 
[2014-12-17 11:20:03]             Application 'HelloWorldApp' with all environments build finished.
[2014-12-17 11:20:03]             Deploying application 'HelloWorldApp' with all environments to MobileFirst Server... 
[2014-12-17 11:20:07]             Failed to deploy application 'HelloWorldApp' to MobileFirst Server: : HTTP 500 - Internal Server Errorr  

MobileFirst 开发服务器错误日志:

[ERROR   ] F:\Worklight%206.3\Workspace\rough\MobileFirstServerConfig\servers\worklight\workarea\org.eclipse.osgi\bundles\73\data\cache\com.ibm.ws.app.manager_108\.cache\WEB-INF\lib\ibm_web20_wink_no_abdera_no_jackson-1.1.0.0-20110422.jar (The system cannot find the path specified)
F:\Worklight%206.3\Workspace\rough\MobileFirstServerConfig\servers\worklight\workarea\org.eclipse.osgi\bundles\73\data\cache\com.ibm.ws.app.manager_108\.cache\WEB-INF\lib\ibm_web20_wink_no_abdera_no_jackson-1.1.0.0-20110422.jar (The system cannot find the path specified)
[ERROR   ] F:\Worklight%206.3\Workspace\rough\MobileFirstServerConfig\servers\worklight\workarea\org.eclipse.osgi\bundles\73\data\cache\com.ibm.ws.app.manager_108\.cache\WEB-INF\lib\ibm_web20_wink_no_abdera_no_jackson-1.1.0.0-20110422.jar (The system cannot find the path specified)
F:\Worklight%206.3\Workspace\rough\MobileFirstServerConfig\servers\worklight\workarea\org.eclipse.osgi\bundles\73\data\cache\com.ibm.ws.app.manager_108\.cache\WEB-INF\lib\ibm_web20_wink_no_abdera_no_jackson-1.1.0.0-20110422.jar (The system cannot find the path specified)
[ERROR   ] Uncaught.init.exception.thrown.by.servlet 
                                                                                                               ManagementServlet
                                                                                                               WorklightServices
                                                                                                               java.lang.NoClassDefFoundError: Could not initialize class org.apache.wink.common.internal.i18n.Messages
    at org.apache.wink.server.internal.DeploymentConfiguration.initAlternateShortcutMap(DeploymentConfiguration.java:386)
    at org.apache.wink.server.internal.DeploymentConfiguration.init(DeploymentConfiguration.java:167)
    at org.apache.wink.server.internal.servlet.RestServlet.getDeploymentConfiguration(RestServlet.java:202)
    at org.apache.wink.server.internal.servlet.RestServlet.createRequestProcessor(RestServlet.java:138)
    at org.apache.wink.server.internal.servlet.RestServlet.init(RestServlet.java:103)
    at javax.servlet.GenericServlet.init(GenericServlet.java:161)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.init(ServletWrapper.java:325)
    at [internal classes]
    at com.ibm.worklight.admin.common.filter.HSTSFilter.doFilter(HSTSFilter.java:110)
    at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:194)
    at [internal classes]

在此处输入图像描述

4

4 回答 4

3

实际上问题在于 MobileFirst 项目类路径只需将 Java jre 1.8 替换为 jre 1.7 并且服务器开始正常工作。我认为 JDK 1.8 导致了“HTTP 500 - 内部服务器错误”的问题。如果你觉得这个东西有用,请投票。

于 2015-03-24T22:38:14.430 回答
3

删除位于您的工作区中的MobileFirstServerConfig文件。然后重新启动您的 Eclipse。然后错误不会出现。这个对我有用

于 2015-11-03T09:58:13.210 回答
1

Workspace 文件夹的名称不应包含空格。
例如:创建一个文件夹,如 "WorkSpace" 。

“工作空间”会给你这个错误。

于 2014-12-18T10:16:31.693 回答
1

尝试硬编码WL服务器的IP地址而不是“localhost”单击eclipse底部的服务器选项卡>双击“worklight Development server”>主机名:“you Lan Ip address”而不是“localhost”和保存更改“Ctrl+s”。- 重新部署。

于 2014-12-17T19:56:47.073 回答