Questions tagged [liferay-7]

Please use only for Liferay Portal CE 7.0 and DXP 7.0. Liferay is an open source Java portal and social platform. Version 7.0 was released in 2016.

Liferay Portal is a free and open-source Java-based enterprise portal, content management system, and social platform used to power corporate intranets and extranets. Liferay DXP is the matching enterprise supported version of the software.

It has support for developing plugins using Blade Tools

The most important and remarkable improvements of "Liferay Portal 7.0 Community Edition" and "Liferay DXP 7.0" is Liferay’s module framework which makes it easier than ever for developers to create Liferay applications and to customize Liferay using modules and components!

A lot more information is available in the main tag. Liferay 7 is partially backwards-compatible with Liferay 6.2 Plugins, but provides a lot more customizing options when leveraging OSGi for building plugins.

Please note that Liferay Portal CE versions are only updated until the next version is out. Currently (August 2019) the active version is 7.2 - the last update to Liferay CE 7.0, 7.0.6 GA7, was released in May 2018.

887 questions
2
votes
1 answer

Unresolved requirement: Import-Package: com.google.common.base

I am trying to add an external library to Liferay - the Orika lib. I have added the Gradle dependency in build.gradle like this: compileInclude group: 'ma.glasnost.orika', name: 'orika-core', version: '1.5.4' I am using compile Include in order the…
Victor
  • 1,001
  • 2
  • 14
  • 25
2
votes
1 answer

How to get JWT token for current Liferay session

I have configured Liferay v7.3.4 CE to authenticate with AWS Cognito using OpenID Connect Provider, and that all works fine. I would now like to invoke REST APIs in AWS, from within Liferay, using the JWT token obtained from Cognito during the…
Randy Leonard
  • 655
  • 7
  • 21
2
votes
2 answers

Unsatisfied reference Configuration on Service Builder Liferay 7.2

We are trying to migrate code from Liferay 6.2 to Liferay 7.2, but we've hit a wall when it comes to service builder. We've followed the guide (changing the dependency-injector to ds, adding the @Component to impl classes...) but when we run a…
2
votes
2 answers

Liferay DXP 7.2 listeners failed to start (clean version)

Liferay DXP 7.2 is failed to start (clean version) with OpenJDK. Not using any IDE, it's Windows Server 2016 version (don't think any issue will be there with server edition) just started the startup.bat under…
2
votes
1 answer

Liferay 7.1 npm-react-module localization

I'm trying to include localization into my npm-react-module, but I have failed receiving the value for the corresponding key from the Langugage.properties file. It simply returns the key. I did some research but I couldn't find any source that would…
fspasovski
  • 361
  • 2
  • 15
2
votes
1 answer

Implementing auto-saving Web Content as draft in Liferay 7.2

Since Liferay's Web Content can't be automatically saved as draft by default, I need to implement such a functionality. I've found out that Web Content form contains hidden input field with id…
2
votes
2 answers

Liferay versions and correct dependencies

I'm rather new to Liferay, Maven and Java so it may be more of a general question about dependencies. I am maintaining a Liferay portlet that has been migrated from 6.2 to 7.1 and there are a number of Liferay maven dependencies with version numbers…
rocketboy2000
  • 119
  • 1
  • 11
2
votes
1 answer

Is there a way to access session data that was set in the openid connect process?

When I try to access Liferay Portal session data it seems as it doesn't contain data stored by internal Liferay Portal processes. Is it possible to access the token that was stored in the OpenId-Connect Login process? Basically, I was tasked with…
Robert Engel
  • 664
  • 6
  • 13
2
votes
1 answer

Unit tests for a Liferay service

I wrote a Liferay service. It does complex things with many different expected outputs depending on the inputs. I want to test the outputs with all of these inputs. My service is used by several portlets, so I could manually test using the portlets,…
Nicolas Raoul
  • 58,567
  • 58
  • 222
  • 373
2
votes
2 answers

Liferay DXP Frontend Hot Deployment

I would like to do a Hot-Deployment of the Front-End-Code (HTML, CSS, JS) of some Portlet so development time can be saved and not the whole Portlet needs to be redeployed. The Portlet is a .war File. In the good old Liferay 6.2 this was simply…
Philipp Hellmayr
  • 312
  • 2
  • 11
2
votes
3 answers

Dockerized Elasticsearch nodes unavailable for Liferay 7.1

Liferay is not able to recognize my Elasticsearch cluster when starting. Here is my docker-compose configuration: version: '2.2' services: es01: image: docker.elastic.co/elasticsearch/elasticsearch:7.1.1 container_name: es01 …
javaxiss
  • 680
  • 3
  • 13
  • 34
2
votes
1 answer

Liferay SQLSyntaxErrorException

After installing Liferay 7.0 and choosing the MySQL database, I get this error: Starting Liferay DXP Digital Enterprise 7.0.10 GA1 (Wilberforce / Build 7010 / June 15, 2016) 05:39:54,652 INFO [localhost-startStop-1][StartupAction:121] The…
Nicolas Raoul
  • 58,567
  • 58
  • 222
  • 373
2
votes
1 answer

Liferay Embedded portlet does not call render function

I have looked everywhere for this bug and I have seen no other issue Currently I am using Liferay 7.0 and I embedded my portlet in a web content template like so:
2
votes
0 answers

Extend StagedModelDataHandler for Journal Article in Staging

I am working on local live staging in Liferay 7.1, in which I have one custom field in Web content. When I export those web content to local live, I want to check that custom field as result I would be export that web content. So for that, I am…
2
votes
1 answer

Liferay DXP (7.0) refuses to reindex

I'm working on a portal where I'm responsible for the searching. I'm using for example JournalArticleIndexerPostProcessor, to add custom fields in the index... After reindexing a lot of data (full - reindex), I noticed my code was being stale /…
Kornelito Benito
  • 1,067
  • 1
  • 17
  • 38