Questions tagged [liferay]

0

votes
0

answer
3

Views

LDAP with Liferay - Unknown host where exists

I have to integrate LDAP with two different services: exoPlatform and Liferay. So I set up an LDAP server via a Docker image with these configurations: Server Name: openldap Base Provider URL: ldap://openldap:389 Base DN: cn=users,ou=Platform,o=acme,dc=example,dc=org My admin account is just: cn=ad...
Melinsuna
0

votes
0

answer
4

Views

Can the ConfigurationAPI in Liferay DXP be used for Plugin sdk portlet?

I have followed given 2 tutorials to use COnfigurationAPI in a Liferay dxp plugins SDK portlet built using Ant/Ivy. COnfiguration API 1 COnfiguration API 2. Below is the configuration class used: package com.preferences.interfaces; import com.liferay.portal.configuration.metatype.annotations.Extende...
Shivam Aggarwal
0

votes
0

answer
5

Views

Liferay 7.1 custom portlet using CXF JAX-RS

I'm getting the following error when my bundle is trying to start: The activate method has thrown an exception java.lang.NoClassDefFoundError: Could not initialize class javax.ws.rs.core.EntityTag That happens when I tried to deploy an osgi module. I'm using: Liferay 7.1.2-ga3 'org.apache.cxf:cxf-rt...
javaxiss
1

votes
1

answer
53

Views

Not able to fetch Logged in User name when Liferay is configured to use Basic Auth and users are defined in tomcat-users.xml

