2

我尝试从开发人员站点(创建第一个混合应用程序)中遵循一个基本示例,但是我无法成功启动开发服务器。

我正在将 Eclipse Luna 与 MobileFirst Studio 插件 7.0 用于 Eclipse、Java 1.7 并在 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 论坛上搜索。

4

1 回答 1

1

Java 错误是已知的,并且在 Java 和 Mac 之间。它与 MobileFirst Platform 无关。

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

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

要尝试的事情:

  • 将 Java 7 更新到Java 7 (不是 8)的最新公共版本,然后重试
  • 杀死 Java 进程,然后重试
  • 确保您没有多个 IP 地址(通过 ifconfig);在 Eclipse > 服务器视图中绑定地址 > 双击“MobileFirst Development Server”并更改主机值
于 2015-04-17T18:44:27.540 回答