Can't Preview my mobilefirst application - eclipse

I've created a project & application, and deployed successfully. But When I click Run As->Preview, it runs with no error and it is taking me to wordpad and pops up "Failed to load document".
If I run the project on server it again get deployed successfully but it is giving no output. How do I fix this?

Go over the Getting Started training materials in the MobileFirst Platform Developer Center: https://developer.ibm.com/mobilefirstplatform/documentation/getting-started/
I am uncertain why you would even need XAMP here when you're using MobileFirst Platform. It is completely unneeded. Close it.
Open Eclipse Java EE Kepler/Luna and make sure that you have MobileFirst Platform Studio installed (you can obtained from the Eclipse Marketplace (help > marketplace)).
Then, click the mobilefirst button from the top toolbar and create a New MobileFirst project > application.
Right-click the generated application folder (your-project\apps\your-app) and select Run As > Run on MobileFirst Development Server).
Right-click the generated project folder and select Open MobileFirst Console
You should then see the console and by click "preview web resources" you will see the application's default template.
You can also verify the server is running by opening the Servers view in Eclipse and making sure to select the server and click the green 'play' button to start the server.
Also, try in the eclipse preferences to set the browser to an external one.

Related

Can't choose an existing server in a Dynamic Web Project a in Eclipse

My colleague just set up a Dynamic Web Project in Eclipse and he also configured the server. He shared the entire project on a git repository and I cloned it. When I try to run the html file I click on 'run on server' but then I'm not able to choose an existing server already configured. Eclipse force me to create a new server with default configuration. I am attaching a screenshot of Eclipse
https://www.youtube.com/watch?v=ipqTnzTPgj0
Help --> Install new software ---> install " eclipse repository - https://download.eclipse.org/releases/oxygen ".
Then install the package for -- Web,XML, Java EE and OSGi Enterprise Development.
Reboot your computer and eclipse. Then it will work. Good luck.
It works for me:
Properties -> Project Facets and do it like this
Right click on you project and go to properties. Go to Project Facets and on Dynamic Web Module click the little drop down menu and select 3.1. I initially had it at 4.0 and it was not supported in my version of Eclipse.

unable to create server tomcat v8.0 in eclipse

i am using eclipse mars 2 and i am new to eclipse,
when i click to create a new server apache tomat v8.0 it does not show me next and finish button
enter image description here
but on selection of v7.0
this image comesenter image description here
I tried all these
delete the .eclipse folder in C:\Users\Manish Kumar Tomar**.eclipse**
not worked
then delete the complete eclipse extracted folder which downloaded from eclipse site, i used to run all the time from there eclipse
and replaced with new downloaded and extracted folder
then i run the error is still same
i was working with v8.0 but due to some errors i deleted it, then again i try to create, it is not able to create new
thanks for helping in advance :)
Before creating a Tomcat 8.0 server, you'll need to add a Runtime Environment for it:
Download Tomcat v8.0 from here. I recommend not using 8.5.x as Eclipse has trouble recognizing it properly. If you do decide to use 8.5.x, see this answer first.
Extract the downloaded file and make a note of its location.
Open Window > Preferences in Eclipse.
Scroll down to Server, expand it and select Runtime Environments.
Choose "Add..." on the right.
Select "Apache Tomcat v8.0" and click Next.
Click "Browse..." and select the location of your Tomcat v8.0 installation.
Click Finish.
Once you follow those steps, you should be able to create a Tomcat v8.0 server the way you were trying before.

Worklight application builder never finish execution in OS X

I have created a test application (hello world and a button) using Eclipse and Worklight 6.2.
I have 3 environments: iphone, ipad and android.
My project also includes jQuery Mobile 1.4.4.
Everything is set up correctly (ADT, Xcode, Worklight).
When I right-click myApp -> Run As > Run on Worklight Development Server, I see on the right bottom of Eclipse "Worklight application builder running". The problem is that it never finishes...
What could be the cause? Any solutions?
Things to try:
Close Eclipse and kill the Java process via Applications > Activity Monitor
Close Eclipse and delete the your-workspace\worklightServerConfig folder
Then open Eclipse and try again to build the app.

IBM Worklight - Getting an error on project creation

I have installed Eclipse IDE for Java EE developers and installed the IBM Worklight Plugin successfully.
The icon for Worklight is being shown up in my Toolbar. Now when I click on Worklight Project and then Further on Hybrid Mobile App option, it doesn't work at all. It just stops and if I click any other option, it displays this message:
An error has occurred. See error log for more details.
com/worklight/studio/mobilemarketplace/plugin/handlers/TemplateHandler
What should I do?
Make sure you use either Eclipse Jave EE 64bit 4.2.2 ("Juno" SR2) or 4.3.1 ("Kepler" SR1). These are the Eclipse versions supported by Worklight.
Steps:
After extracting Eclipse, use it with a new workspace
Then install the Worklight Studio plug-in from Eclipse > Help > Eclipse Markpetplace
Once installed, click the Worklight icon from the toolbar
Provide a project name
Choose "Hybrid Application" > click Next
Provide an application name > click Finish
The above process successfully created a new Worklight project and application for me.

Run on server option does not display in eclipse helios for spring-maven project

I have imported maven project in eclipse and configured properly. Its a web application, however I can't see 'Run on Server' option on right click in 'Run As'. I have Eclipse Helios and maven, tomcat plugin installed. should it required any plug-in for this or we need to convert project. Other web applications are getting 'Run on Server' option.
check Project properties / Project Facets / Dynamic Web module.
You might find this helpful;
http://vijaypm.blogspot.com/2010/12/maven-eclipse-and-tomcat.html
I had similar issue, unable to run on a server due to project facet validation issue.
I'm using Eclipse "Juno Service Release 2".
And resolved the issue with the following steps:
Right click on the project (on Project Explorer)
Click on Properties
Click on Project Facets
Uncheck the unwanted Project Facet(s).
Eg., I have unchecked Oracle WebLogic Web App Extensions
(because, my server is Apache Tomcat 7)
Apply >> OK
Now, I am able to run my web app on Tomcat server.
Hope this will work your you too.
Thanks,
Maris