Ibm mobilefirst 无法将HelloWorld应用程序部署到MobileFirst开发服务器

Ibm mobilefirst 无法将HelloWorld应用程序部署到MobileFirst开发服务器,ibm-mobilefirst,mobilefirst-studio,Ibm Mobilefirst,Mobilefirst Studio,我在构建/运行教程中的HelloWorld应用程序时遇到一些问题 当我尝试在MobileFirst开发服务器上运行默认的HelloWorld应用程序时,服务器会在MobileFirst应用程序生成器有机会完成运行之前启动并再次停止(没有错误)。这将导致应用程序无法部署,并显示以下错误消息: [2015-01-23 14:03:12] Failed to deploy application 'HelloWorld' to MobileFirst Server: org.a

我在构建/运行教程中的HelloWorld应用程序时遇到一些问题

当我尝试在MobileFirst开发服务器上运行默认的HelloWorld应用程序时,服务器会在MobileFirst应用程序生成器有机会完成运行之前启动并再次停止(没有错误)。这将导致应用程序无法部署,并显示以下错误消息:

[2015-01-23 14:03:12]             Failed to deploy application 'HelloWorld' to MobileFirst Server: org.apache.http.conn.HttpHostConnectException: Connect to 9.175.194.35:10080 
[/9.175.194.35] failed: Connection refused: connect 
我正在Windows7(64位)上使用EclipseKeplerSR2(64位)进行尝试。我使用的是从Oracle下载的Java7JDK和从Eclipse市场安装的IBMMobileFirstPlatform Studio(6.3.0)

为了避免长/复杂的路径名,我已将eclipse安装到C:\eclipsekepler,并使用工作区目录C:\workspace。为了确保Eclipse使用正确的JDK,我将以下内容放在Eclipse.ini文件中(在vmargs之前):

在服务器配置中,我将主机名设置为我的机器的IP地址9.175.194.35(如运行ipconfig所报告的)

以下是完整的控制台日志:

MobileFirst Console output:

[2015-01-23 14:01:25]             Starting build process: application 'HelloWorld', all environments 
[2015-01-23 14:02:53]             Application 'HelloWorld' with all environments build finished.
[2015-01-23 14:02:53]             Deploying application 'HelloWorld' with all environments to MobileFirst Server... 
[2015-01-23 14:03:12]             Failed to deploy application 'HelloWorld' to MobileFirst Server: org.apache.http.conn.HttpHostConnectException: Connect to 9.175.194.35:10080 
[/9.175.194.35] failed: Connection refused: connect 

MobileFirst Development Server console output (corporate network info redacted):

