mobile first platform cli: mfp build... does not create a war file - ibm-mobilefirst

My setup
MobileFrist Platform foundation 6.3.0.00-20141127-1357
WebSphere Application Server 8.5.5.0 (1.0.3.20130510-0831)
on Java HotSpot(TM) 64-Bit Server VM, version 1.7.0_75-b13 (en_US)
hosted on softlayer
Installed using this knowledge center guide for 6.3
after starting the server I can visit my appcenterconsole fine.
I have 2 issues now that I can't seem to understand:
Firstly, tried to build the Myproject.war file using MFP cli to deploy the server configuration tool. However Mfp build produced all the .wlapps but no war file. Can I build a .war file using mfp build?
Secondly, built the .war file using eclipse on my local machine tried to deploy it using the server config tool and I end up with no runtime found like in the post
So I checked my java version that was fine,
checked app center version seems fine,
and checked the entries in server.xml for duplicates of WL Admin services war, only one exists.
server.xml http://pastebin.com/gXqfVknb
logs too long and paste bin counts as en extra link limited to 2 will post link to logs as comment

Use mfp bd (build & deploy) instead of just build.
It will start a test server to generate the WAR file.

Related

Weblogic Adapter in Eclipse Neon missing

I have installed Weblogic 12.2.1 using the following tutorial successfully on my Mac OS Sierra 10.12.6
I am now trying to configure weblogic in my Eclipse Neon. I am not able to see any server adapters that others see in different tutorials.
After some reading online I installed OEP 12.2.1.6 software and restarted eclipse but it of no help
LIST OF SERVERS ADAPTERS I SEE IN TUTORIALS
LIST I AM SEEING AFTER INSTALLING OEPE
I need those adapters to add weblogic to my eclipse.
I had the same question some days ago after checking some online tutorials.
In the later versions of OEPE, you only see a "unified" oracle weblogic server adapter.
Once you have selected this option, you will be able to choose the desired server runtime environment from a list of the runtimes configured on your machine (separate download).
If you see none, then you will have to configure some before trying to add a weblogic server.

IBM MobileFirst runtime environment creation using Linux command shell

Environment :
IBM MobileFirst 7.1
IBM DB2
IBM WAS 8.5.5
OS : RHEL 7.1
I need to upload war project files and create runtime environment on the MF using Linux command shell (Putty) as I can't remote desktop the Linux server (BTW, is there any way to remote? I tried X11 but no success.)
Can you share the steps with commands to achieve this?
IBM MobileFirst Platform provides both a tool and Ant tasks to upload .war files to your production environment.
See the documentation here: http://www.ibm.com/support/knowledgecenter/SSHS8R_7.1.0/com.ibm.worklight.deploy.doc/deploy/c_deploy_wl_project.html

IBM MobileFirst Operations Console does not work with HTTPS

We are unable to use MobileFirst 6.3 Operations Console with HTTPS. I reviewed a couple of links here and installed the last fix pack available for the server side (6.3.0.0-MFPF-Server-IF201504041503.zip).
We are having the same behavior explained in this link:
Unable to use HTTPS for MobileFirst Console 6.3
Need I install another fix or redeploy worklightconsole.war ?
Thanks in advance
You have not installed the last MFP 6.3 ifix as you can see in the messages.log file of your last zipped logs :
[4/15/15 12:00:34:754 ART] 00000012 ht.admin.listeners.WorklightManagementServletContextListener I FWLSE3199I: ========= MobileFirst Administration Services version 6.3.0.00-20141127-1357 started.
When you install a fix you have to do a minimal update of the console applications and the runtime applications with the Server config tools or the installation ant tasks. Otherwise no war files are updated.

IBM MobileFirst Platfform CLI 6.3: Unable to load MobileFirst server and admin Console

