Search Results

Knowledge Base 1413
Resource Type
Applicable Versions
Deployment Approach
Capability
Feature
How do I change Tomcat's temp folder path to another?
Issue How can the Tomcat temp folder path be changed to a different path? Environment Liferay DXP 7.3 Resolution In order to configure Tomcat to use a different temp directory, users must first understand the...
Installing hotfix on weblogic server
Issue How to install the hotfix on weblogic server Environment Liferay DXP 7.0 - 7.4 Resolution Although this documentation explains Setting Up the Patching Tool in Weblogic, here are the easy steps Check...
How to get all sites or friendly URLs where the article is displayed?
Issue We are searching for a way to obtain where one article is displayed; based on the articleId. I did not find any clear way to achieve our goal in Documentation. The list should contain a list of friendly URLs or a...
Even if you disable the Terms of Use, the Terms of Use screen will appear when you log in for the first time.
Issue In DXP 7.3, "Control Panel > Instance Settings > Instance Configuration > Terms of Use > Require Terms of Use" is unchecked. After upgrading to DXP 7.4, a new Terms of Use pop-up will appear upon first login. Can I...
Compile Error when removing build.gradle changes needed for com.liferay.portal.dao.orm.custom.sql. in 7.1 and beyond
Issue When addressing build.gradle changes needed for com.liferay.portal.dao.orm.custom.sql by removing the version number, and a compile error is returned. Environment Liferay DXP 7.1 Liferay DXP 7.2 Liferay DXP 7.3...
Deploy Liferay DXP 7.3 as a Windows Service in a Liferay Bundle
Issue How to deploy a Liferay DXP 7.3 bundle as a Windows Service Environment Windows OS Resolution  Download from Apache Tomcat windows binaries. Copy the missing files from the bin folder in the downloaded...
How to interpretate order in event actions like logout.events.post
Issue Imposing an order to event actions that can be defined either in portal-ext.properties or as an OSGi component (using key property) is somehow tricky. Environment Configuring an event action that needs to...
How can jQuery be enabled by default without using the Control Panel?
, knowledgeArticleType: howTo, legacy: true, name: How can jQuery be enabled by default without using the Control Panel?, showDisclaimerMessage: true, sourceTeam: Support, ticketNumber: 67486, title:...
Log level of jsonwebservice
Please be aware that the page you are viewing has been machine translated from Japanese into English and may contain some translation errors. If you observe any issues with the translation, please contact us. event...
User wants to setup a scheduler job, but only with one specific node within the cluster.
Issue User wants a scheduler job to run on only one specific node of the cluster. Environment Liferay DXP 7.1 Liferay DXP 7.2 Liferay DXP 7.3 Liferay DXP 7.4 Resolution A cron job can be disabled in a certain node...
How to clear only a specific OSGi module directory from osgi/state/
Issue Is it possible to clear only the data from a specific module in osgi/state/ instead of clearing the whole directory? Environment Liferay DXP 7.0+ Resolution Imagine we want to clear the data of module...
Audit logs for site page deletion
Issue Need to get audit logs for site page deletion/ update. Environment Liferay DXP 7.0 Liferay DXP 7.1 Liferay DXP 7.2 Liferay DXP 7.3 Resolution There are no OOTB configuration available for getting the Audit...
The DXP/Portal WAR's shielded-container-lib/ directory to load libraries
Issue Shielded container library in DXP 7.4 over global classpath(tomcat-<version>/lib/ext/ directory to load libraries globally) Environment Liferay DXP 7.4 Resolution The DXP/Portal WAR's shielded...
Liferay related fields that can be added in Jboss access log
Issue How to add the access-log pattern that includes Liferay related fields in the access log? Environment JBoss 6.x JBoss 7.x Liferay DXP Resolution To enable the access logs, you may follow the...
Establish an external data source using JNDI
Issue Sometimes there is a requirement to use data sources other than Liferay DXPs. To do this, the data source can be configured via JNDI data source or JDBC properties. Any database other than Liferay DXP's...
'users.reminder.queries.enabled' portal property can be configurable from the UI on a per-instance basis
Issue Until now, the property 'users.reminder.queries.enabled' has been set to true or false per instance. However, after version DXP 7.3, the user is no longer able to do so (as the per-instance property file...
User should be re-directed to the custom page once the session expires
Issue Once the session expires, users should redirect to the custom page Environment Liferay DXP 7.0 Liferay DXP 7.1 Liferay DXP 7.2 Liferay DXP 7.3 Liferay DXP 7.4 Resolution To redirect the user to any...
Establish an external data source using JDBC
Issue This article outlines how to set up a connection between Liferay and an external database using JDBC properties. Environment Liferay DXP 7.3 Liferay DXP 7.4 MySQL database Resolution There are two ways to...
How to include the gradle dependency of a module into another module project?
Issue How to include the Gradle dependency of a module (Workspace A) into another module (Workspace B) project? Environment Liferay DXP 7.2 Resolution Please Note: Please choose to follow your appropriate discretion...
Unable to delete navigation menu from page
Issue Unable to remove the navigation menu widget from the page. Environment Liferay DXP 7.0 Resolution It is the intended behavior of Liferay as there is an option to enable Hidden from Navigation Menu...
Is there a way to find out which osgi module owns a jar that's been written to the $liferay_home/osgi/state directory?
Issue I would like to find out which osgi module owns a jar that's been written to the $liferay_home/osgi/state directory. Environment DXP 7.2 DXP 7.3 Resolution  The id of the bundles in Gogo Shell corresponds...
How apply changes to Tomcat's server.xml file in Liferay PaaS
Note: please note that Liferay has renamed its Liferay Experience Could offerings to Liferay SaaS (formerly LXC) and Liferay PaaS (formerly LXC-SM). Issue I need to make some changes in Tomcat's server.xml...
How can I manually force the generation of document thumbnails?
Issue It is necessary to regenerate all thumbnails of the documents in documents and media. After executing "Reset preview and thumbnail file for Documents and Media" in the server administration section, the thumbnails...
Restricting redirection to whitelisted URLs
Issue I want to specify the URLs my users get redirected from our site.  Environment DXP 7.0+ Resolution You have more information about this settings in this article: Errors in the log file of the type "Redirect URL...
How to get the groups associated to organizations using JSON Web Services
Issue There is no method available in the JSON Web Services API to obtain the groups (i.e. sites) associated to organizations. Is there a way to get them? Environment Liferay DXP 7.0, 7.1, 7.2, 7.3 Resolution There...
How do we set the number of Recent Sites that show up in the Control Panel's Sites column?
Issue We would like to control how many Recent Sites are listed on the Control Panel's Sites column. Environment Liferay DXP 7.3 Resolution The following property can be declared within the portal-ext.properties...
How to enable Hibernate query parameters logging
Issue Sometimes it can be useful to check which query is executed against the database as well as its parameters. Resolution To show the information in the logs the following has to be done: From Control Panel...
Deploying Liferay DXP 7.3 on JBoss EAP 7.3.0
Issue Detailed steps to Install Liferay DXP on JBoss EAP Environment Liferay DXP 7.3 JBoss EAP 7.3.0 JDK 1.8 Resolution 1. Liferay Home is the folder that consists JBoss server folder. After installing and deploying...
Adding custom preferences to Spring MVC Portlet
Issue We've create a new Spring MVC Portlet and we'd like to configure it with some custom portlet preference. How can we do it? Environment Liferay DXP Resolution Once you've created your Spring MVC Portlet you...
User is required to change their password when they first log in
Issue  User is required to change their password when they first log in Environment DXP 7.2+ Resolution Add the below properties in portal-ext. properties files: users.reminder.queries.custom.question.enabled=false...
Configure default database if the one defined in jndi is not available
Issue When the database is configured through the portal property: jdbc.default.jndi.name (and its properties defined in ROOT.xml) and it is, for some reason, not available when the portal starts, the...
How to disable simultaneous login from multiple sessions
Issue How to disable users to simultaneously login to Liferay DXP using multiple different sessions. Environment Liferay DXP 7.0 Liferay DXP 7.1 Liferay DXP 7.2 Liferay DXP 7.3  Resolution Please add the following...
How to generate multiple Java Thread Dumps in Linux and Windows
Issue In case of a throughput issue, the Liferay support service usually asks to take some java thread dumps from the Liferay server, in an interval of 1-2 seconds. Taking several thread dumps, allows you to detect if a...
How to execute verify.frequency in Liferay DXP 7.3
Issue The property verify.frequency was deprecated in Liferay DXP 7.3. Environment Liferay DXP 7.3. Resolution To check for available verify processes, go to Control Panel > System > Gogo shell and enter the...
Logs rotation based on size
Issue How to implement the log rotation for Liferay logs based on the size Environment Liferay Portal 6.2 Liferay DXP 7.0 Resolution The logs can be rotated based on the size and it can be achieved through...
In a thread dump there are many blocked threads inside InitFilter class
Issue When I analyze a thread dump there are multiple threads in BLOCKED status with stacktraces such as this: "http-nio-8080-exec-129" Id=325 BLOCKED on...
How to acquire Liferay PaaS logs in a file on a local machine without requiring browser interaction
Note: please note that Liferay has renamed its Liferay Experience Could offerings to Liferay SaaS (formerly LXC) and Liferay PaaS (formerly LXC-SM). Issue Our team would like to transfer Liferay PaaS logging into a...
How to enable web content and user logs in server console?
Issue In this article, we'll know how to display logs of web content and user creation in the server console. Environment Liferay DXP 7.1 Resolution For Web Content logs: Navigate to Control Panel→ Server...
Setting up Microsoft Server AD with Liferay
Issue This article provides you detailed steps to set up and configure Microsoft Server AD to Liferay. Environment Liferay DXP 7.1 Resolution Changing Computer Name: Control Panel → System and Security → System...
Approaching database support
Issue Approaching database support issues in the Liferay. Environment Liferay DXP 7.0 Resolution There are two ways to set up database connections in the portal-ext.properties file. If both JDBC properties and JNDI...
Stopping scheduled tasks in Liferay
Issue I would like to stop the out-of-the-box scheduled tasks in Liferay. Environment Liferay Portal Liferay DXP Resolution Most of the scheduled tasks included in Liferay can be found by searching for .check in the list...
How to check Java's TZData (Timezone Data) version
Issue In countries where Daylight Savings Time (Summer Time) is defined each year the timezone data (TZData) can be outdated. This procedure can help you fetch the version of the TZData currently in use...
Documents and Media: Disable permission for users to add new folder
Issue A user assigned a 'Site Role' is able to create a new folder in Documents and Media How can I prevent a user creating new folders? Environment DXP 7.1    DXP 7.2    DXP 7.3    Resolution By default, Site...
How to set up a clean bundle in your local environment
This article has been machine translated from its original language for your convenience. Please use discretion as this translation may include some inaccuracies. If you encounter issues with the translation, please...
Where can I get the database query logs for my Liferay PaaS project?
Note: please note that Liferay has renamed its Liferay Experience Could offerings to Liferay SaaS (formerly LXC) and Liferay PaaS (formerly LXC-SM). Issue Where can I get database query logs for my Liferay PaaS...
JavaScript Loader OSGI config settings don't appear to be applied following an upgrade to 7.2+
Issue When upgrading to DXP 7.3, we moved our previously modified OSGi .config files to the new bundle, but the settings from the JavaScript Loader .config file do not appear to be taking effect, as the default...
Changes to Tomcat classloading order as of Tomcat 8+
Issue In Tomcat 7 and earlier versions, class loading for EXT JAR files were done in alphabetical order. However, with Tomcat 8 and later, class loading has been changed to be decided by the underlying file system....
How do I implement a JNDI database connection on Liferay PaaS
Note: please note that Liferay has renamed its Liferay Experience Could offerings to Liferay SaaS (formerly LXC) and Liferay PaaS (formerly LXC-SM). Issue Portal Administrators may require a connection to the...
Auto Upgrade in DXP 7.3 and Above
Issue Starting from Liferay 7.3, new upgrades for modules won't run automatically on startup by default. Resolution The following options are available to run the upgrades we may include in fix/service packs:...
Groovy Script to truncate the data of UserTrackPath Table
Issue If you want to truncate the data from UserTrackPath Table Environment Liferay DXP 7.2 Resolution Below is the Groovy Script which might help to truncate the data from UserTrackPath table. import...
Delay when fetching data from headless-admin-user/v1.0/user-accounts for the first time after server restart
Issue When running a REST API call as below:...
Is it possible to schedule LDAP imports for a specific time of day in Liferay DXP?
Issue In Liferay Portal 6.2, it was possible to create a cron trigger in the liferay-portlet.xml file to accomplish LDAP imports for a specific time of day without creating a customization. These types of scheduled...
Is It Possible To Change Deployed War Location?
Issue The default location of the deployed war is ${liferay.home}/osgi/war folder. Is it possible to change the location?   Environment Liferay DXP 7.0+   Resolution You can use the following property to change the...
How to persist a Secret Environment Variable when deleting and redeploying a service
Note: please note that Liferay has renamed its Liferay Experience Could offerings to Liferay SaaS (formerly LXC) and Liferay PaaS (formerly LXC-SM). Issue For business reasons, we have a custom service that we...
Cache Override
Issue This article describes how to override the cache in 7.0 taking into account two different aspects: EhCache settings and Replication settings. The first one implies creating a new module, while the second is...
Enable BundleStartStopLogger debug log traces
Issue How to enable BundleStartStopLogger debug log traces to see module lifecycle events during startup. Environment Liferay DXP 7.0+ Resolution Stop the server. If it doesn't exist create a folder named log4j...
Portlet Management in a clustered Liferay DXP using WebLogic
Issue How can I manage portlets in a clustered Liferay DXP environment using WebLogic?    Environment Liferay DXP 7.x WebLogic   Resolution Since Liferay DXP 7.x, you will have no access to any modules deployed within the...
How to manually remove / delete a portlet
Issue How can I completely delete a portlet so that I can redeploy an older version? When I uninstall a portlet from the App Manager, it's only Blacklisted and not uninstalled. How do I remove a custom module in...
The default Liferay DXP site's name cannot be localized/translated
Issue I am using the default Liferay DXP site, renamed it, but I do not see the language button or an option to add the site name in different languages. Environment Portal 6.2 DXP 7.0+ Resolution The default site's...
How to update our Tomcat server?
Issue We've found a security issue in our current Tomcat server version The issue has been fixed in the latest version of Tomcat Does Liferay provide a fix for the issue? If not, how can we upgrade our...