Liferay 6.2 Auth Type: BASIC Web.xml has entries: /c/portal/protected /* PAdministrator BASIC PAdministrator Tomcat User .xml: After Tomcat restart : Browser throws up Popup asking for credentials. However when i say request.getPrincipal() it always returns userid of the default portal user account,...
Mogambo mast
1

votes
1

answer
434

Views

PrimeFaces Drag & Drop not working if other portlets contain <form> tags

If I have a Liferay page which includes a Liferay Web Content Display with a form tag and then a PrimeFaces portlet with p:droppable and p:draggable, the Drag & Drop functionality does not work. My XHTML: My Bean: import java.io.Serializable; import java.util.ArrayList; import java.util.List; import...
Tahir Umar
1

votes
0

answer
236

Views

Failed to determine Java version for profile jdk7-plugin-fix-version @ org.apache.commons:commons-parent:42

I am facing the below error on maven build. Failed to determine Java version for profile jdk7-plugin-fix-version @ org.apache.commons:commons-parent:42 problems were encountered while building the effective model for org.apache.commons:commons-lang3:3.5 Please help to resolve this issue. Full pom fi...
Kanhu Mohanty
1

votes
0

answer
32

Views

$_POST Variable Empty in Quercus Portlet on Liferay 6

My company is migrating from Luminis 5.1 to Luminis 5.3 (both built from Liferay 6), and we're running into a problem where portlets that POSTed fine in 5.1 no longer supply the Post Body in 5.3. For example, this form General Information Name
Goldentoa11
1

votes
1

answer
3k

Views

Configure gradle projects in SonarQube

I am working with Liferay DXP and I would like integrate SonarQube in my workspace, I am using gradle. My workspace is called: test-workpace My gradle.properies file (path: test-workspace/gradle.properties) is: systemProp.sonar.host.url=http://localhost:9000 systemProp.sonar.sourceEncoding=UTF-8 sys...
p.hevia
1

votes
1

answer
81

Views

How can I create Liferay web content structure's outside of Liferay configuration?

I'm very new to Liferay theme development and i'm trying to find the most optimal workflow for development. So I've been experimenting with creating Web Content Templates and Web Content Structures within Liferay CMS configuration. What I would ideally like to do is create my view 'Web Content Struc...
rich_c
1

votes
0

answer
115

Views

Liferay 7 + Spring MVC + JAX-RS

Hello StackOverflow Community, Background: I have a Spring MVC portlet project. I want to provide a JAX-RS web service on a class. I came across the below guides to understand rest services in Liferay, Liferay documentation Surekha Technology blog - creates a project using rest template. I've create...
MrC0mm0n
1

votes
1

answer
333

Views

Liferay 7 - ADT for single blog item

I created an ADT template for list of blogs entries, and it's working fine. But now I need to custom template for single blog entry, and the problem is that it is used the same ADT for list and single blog because they're associated to same portlet Blogs. Is there any mode to customize template for...
Marco
1

votes
0

answer
207

Views

Liferay 7 - Add form field with type file

I'm using Liferay 7 CE. Following the Liferay steps to create a new form field type using Liferay IDE (New Liferay Module Project - Gradle - Project Template Name: form-field), I need to create a new field type to upload a file (with this saving in Documents and Media) and send it in an email. In th...
Marco
1

votes
1

answer
28

Views

Portal.getUser is not working after user logs in

We are having a problem on Liferay we don't know how to deal with. We need a Hook filter to catch user requests to a particular URL pattern (which is direct accesses to document library files) as with: http://localhost:8080/documents/20181/323505/dddd.pdf/d188618b-56c5-4be6-bf94-548fac22bc24 Key Use...
1

votes
0

answer
183

Views

Liferay 7 JournalArticleLocalServiceUtil doesn't return articleDisplay content

I'm using Liferay 7 GA5, and I'm developing OSGI modules. I wrote my web contents using a working freemarker template starting with the following code: Now I need to access programmatically the web content, but if I access from a portlet: JournalArticleDisplay articleDisplay = JournalArticleLocal...
Alessandra
1

votes
2

answer
418

Views

ClassNotFoundException: com.liferay.portal.kernel.servlet.BaseFilter cannot be found by mymodule

I wrote a Liferay 7 module that contains only this class: ... @Component( immediate = true, property = { 'servlet-context-name=', 'servlet-filter-name=myfilter', 'url-pattern=/*' }, service = Filter.class ) public class MyFilter extends BaseFilter { ... } It compiles fine, but deploying it on a fres...
Nicolas Raoul
1

votes
0

answer
215

Views

Web-ContextPath doesn't seem to be working in Liferay

I am building a simple Single Page Application with JAX-RS backend bundled into Liferay 7. I want app's static files to be served from the same bundle, so I created META-INF/resources folder and put all the files there. Next, I added Web-ContextPath: /demo-spa-react to bnd.bnd file, but when I try t...
foverzar
1

votes
0

answer
28

Views

Image size issue in Liferay 6.2 document and media portlet

I'm facing an issue in document and media portlet liferay 6.2 since a long time. There are two scenarios - 1) I upload an image of 2MB and when I download it's size increases to 3.2MB. 2) I upload an image of 5MB and when I download it's size decreases to 500KB. For some images, it works fine but f...
Dinesh Kumar
1

votes
1

answer
89

Views

Liferay 6.2 - No UserNotificationEvent exists with the primary key?

I'm facing an issue regarding Notifications on my portal (Liferay 6.2). When I had the idea to clean old (& useless) notifications from the DB table USERNOTIFICATIONEVENT my notification portlet crashes. Every time I open the notifications I get the following error: Caused by: com.liferay.portal.NoS...
ktsigkounis
1

votes
1

answer
188

Views

Manually creating a deployable JAR for Liferay

I created a liferay workspace in gradle format and it basically only contains a theme and a TemplateContextContributor-module. Now I want to build a maven 'wrapper' around both artifacts to make them compatible with some other maven-processes/-plugins while keeping the original gradle structure. I d...
Manticore
1

votes
1

answer
86

Views

Concurrent API LayoutLocalService.addLayout throws StaleObjectStateException in LayoutSetLocalService

UPDATE Liferay ticket accepted , solution in dev : https://issues.liferay.com/browse/LPS-82954 Situation My context is a parallel import of liferay layouts through a liferay portlet; build with spring. When i´m executing it in Liferay dxp; the api call to add a Layout throws a StaleObjectStateExcep...
André
1

votes
0

answer
80

Views

Liferay 7 Select Specific Navigation Menu and Its Child Menu

Is it possible to select a specific menu from navigation in programmatic way similar to the navigation codes in the Liferay theme? For example, I have these pages: Home Services Service 1 Service 2 Contact I want my main navigation to display: Home | Services | Contact Once I click Services menu, t...
Julez
1

votes
2

answer
51

Views

The requested php resources could not be found

i have a php file in life ray for ajax However as i placed the file under \tomcat-8.0.32\webapps\ROOT and attempted to go to this url: http://localhost:8080/server_processing.php, it says the requested resources could not be found.. However, when i placed a index.jsp inside the same directory after...
Liferayer
1

votes
3

answer
109

Views

How to log requests and user info like username automatically into log file to track user activity in liferay?

In Liferay 7 Enterprise Edition, I want to log user info like user_name in external log files automatically in each request to track user activities, how to do that? without using auditing plugin when I tried to log post request for example (login), it doesn't contain any info about user ?!
Esam eldean
1

votes
0

answer
79

Views

Upgrade process for Liferay DXP

I have a portlet bundle as a war in Liferay 6.2. We are planning to convert it into module as per the Liferay 7. So we have the change of Portlet name and hence Id. Now we would like to run the upgrade process which will take care below scenarios Updating Portlet Preferences with new Portlet Id Upda...
suyash
1

votes
0

answer
81

Views

Liferay/AlloyUI: Overriding util.js or disabling scrolling on form focus

How can I override (or hook) the function Liferay.Util.focusFormField in Liferay 7.0? The method is defined in frontend-js-aui-web (portal-src\modules\apps\foundation\frontend-js\frontend-js-aui-web\src\main\resources\META-INF\resources\liferay\util.js). The only way I could think of is to just over...
Manticore
1

votes
1

answer
126

Views

liferay 7.1 PostgreSQL compatibility

I'm looking for any information about official LF 7.1 CE support for PostgreSQL database. I have found information about compatibility for DXP edition: https://web.liferay.com/services/support/compatibility-matrix but not for CE. So can I assume compatibilities from DXP are the same for CE edition?
Piotrek Makos
1

votes
1

answer
104

Views

How to integrate Liferay 7 with Apache POI? - extra details

I have come across this answer How to integrate Liferay DXP with Apache POI? regarding my question but i have a couple more unanswered questions : How did you manage to find all the required packages to exclude from importing in bnd.bnd file ? I tried the same thing in ECLIPSE IDE with Liferay 7.0 W...
1

votes
1

answer
52

Views

Scheduling job with liferay 6.1

I am referencing this link link to schedule my job with liferay. i have added Job Scheduler class which is :- import com.liferay.portal.kernel.messaging.Message; import com.liferay.portal.kernel.messaging.MessageListener; import com.liferay.portal.kernel.messaging.MessageListenerException; public c...
sagar limbu
1

votes
0

answer
51

Views

Liferay - React portlet: MIME type ('text/html') is not executable, and strict MIME type checking is enabled

I am building a npm-react portlet in liferay 7 and i am trying to use https://react-table.js.org for rendering the table data. When i try to access the portlet in brower i get the erro in the screen shot below: Error: MyJS file: import React from 'react'; import ReactDOM from 'react-dom'; import Clo...
Rahul B Gangwar
1

votes
0

answer
20

Views

Sync liferay and AD's distribution groups

Our Active Directory already have a Distirbution Groups which contains users divided on departments. How can I sync this distribution groups to 'User groups' and than send emails to them? It will be conveniently, bcs Distribution groups everytime are updated and correct.
Askar Adylkhanov
1

votes
0

answer
25

Views

Upgraded Spring MVC portlet throws org.w3c.dom.Document not found exception when deployed in Liferay 7

I'm upgrading Liferay portal from 6.2 to 7. I have upgraded spring MVC portlet so that it can deploy in Liferay 7 server. Resolved some of the exceptions by excluding xercesImpl.jar and xml-apis.jar as mentioned below. java.util.ServiceConfigurationError: javax.xml.parsers.SAXParserFactory: Provider...
Nik
1

votes
0

answer
26

Views

cannot fetch the exact dto returned from ejb to liferay controller

I am doing a liferay project which use ejb at back end. so my ejb method looks like this:- @Override public List getEpaymentDetails(String ebpCode) { Query q = entityManager.createQuery('select s from EpaymentBo s where s.ebpCode=:ebpcode') .setParameter('ebpcode',ebpCode); @SuppressWarnings('unchec...
sagar limbu
1

votes
0

answer
58

Views

Workflow condition liferay 7.1 form

I have a problem with the Workflow of liferay 7.1. I have created a form for the request of vacation and permissions. Also, I have created some roles which I have assigned to specific users. I wish the request would achieve to a specified role (I thought an if or switch) and the notification to the...
DevOkAnd
1

votes
2

answer
186

Views

Liferay 6.2 CE admin cannot access the dockbar or the control panel

Running Liferay 6.2 CE on Tomcat 8.0.20, on two different environments. On one environment, the dockbar has recently ceased appearing on the top of my Liferay portal when logged as admin. Also, trying to access the Liferay control panel directly with the URL takes me to a 'not found' page. I wonder...
Benoît Smith
1

votes
0

answer
31

Views

Liferay7 and Vaadin8 install ProoTools Vaadin Chart 4.0.5

I recently migrated to Liferay 7.0, I'm trying to install Vaadin Charts but I do not have success. I installed the follow jar in the App Manager vaadin-charts-4.0.5.jar, jackson-annotations-2.5.0.jar, jackson-core-2.5.1.jar, jackson-databind-2.5.2.jar then when I access to my portlet that use Chart...
IMA
1

votes
0

answer
137

Views

Liferay 7.1 Integration with WSO IS 5.6.0 using OpenID Connect

I'm trying to configure SSO login between Liferay 7.1 and WSO2 Identity Server 5.6.0 using OpenID Connect. I've configured the service provider in WSO2 and I've also enabled and configured OpenID Connect in Liferay. At this point I'm able to login in Liferay throught WSO2. I would like to retreive a...
Segamoto
1

votes
0

answer
65

Views

Liferay 7.1 OpenID Connect as default login

Recently I migrated from 7.0 GA5 to 7.1 GA1 and I have a SSO configuration with WSO2 using OpenID Connect. Is it possible to skip the default login page and be automatically redirected to WSO2 login without clicking on 'OpenID Connect' and the provider choice? (Like it was in the 7.0 with OIDC Plugi...
Segamoto
1

votes
1

answer
134

Views

Portlet Deployment issue on Liferay 7

I am new to Liferay. I am currently doing a lab exercise on the Liferay guestbook. I followed the instructions given and when run my tomcat server, I received this error on my console. Does anyone know what error it is? 02:59:07,818 ERROR [http-nio-8080-exec-2][JSONWebServiceServiceAction:97] Access...
ALABADAMA
1

votes
1

answer
46

Views

how do i config intellij idea + jrebel + liferay dxp

I was checking the liferay V1.1.1 plugin for intellij idea, I could see that you can add liferay servers, you can debug among other things in the Liferay 7.1 version, the problem goes when I want to use jrebel to work with intellij idea for themes and modules , thanks
Javier Vilcapaza
1

votes
1

answer
46

Views

How to add library path in bnd file in liferay7?

I have created a module project using mvc-portlet.For my project, I need to import a few jar files. For this purpose, I have created a lib file in the project module and have added its path to the build.gradle .Now while building the project is working, but at the time of deployment it is not starti...
Ann Jisna James

View additional questions