Unable to deploy HelloWorld application on MobileFirst Development Server

I am having problems creating / running the HelloWorld application from the tutorial of the first hybrid application .

When I try to launch the default HelloWorld application on the MobileFirst development server, the server starts and seems to stop again (no errors) before the MobileFirst Application Builder has the ability to shut down. After that, the application will not be able to deploy with the following error message:

[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 

I am trying to use Eclipse Kepler SR2 (64-bit) on Windows 7 (64-bit). I am using the Java 7 JDK downloaded from Oracle and IBM MobileFirst Platform Studio (6.3.0) installed from the Eclipse Marketplace.

To avoid a long / complicated path name, I installed eclipse in C: \ eclipsekepler and use the workspace directory C: \ workspace. To ensure that Eclipse uses the correct JDK, I add the following to my eclipse.ini file (before vmargs):

 -vm C:\Program Files\Java\jdk1.7.0_75\bin\javaw.exe 

In the server configuration, I set the host name to my device IP address, 9.175.194.35 (as reported when starting ipconfig).

Here are the full console logs:

 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. 

I can successfully perform equivalent actions using CLI MobileFirst with

 cd C:\workspace\HelloWorldProject mfp start mfp build mfp deploy mfp console 

I tried reinstalling the JDK using Eclipse Luna and Kepler, reinstalling MobileFirst studio and starting with various fresh workspaces, but nothing seems to matter. Does anyone know what could be wrong? Thanks.

Update

To try to force MobileFirst to use the local host, instead of resolving my computer's IP address to the host name on the corporate network, I disconnected the network, which really caused the server to start at 127.0.0.1, and the application will try to deploy to 127.0.0.1. However, despite this, he still failed.

I noticed that the Mobile Application Builder task seems to progress to 20%, and then sits there until the server stops, and then the task completes, but will not be deployed because the server has stopped.

Could this be a performance issue? I am trying this on a Thinkpad T420 with 4 GB of RAM.

Update 01/27/2015

One of my colleagues installed on their ThinkPad Oracle JDK7, Eclipse Luna and IBM MobileFirst Platform Studio (6.3.0), which is identical to the hardware / corporate software / network settings for mine, and it went fine. This indicates that I do not have corporate software or corporate network settings, and indicates a configuration problem or some other software. I tried again to delete everything, including the JDK / JRE, clear the registry using CCleaner, reinstall the JDK / JRE, reinstall eclipse + mobilefirst with the default settings. Still no successful deployment.

+6
source share
3 answers

I tried on two different Linux Ubuntu 14.04, 32-bit and 64-bit and 1 Windows 7 64-bit. This is what I learned and experienced when getting up on MobileFirst Development Server:

  • Ubuntu 64-bit
    • Eclipse Luna and latest error JDK1.8x ..
    • Eclipse Kepler SR2 + JDK1.7.0_15 .. works
  • Ubuntu 32-bit
    • Eclipse Luna and the latest JDK1.8.0_25 .. works
  • Windows 7 64:
    • Eclipse Kepler SR2 + JDK1.7.0_15 .. works

If you use JDK1.7.0_75 and an error, I would give him a chance to use an older version of JDK. Hope this helps.

+2
source

This worked for me:

  • Right-click MobileFirst Development Server
  • Click Properties
  • Go to project links
  • Select a HelloWorld Project
  • Build and Deploy Again
0
source

This is clearly a problem with eclipse and jdk versions. I also had such difficulties. MFP has such dependencies and why your mfp-cli is working fine. Try using eclipse juno or luna with jdk 1.7. It should work.

0
source

Source: https://habr.com/ru/post/981456/


All Articles