无法将测试项目部署到MobileFirst服务器

时间:2015-04-17 18:33:24

标签: ibm-mobilefirst mobilefirst-server mobilefirst-studio

我尝试从开发者网站(Creating First Hybrid Application)开始遵循一个基本示例,但是我无法成功启动开发服务器。

我正在使用Eclipse Luna和Eclipse,Java 1.7的MobileFirst Studio插件7.0并在Mac OS 10.9.5上运行

当我启动Worklight服务器时,它开始加载,但是20%(或多或少)进程停止移动,最终来自eclipse的MobileFirst控制台显示错误:

[2015-04-17 13:18:44] Starting build process: application 'Test', all environments 
[2015-04-17 13:18:51] Application 'Test' with all environments build finished.
[2015-04-17 13:18:51] Deploying application 'Test' with all environments to MobileFirst Server... 
[2015-04-17 13:20:28] Failed to deploy application 'Test' to MobileFirst Server: : Socket operation timed out before it could be completed 

服务器的控制台输出如下:

objc[60261]: Class JavaLaunchHelper is implemented in both /Library/Java/JavaVirtualMachines/jdk1.7.0_71.jdk/Contents/Home/jre/bin/java and /Library/Java/JavaVirtualMachines/jdk1.7.0_71.jdk/Contents/Home/jre/lib/libinstrument.dylib. One of the two will be used. Which one is undefined.
Listening for transport dt_socket at address: 10777
Launching worklight (WebSphere Application Server 8.5.5.4/wlp-1.0.7.cl50420141121-1414) on Java HotSpot(TM) 64-Bit Server VM, version 1.7.0_71-b14 (en_US)
[AUDIT   ] CWWKE0001I: The server worklight has been launched.
[AUDIT   ] CWWKZ0058I: Monitoring dropins for applications. 
[WARNING ] SRVE9967W: The manifest class path xml-apis.jar can not be found in jar file wsjar:file:/Users/jorgemorales/Developement/mobilefirstWorkspace/MobileFirstServerConfig/servers/worklight/apps/analytics-service.war!/WEB-INF/lib/serializer-2.7.2.jar or its parent.
[WARNING ] SRVE9967W: The manifest class path xercesImpl.jar can not be found in jar file wsjar:file:/Users/jorgemorales/Developement/mobilefirstWorkspace/MobileFirstServerConfig/servers/worklight/apps/analytics-service.war!/WEB-INF/lib/xalan-2.7.2.jar or its parent.
[WARNING ] SRVE9967W: The manifest class path xml-apis.jar can not be found in jar file wsjar:file:/Users/jorgemorales/Developement/mobilefirstWorkspace/MobileFirstServerConfig/servers/worklight/apps/analytics-service.war!/WEB-INF/lib/xalan-2.7.2.jar or its parent.
[WARNING ] SRVE9967W: The manifest class path serializer.jar can not be found in jar file wsjar:file:/Users/jorgemorales/Developement/mobilefirstWorkspace/MobileFirstServerConfig/servers/worklight/apps/analytics-service.war!/WEB-INF/lib/xalan-2.7.2.jar or its parent.
[WARNING ] SRVE9967W: The manifest class path jaxb-api.jar can not be found in jar file wsjar:file:/Users/jorgemorales/Developement/mobilefirstWorkspace/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:/Users/jorgemorales/Developement/mobilefirstWorkspace/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:/Users/jorgemorales/Developement/mobilefirstWorkspace/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:/Users/jorgemorales/Developement/mobilefirstWorkspace/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 jaxb-api.jar can not be found in jar file wsjar:file:/Users/jorgemorales/Developement/mobilefirstWorkspace/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:/Users/jorgemorales/Developement/mobilefirstWorkspace/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:/Users/jorgemorales/Developement/mobilefirstWorkspace/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:/Users/jorgemorales/Developement/mobilefirstWorkspace/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://192.168.2.1:10080/_MobileBrowserSimulator/
[AUDIT   ] CWWKT0016I: Web application available (default_host): http://192.168.2.1:10080/analytics/
[AUDIT   ] CWWKT0016I: Web application available (default_host): http://192.168.2.1:10080/IBMJMXConnectorREST/
[AUDIT   ] CWWKT0016I: Web application available (default_host): http://192.168.2.1:10080/Test/
[AUDIT   ] CWWKZ0001I: Application _MobileBrowserSimulator started in 1.047 seconds.
[WARNING ] SRVE9967W: The manifest class path xml-apis.jar can not be found in jar file wsjar:file:/Users/jorgemorales/Developement/mobilefirstWorkspace/MobileFirstServerConfig/servers/worklight/apps/analytics-service.war!/WEB-INF/lib/serializer-2.7.2.jar or its parent.
[WARNING ] SRVE9967W: The manifest class path xercesImpl.jar can not be found in jar file wsjar:file:/Users/jorgemorales/Developement/mobilefirstWorkspace/MobileFirstServerConfig/servers/worklight/apps/analytics-service.war!/WEB-INF/lib/xalan-2.7.2.jar or its parent.
[WARNING ] SRVE9967W: The manifest class path xml-apis.jar can not be found in jar file wsjar:file:/Users/jorgemorales/Developement/mobilefirstWorkspace/MobileFirstServerConfig/servers/worklight/apps/analytics-service.war!/WEB-INF/lib/xalan-2.7.2.jar or its parent.
[WARNING ] SRVE9967W: The manifest class path serializer.jar can not be found in jar file wsjar:file:/Users/jorgemorales/Developement/mobilefirstWorkspace/MobileFirstServerConfig/servers/worklight/apps/analytics-service.war!/WEB-INF/lib/xalan-2.7.2.jar or its parent.
[AUDIT   ] CWWKT0016I: Web application available (default_host): http://192.168.2.1:10080/analytics-service/
[AUDIT   ] CWWKZ0001I: Application AnalyticsUI started in 5.124 seconds.
[AUDIT   ] CWWKT0016I: Web application available (default_host): http://192.168.2.1:10080/worklightconsole/
[AUDIT   ] CWWKZ0001I: Application WorklightConsole started in 6.248 seconds.
[AUDIT   ] CWWKZ0001I: Application Test started in 6.466 seconds.
[AUDIT   ] CWWKT0016I: Web application available (default_host): http://192.168.2.1:10080/worklightadmin/
[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.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.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.MatrixParam 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.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.
[AUDIT   ] CWWKZ0001I: Application AnalyticsServices started in 13.256 seconds.
[AUDIT   ] CWWKZ0001I: Application WorklightServices started in 14.172 seconds.
[AUDIT   ] CWWKF0011I: The server worklight is ready to run a smarter planet.
[ERROR   ] FWLSE3000E: A server error was detected.
Socket operation timed out before it could be completed

作为一个注释,我已经能够通过使用不同的JVM(1.6)解决有关JavaLauncherHelper的警告,但主要错误仍然存​​在,所以我回到了原始的JVM(1.7)。

这发生在任何人身上吗? 有谁知道我可以在哪里获得有关此错误的更多信息?我一直在这个网站和IBM论坛上搜索。

1 个答案:

答案 0 :(得分:1)

Java错误是已知的,介于Java和Mac之间。它与MobileFirst Platform无关。

真正的问题是套接字超时:

  

套接字操作在完成之前超时

要尝试的事情:

  • 将Java 7更新为 Java 7 (不是8)的最新公共版本,然后重试
  • 杀死Java进程然后再试一次
  • 确保您没有多个IP地址(通过ifconfig);绑定Eclipse中的地址>服务器视图>双击“MobileFirst Development Server”并更改主机值
相关问题