Deploy .war file to Liferay using only web based UI - liferay

Is it possible to deploy a .war file in Liferay 6.1 without using any separate tomcat connections? I am able to access Liferay's web UI. I am not able to access the server with any other 3rd party software, nor I do not know how to do it.
The Liferay portal in question is Liferay Portal Enterprise Edition 6.1.20 EE

Install from Liferay marketplace the "private installer portlet" that allows you to upload and deploy the war from the control panel.
Downlaod from here

Related

Jsp project not showing on azure,how to deploy it correctly

I have a java jsp project need to upload to azure web apps. So I created web app service but in ftp there is no web apps folder, so I created one but still I can't access it.Any suggestions please.
First, make sure your App Service Web App has Tomcat as the Java web server in general settings:
Then make sure your JSP files are copied under /wwwroot/webapps/ROOT/
You might need to restart the web app after your files are deployed
For more information, please check our quickstart and configuration guide:
https://learn.microsoft.com/en-us/azure/app-service/quickstart-java
https://learn.microsoft.com/en-us/azure/app-service/configure-language-java

Kentico - Global.asax file issue after publishing

I have installed a new Kentico web application and I can browse the site without any problem. This site is hosted in IIS, Now I want to add some customization and created another web application application using MVC and registering routes etc in application start of global.asax event.
Kentico project also has a global.asax file and it contains some code logic.
When I publish my custom web project, It overwrites the existing default Kentico global.asax with global file from my application and application breaks.
Is there any way to have a 2 different global.asax file in a web application with different names? I want both global files should execute separately.
No, I don't believe you can do that. What you can do is publish your MVC site to an application in IIS instead. You might find the following article from Kentico helpful: Creating virtual directories and application pools in IIS 7.5 and 7.0

How to: Run Liferay based Web portals in IBM Bluemix

I am running some Liferay applications in my organization using the liferay enterprise edition. How can I move these applications to IBM Blumix. If it is possible how are the liferay enterprise licenses managed in Bluemix?
Websphere Full/Liberty profile as Application Server for Liferay
according to what I found on Liferay documentation/user guide, Liferay is supported on Websphere 8.5 and this guide
https://www.liferay.com/documentation/liferay-portal/6.2/user-guide/-/ai/installing-liferay-on-websphere-8-5-liferay-portal-6-2-user-guide-15--3
explain how to proceed.
In the same guide I find that
Please also note that the WebSphere Application Liberty Profile is not supported by Liferay.
so, to give a complete answer to what you are looking for:
you cannot make Liferay running on a Bluemix Liberty Runtime (because of the missing support for Liberty WAS profile)
you could create a Bluemix Docker container or Bluemix Virtual Machine running Websphere 8.5 Full Profile and deploy Liferay on it
About Docker container, you could find some guides on the network, one of them is the following
https://www.ibm.com/developerworks/community/blogs/devTips/entry/running_websphere_on_docker_container?lang=en
About Bluemix VM, being an openStack VM I suppose you should go on in the same way of installing WebSphere on a local VM.
Tomcat as Application Server for Liferay
Liferay is fully supported on Tomcat Application Server, which is available on Bluemix Cloud Saas on the Bluemix Runtime using the following buildpack java_buildpack with
cf push [app-name] -b java_buildpack
This buildpack provides openJDK and Tomcat as Application server
Obviously creating a Bluemix Docker Container or a VM running Tomcat as Application Server will allow to deploy Liferay on this Application Server as usual.

Accessing portlets in Liferay Mobile App Using Liferay SDK

I am using liferay 6.2 on my system and I created a site and some portlets. Now I want to use the same site in mobile application. I searched on internet about mobile application that uses liferay services.
If I create a mobile application using liferay SDK. Is it possible to communicate with portlets which I created in desktop site.
I think you already know that LR 6.2 theme system is powered by bootstrap, so if the portlet of your markup is well written you can have a great view of the website in a mobile environment.
Speaking about a native mobile application, I think you are referring not to Liferay SDK, but to Liferay Mobile SDK.
In this case you will be able to access to your data by using API it provide to you. In fact, it wraps Liferay JSON web services.
An other option for you is to use any other kind of way to write your mobile application and to write inside also a client for accessing to Liferay JSON web services.
These options start from a basic concept: your portlet make used Liferay Service Layer to provide data access. In this case you just need to be sure that you declared your services also as "remote". If not just modify your service.xml file and relaunch the build-service.
If you not used LR service layer (and don't want to use it), just create a service layer (without tables) with one method for any your external calls.
If you not used (and won't use) Liferay service layer, you just need to create a RESTfull resource listener, and manage your remote calls in this way.
Last, don't forget that Liferay core services are already exposed as JSON services (so you can call it by Mobile SDK or with any client of your app)... by the way, starting from LR 6.2, there are some differences in accessing to these methods for guest users.
Hope it helps.
It is possible using Custom Remote Web services, Via Http You can call that service and communicate with portel using Liferay-mobile-SDK.

Adding a portlet from one liferay container to another liferay portal

I have two liferay portals. I have deployed few portlets on Portal A. I want to use them on Portal B.
What is the appropriate way to do this?
You cannot use them in each other.
REASON : You liferay portal is your web-application server, your portlets are the web apps of that server, you have deployed them on specific server.
So, you simply cannot use this like the way you are thinking (I think your wild guess would be sharing "webapps" across portal)
The following possible solutions you can use for that
Use WSRP (Web Services for Remote Portlets), in this one, your one portal will host portlets and it can be used at remote portlets for another one.
Use Liferay Services (service.xml and remote-service=true), in this one, one portal must host liferay services as remote service =true, another portal can consume this and done.
Use Liferay Instance and not portals, Use a single Liferay portal server with 2 Liferay instances for 2 different web applications. This is possible, in this one, you can share all the resources on both the instance, and you can host them differently also.
Hope this helps!

Resources