Listening for transport dt_socket at address: 10777
Launching worklight (WebSphere Application Server 8.5.5.3/wlp-1.0.6.cl50320140731-0257) on Java HotSpot(TM) 64-Bit Server VM, version 1.7.0_75-b13 (en_US)
[AUDIT   ] CWWKE0001I: The server worklight has been launched.
[AUDIT   ] CWWKZ0058I: Monitoring dropins for applications. 
[WARNING ] SRVE9967W: The manifest class path jaxb-api.jar can not be found in jar file wsjar:file:/C:/workspace/MobileFirstServerConfig/servers/worklight/apps/worklight-management-ui.war!/WEB-INF/lib/jaxb-impl-2.1.12.osgi.jar or its parent.
[WARNING ] SRVE9967W: The manifest class path activation.jar can not be found in jar file wsjar:file:/C:/workspace/MobileFirstServerConfig/servers/worklight/apps/worklight-management-ui.war!/WEB-INF/lib/jaxb-impl-2.1.12.osgi.jar or its parent.
[WARNING ] SRVE9967W: The manifest class path jsr173_1.0_api.jar can not be found in jar file wsjar:file:/C:/workspace/MobileFirstServerConfig/servers/worklight/apps/worklight-management-ui.war!/WEB-INF/lib/jaxb-impl-2.1.12.osgi.jar or its parent.
[WARNING ] SRVE9967W: The manifest class path jaxb1-impl.jar can not be found in jar file wsjar:file:/C:/workspace/MobileFirstServerConfig/servers/worklight/apps/worklight-management-ui.war!/WEB-INF/lib/jaxb-impl-2.1.12.osgi.jar or its parent.
[AUDIT   ] CWWKT0016I: Web application available (default_host): http://<machine-name>.<connection-specific-DNS-suffix>:10080/HelloWorldProject/
[AUDIT   ] CWWKT0016I: Web application available (default_host): http://<machine-name>.<connection-specific-DNS-suffix>:10080/_MobileBrowserSimulator/
[AUDIT   ] CWWKT0016I: Web application available (default_host): http://<machine-name>.<connection-specific-DNS-suffix>:10080/IBMJMXConnectorREST/
[AUDIT   ] CWWKT0016I: Web application available (default_host): http://<machine-name>.<connection-specific-DNS-suffix>:10080/worklight-analytics/
[AUDIT   ] CWWKZ0001I: Application _MobileBrowserSimulator started in 11.679 seconds.
[WARNING ] SRVE9967W: The manifest class path jaxb-api.jar can not be found in jar file wsjar:file:/C:/workspace/MobileFirstServerConfig/servers/worklight/apps/worklight-management-ui.war!/WEB-INF/lib/jaxb-impl-2.1.12.osgi.jar or its parent.
[WARNING ] SRVE9967W: The manifest class path activation.jar can not be found in jar file wsjar:file:/C:/workspace/MobileFirstServerConfig/servers/worklight/apps/worklight-management-ui.war!/WEB-INF/lib/jaxb-impl-2.1.12.osgi.jar or its parent.
[WARNING ] SRVE9967W: The manifest class path jsr173_1.0_api.jar can not be found in jar file wsjar:file:/C:/workspace/MobileFirstServerConfig/servers/worklight/apps/worklight-management-ui.war!/WEB-INF/lib/jaxb-impl-2.1.12.osgi.jar or its parent.
[WARNING ] SRVE9967W: The manifest class path jaxb1-impl.jar can not be found in jar file wsjar:file:/C:/workspace/MobileFirstServerConfig/servers/worklight/apps/worklight-management-ui.war!/WEB-INF/lib/jaxb-impl-2.1.12.osgi.jar or its parent.
[AUDIT   ] CWWKZ0001I: Application WorklightAnalytics started in 19.007 seconds.
[AUDIT   ] CWWKZ0001I: Application HelloWorldProject started in 21.164 seconds.
[AUDIT   ] CWWKZ0022W: Application WorklightServices has not started in 30.003 seconds.
[AUDIT   ] CWWKT0016I: Web application available (default_host): http://<machine-name>.<connection-specific-DNS-suffix>:10080/worklightconsole/
[AUDIT   ] CWWKZ0022W: Application WorklightConsole has not started in 30.015 seconds.
[AUDIT   ] CWWKZ0001I: Application WorklightConsole started in 30.083 seconds.
[AUDIT   ] CWWKZ0022W: Application WorklightAnalyticsServices has not started in 30.006 seconds.
[AUDIT   ] CWWKF0015I: The server has the following interim fixes installed: PI23168.
[AUDIT   ] CWWKF0011I: The server worklight is ready to run a smarter planet.
[AUDIT   ] CWWKT0016I: Web application available (default_host): http://<machine-name>.<connection-specific-DNS-suffix>:10080/worklightadmin/
[WARNING ] CWNEN0070W: The javax.ws.rs.QueryParam annotation class will not be recognized because it was loaded from the null location rather than from a product class loader.
[WARNING ] CWNEN0070W: The javax.ws.rs.PathParam annotation class will not be recognized because it was loaded from the null location rather than from a product class loader.
[WARNING ] CWNEN0070W: The javax.ws.rs.CookieParam annotation class will not be recognized because it was loaded from the null location rather than from a product class loader.
[WARNING ] CWNEN0070W: The javax.ws.rs.HeaderParam annotation class will not be recognized because it was loaded from the null location rather than from a product class loader.
[WARNING ] CWNEN0070W: The javax.ws.rs.core.Context annotation class will not be recognized because it was loaded from the null location rather than from a product class loader.
[WARNING ] CWNEN0070W: The javax.ws.rs.MatrixParam annotation class will not be recognized because it was loaded from the null location rather than from a product class loader.
我尝试过重新安装JDK,使用EclipseLuna和开普勒,重新安装MobileFirstStudio,并从各种新的工作区开始,但似乎没有什么不同。有人知道会出什么问题吗?谢谢

更新

为了尝试强制MobileFirst使用localhost,而不是将我的机器的IP地址解析为corportate网络上的主机名,我断开了网络连接,这确实导致服务器从127.0.0.1启动,应用程序尝试部署到127.0.0.1。然而,尽管如此,它仍然失败了

我确实注意到,Mobile Application Builder任务似乎进展到20%,然后一直坐在那里,直到服务器自行停止,然后任务完成,但由于服务器自行停止而无法部署

这可能是性能问题吗?我正在使用4GB内存的Thinkpad T420上尝试此功能

更新日期:2015年1月27日


我的一位同事在他的ThinkPad上安装了OracleJDK7、EclipseLuna和IBMMobileFirstPlatform Studio(6.3.0),这在硬件/公司软件/网络设置方面与我的相同,并且运行良好。这使我远离公司软件或公司网络设置,并使我面临配置问题或某些其他软件干扰。我再次尝试卸载所有东西,包括JDK/JRE,使用CCleaner清理注册表,重新安装JDK/JRE,使用默认设置重新安装eclipse+mobilefirst。仍然没有成功部署。

