Ibm mobilefirst 部署Helloworld应用程序时出现IBM MobileFirst服务器错误

Ibm mobilefirst 部署Helloworld应用程序时出现IBM MobileFirst服务器错误,ibm-mobilefirst,mobilefirst-server,mobilefirst-studio,Ibm Mobilefirst,Mobilefirst Server,Mobilefirst Studio,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 c

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]

尝试硬编码WL服务器的ip地址,而不是本地主机 单击eclipse底部的服务器选项卡>双击worklight Development server>主机名:选择Lan Ip地址而不是本地主机,并保存更改Ctrl+s。
-重新部署。

工作区文件夹的名称不应包含空格。 例如:创建一个类似文件夹的工作区


工作空间会给您这个错误。

实际上,问题在于MobileFirst项目类路径将Java jre 1.8替换为jre 1.7,服务器开始正常工作。我认为JDK1.8导致了HTTP500的问题——内部服务器错误。如果你觉得这个东西有用,请投赞成票。

删除工作区中的MobileFirstServerConfig文件。并重新启动eclipse。 那么错误就不会出现了。
它对我有效

请尝试从eclipse工作区中删除mobilefirstServerConfig文件夹,然后重试。可以更具体地说,因为我找不到任何名为mobilefirstServerConfig的文件夹,我只能在我的工作区中找到MobileFirst Development Server文件夹。在您的文件系统中,导航到您用于eclipse的工作区文件夹。未能将应用程序“HelloWorldApp”部署到MobileFirst服务器:请验证MobileFirst服务器是否已启动且可访问。MobileFirst控制台出错。请删除工作区并重试?嗨,Sam,您的解决方案对我不起作用,因为我认为服务器配置有问题,但按照您所说的做将有助于某些无法使用默认本地主机在浏览器上查看应用程序的用户。我希望你记得我,伙计:嗨,罗希特:我当然记得,谢谢你在我的答案上提供的意见。我会记下你的回答作为参考将“localhost”更改为“127.0.0.1”,错误消失。