We have followed the silent installation procedure on remote server as mentioned in the IBM Developer documentation of 6.3 from the link:
https://www-01.ibm.com/support/knowledgecenter/SSHS8R_6.3.0/com.ibm.worklight.installconfig.doc/dev/t_silent_installation.html
Downloaded the MobileFirst CLI 6.3 file from the link::
http://public.dhe.ibm.com/ibmdl/export/pub/software/products/en/MobileFirstPlatform/mobilefirst_cli_installer_6.3.0.zip
unzipped it to MobileFirst CLI 6.3.0 and copied installer.properties file with fallowing content in that,
LICENSE_ACCEPTED=TRUE
USER_INSTALL_DIR=/opt/ibm/Worklight-CLI
and staying in the same folder, i installed the CLI 3.0 to the specified folder:
./install_linux.bin -i silent -f installer.properties
App has installed to the /opt/ibm/Worklight-CLI directory.
We then created a sample app as per Command Line commands specified in the link:
http://www-01.ibm.com/support/knowledgecenter/SSHS8R_6.3.0/com.ibm.worklight.dev.doc/dev/r_wl_cli_commands_and_their_definitions.html
$ mfp create MyProject
$ cd MyProject
$ mfp build
$ mfp deploy
After app build and deployment, when we tried to check the MobileFirst Console over browser, with link:
http://xxx.xxx.xxx.xxx:10080/worklightconsole
after logging in to admin/admin credentials, page shows, loading the environments, but after waiting for 30 sec or more, it throws error as in the attached image.
But in log file shows some JAR file are missing. And i tried installing fresh copy of MFP 6.3 many times. but all time the same issue.
Please find the attached logs file and screenshot.
I am not able to find out what is the exact problem.
Server error. Contact the server administrator.
Server Configuration:
Ubuntu 14.04.01 LTS
MobileFirst Version : 6.3.0.00.20141127-1401
java version: "1.7.0_65"
java.home = /usr/lib/jvm/java-7-openjdk-amd64/jre
OpenJDK Runtime Environment (IcedTea 2.5.3) (7u71-2.5.3-0ubuntu0.14.04.1)
OpenJDK 64-Bit Server VM (build 24.65-b04, mixed mode)
The Console error Message:
Log file:
[12/11/14 10:27:57:376 IST] 0000002f
m.ibm.ws.container.service.app.deploy.ManifestClassPathUtils W
SRVE9967W: The manifest class path jaxb-api.jar can not be found in
jar file
wsjar:file:/home/administrator/.ibm/mobilefirst/6.3.0/server/wlp/usr/servers/worklight/apps/worklightconsole.war!/WEB-INF/lib/jaxb-impl-2.1.12.osgi.jar
or its parent.
[12/11/14 10:27:57:376 IST] 0000002f
m.ibm.ws.container.service.app.deploy.ManifestClassPathUtils W
SRVE9967W: The manifest class path activation.jar can not be found in
jar file
wsjar:file:/home/administrator/.ibm/mobilefirst/6.3.0/server/wlp/usr/servers/worklight/apps/worklightconsole.war!/WEB-INF/lib/jaxb-impl-2.1.12.osgi.jar
or its parent.
[12/11/14 10:27:57:376 IST] 0000002f
m.ibm.ws.container.service.app.deploy.ManifestClassPathUtils W
SRVE9967W: The manifest class path jsr173_1.0_api.jar can not be found
in jar file
wsjar:file:/home/administrator/.ibm/mobilefirst/6.3.0/server/wlp/usr/servers/worklight/apps/worklightconsole.war!/WEB-INF/lib/jaxb-impl-2.1.12.osgi.jar
or its parent.
[12/11/14 10:27:57:377 IST] 0000002f
m.ibm.ws.container.service.app.deploy.ManifestClassPathUtils W
SRVE9967W: The manifest class path jaxb1-impl.jar can not be found in
jar file
wsjar:file:/home/administrator/.ibm/mobilefirst/6.3.0/server/wlp/usr/servers/worklight/apps/worklightconsole.war!/WEB-INF/lib/jaxb-impl-2.1.12.osgi.jar
or its parent.
[12/11/14 10:27:57:637 IST] 00000029
com.ibm.ws.webcontainer.osgi.webapp.WebGroup I
SRVE0169I: Loading Web Module: IBMJMXConnectorREST.
You've only linked to the documentation. Please edit the question and describe what you've actually done.
These are the steps I have taken (based on the CLI tutorial) in order to create a new project and application using MobileFirst CLI and then open MobileFirst Console:
System:
OS X 10.10.1
Oracle Java (default installed by the OS)
In Terminal:
cd /Users/idanadar/Desktop
mfp create testProject
cd testProject
mfp add hybrid testApp
mfp start
mfp build
mfp deploy
mfp console
The console was opened:
Check to see if there are any spaces in the path for your eclipse workspace. There is a known limitation with Liberty 8.5.5.3, which is the internal development server included in MobileFirst Platform Foundation 6.3, that you cannot have whitespace in the path name:
https://www-01.ibm.com/support/knowledgecenter/SSHS8R_6.3.0/com.ibm.worklight.getstart.doc/start/c_known_limitations.html
The failures, which match what shows in your log file, can occur on console startup and app deploy or preview.
The Issue is with the Hosted Server. They have opened the port 10080 partially. as port is allowing one way communication. because of some security reason, Hosting Server organisation has put some restriction over it. Now its resolved. Now we can able to deploy, and check the deployed apps over the worklight Console.
Thank you all for your suggestions and effort to go through my long listed question and trying out to resolve it.
I posted this comment: as some other persons may face same issue. so at least they can rid of this kind of issue ASAP.

can not deploy war to jboss 7 from eclipse juno

I have a question about deploying my app.war to jboss7.
My testing environment:
OS: Ubuntu 12.10
Eclipse: Eclipse Juno (Eclipse 4.2)
JBoss: JBoss AS 7.1.1 Final
JBoss Tool: JBoss Tool 4
JDK version: JDK 7
If use the default server configuration, when I start server, it will start successfully, and my app.war can be deployed normal.
refer to this screenshot
I change "Default Settings" in Deployment tab of server configuration,
choose "Use workspace metadata (does not modify JBoss deploy folder).
refer to this screenshot
when I start server, it still start successfully, but my app.war does not be deployed.
the console has no error log and the log's content can't find any message about my app.war
I can't understand why this happens. Could someone tell me how to solve it?
Thanks for anyone's help.
Just download jboss and configure server and right click on project properties and deployement assembly then click on add and locate the target project folder