我尝试了两种不同的Linux Ubuntu 14.04、32位和64位,以及一种Windows 7 64位。以下是我在安装MobileFirst Development Server时发现的情况和经验:

  • Ubuntu 64位
    • Eclipse Luna和最新的JDK1.8x。。错误
    • 日食开普勒SR2+JDK1.7.0_15。。工作
  • 32位Ubuntu
    • Eclipse Luna和最新的JDK1.8.0_25。。工作
  • Windows 7 64:
    • 日食开普勒SR2+JDK1.7.0_15。。工作
如果使用JDK1.7.0_75并出错,我会尝试使用较旧版本的JDK。希望能有所帮助。

这对我很有用:

  • 右键单击“MobileFirst Development Server”
  • 单击属性
  • 转到项目参考
  • 选择HelloWorld项目
  • 再次构建和部署

  • 这显然是eclipse和jdk版本的问题。我也经历过这样的困难。MFP确实有这样的依赖关系,这就是为什么您的MFPCLI工作正常的原因。尝试在JDK1.7中使用EclipseJuno或luna。它应该可以工作。

    我意识到这不太可能,但是,服务器是否真的在监听10080有任何疑问?你能证明一下吗?远程登录吗?防火墙会干扰吗?我知道很多人都这样做过,所以我想知道您的环境中是否有什么特别的东西。@djna-好问题,我刚刚使用资源监视器检查了一下,确认java.exe侦听端口10777、10443和10080。我的笔记本电脑正在运行Symantec Endpoint Encryption,但我在10443和10080上添加了TCP流量例外。似乎没有什么不同。我在家里的个人windows电脑上遵循了完全相同的安装过程,没有任何问题。正如你所说,我怀疑这是我所处的环境中的某种东西,我只是不知道是什么。我在工作场所也遇到过类似的问题,但在我的个人笔记本电脑上,这是不可能的,但既然你尝试了这么多东西。。。我总是通过指定
    JAVA\u HOME
    PATH=%JAVA\u HOME%\bin;%来告诉eclipse我想要使用的JDKPATH%
    在命令提示符下启动eclipse。可能是eclipse运行在正确的VM上,但它的一些子进程运行在不同的版本中吗?@Xv.-谢谢你的建议,我已经检查过JAVA_主页并在我的路径中添加了内容。无论如何,我都试图通过命令行启动eclipse,但没有明显的区别。在这一点上,我已经放弃让eclipse studio在这台笔记本电脑上工作。我的解决方法是在Eclipse中开发,并使用MFP构建/部署应用程序和运行控制台。为此,我将尝试安装较旧版本的1.7 JDK,看看这是否有什么不同。只是使用与您相同的版本JDK1.7.015尝试了这一点,但仍然没有成功。感谢您的建议。简短回答:Worklight/MobileFirst平台不支持Java 8。仅支持Java6和Java7。
    MobileFirst Console output:
    
    [2015-01-23 14:01:25]             Starting build process: application 'HelloWorld', all environments 
    [2015-01-23 14:02:53]             Application 'HelloWorld' with all environments build finished.
    [2015-01-23 14:02:53]             Deploying application 'HelloWorld' with all environments to MobileFirst Server... 
    [2015-01-23 14:03:12]             Failed to deploy application 'HelloWorld' to MobileFirst Server: org.apache.http.conn.HttpHostConnectException: Connect to 9.175.194.35:10080 
    [/9.175.194.35] failed: Connection refused: connect 
    
    MobileFirst Development Server console output (corporate network info redacted):
    
    Listening for transport dt_socket at address: 10777
    Launching worklight (WebSphere Application Server 8.5.5.3/wlp-1.0.6.cl50320140731-0257) on Java HotSpot(TM) 64-Bit Server VM, version 1.7.0_75-b13 (en_US)
    [AUDIT   ] CWWKE0001I: The server worklight has been launched.
    [AUDIT   ] CWWKZ0058I: Monitoring dropins for applications. 
    [WARNING ] SRVE9967W: The manifest class path jaxb-api.jar can not be found in jar file wsjar:file:/C:/workspace/MobileFirstServerConfig/servers/worklight/apps/worklight-management-ui.war!/WEB-INF/lib/jaxb-impl-2.1.12.osgi.jar or its parent.
    [WARNING ] SRVE9967W: The manifest class path activation.jar can not be found in jar file wsjar:file:/C:/workspace/MobileFirstServerConfig/servers/worklight/apps/worklight-management-ui.war!/WEB-INF/lib/jaxb-impl-2.1.12.osgi.jar or its parent.
    [WARNING ] SRVE9967W: The manifest class path jsr173_1.0_api.jar can not be found in jar file wsjar:file:/C:/workspace/MobileFirstServerConfig/servers/worklight/apps/worklight-management-ui.war!/WEB-INF/lib/jaxb-impl-2.1.12.osgi.jar or its parent.
    [WARNING ] SRVE9967W: The manifest class path jaxb1-impl.jar can not be found in jar file wsjar:file:/C:/workspace/MobileFirstServerConfig/servers/worklight/apps/worklight-management-ui.war!/WEB-INF/lib/jaxb-impl-2.1.12.osgi.jar or its parent.
    [AUDIT   ] CWWKT0016I: Web application available (default_host): http://<machine-name>.<connection-specific-DNS-suffix>:10080/HelloWorldProject/
    [AUDIT   ] CWWKT0016I: Web application available (default_host): http://<machine-name>.<connection-specific-DNS-suffix>:10080/_MobileBrowserSimulator/
    [AUDIT   ] CWWKT0016I: Web application available (default_host): http://<machine-name>.<connection-specific-DNS-suffix>:10080/IBMJMXConnectorREST/
    [AUDIT   ] CWWKT0016I: Web application available (default_host): http://<machine-name>.<connection-specific-DNS-suffix>:10080/worklight-analytics/
    [AUDIT   ] CWWKZ0001I: Application _MobileBrowserSimulator started in 11.679 seconds.
    [WARNING ] SRVE9967W: The manifest class path jaxb-api.jar can not be found in jar file wsjar:file:/C:/workspace/MobileFirstServerConfig/servers/worklight/apps/worklight-management-ui.war!/WEB-INF/lib/jaxb-impl-2.1.12.osgi.jar or its parent.
    [WARNING ] SRVE9967W: The manifest class path activation.jar can not be found in jar file wsjar:file:/C:/workspace/MobileFirstServerConfig/servers/worklight/apps/worklight-management-ui.war!/WEB-INF/lib/jaxb-impl-2.1.12.osgi.jar or its parent.
    [WARNING ] SRVE9967W: The manifest class path jsr173_1.0_api.jar can not be found in jar file wsjar:file:/C:/workspace/MobileFirstServerConfig/servers/worklight/apps/worklight-management-ui.war!/WEB-INF/lib/jaxb-impl-2.1.12.osgi.jar or its parent.
    [WARNING ] SRVE9967W: The manifest class path jaxb1-impl.jar can not be found in jar file wsjar:file:/C:/workspace/MobileFirstServerConfig/servers/worklight/apps/worklight-management-ui.war!/WEB-INF/lib/jaxb-impl-2.1.12.osgi.jar or its parent.
    [AUDIT   ] CWWKZ0001I: Application WorklightAnalytics started in 19.007 seconds.
    [AUDIT   ] CWWKZ0001I: Application HelloWorldProject started in 21.164 seconds.
    [AUDIT   ] CWWKZ0022W: Application WorklightServices has not started in 30.003 seconds.
    [AUDIT   ] CWWKT0016I: Web application available (default_host): http://<machine-name>.<connection-specific-DNS-suffix>:10080/worklightconsole/
    [AUDIT   ] CWWKZ0022W: Application WorklightConsole has not started in 30.015 seconds.
    [AUDIT   ] CWWKZ0001I: Application WorklightConsole started in 30.083 seconds.
    [AUDIT   ] CWWKZ0022W: Application WorklightAnalyticsServices has not started in 30.006 seconds.
    [AUDIT   ] CWWKF0015I: The server has the following interim fixes installed: PI23168.
    [AUDIT   ] CWWKF0011I: The server worklight is ready to run a smarter planet.
    [AUDIT   ] CWWKT0016I: Web application available (default_host): http://<machine-name>.<connection-specific-DNS-suffix>:10080/worklightadmin/
    [WARNING ] CWNEN0070W: The javax.ws.rs.QueryParam annotation class will not be recognized because it was loaded from the null location rather than from a product class loader.
    [WARNING ] CWNEN0070W: The javax.ws.rs.PathParam annotation class will not be recognized because it was loaded from the null location rather than from a product class loader.
    [WARNING ] CWNEN0070W: The javax.ws.rs.CookieParam annotation class will not be recognized because it was loaded from the null location rather than from a product class loader.
    [WARNING ] CWNEN0070W: The javax.ws.rs.HeaderParam annotation class will not be recognized because it was loaded from the null location rather than from a product class loader.
    [WARNING ] CWNEN0070W: The javax.ws.rs.core.Context annotation class will not be recognized because it was loaded from the null location rather than from a product class loader.
    [WARNING ] CWNEN0070W: The javax.ws.rs.MatrixParam annotation class will not be recognized because it was loaded from the null location rather than from a product class loader.
    
    cd C:\workspace\HelloWorldProject
    mfp start
    mfp build
    mfp deploy
    mfp console