thumbnail

Liferay DXP 2026.Q3 includes a capability I have been wanting to experiment with: Liferay can now act as a Model Context Protocol server. I knew what MCP was conceptually, but I had no idea what I would actually find once I connected an AI client to Liferay and let it explore. So I did what seemed reasonable. I started a disposable local Liferay instance, enabled MCP, connected...

thumbnail

I have been asking for something like Design Libraries in Liferay for years. And I know I am not the only one. Imagine you have a fragment that provides a standard hero, product card, call-to-action, navigation element, or some other piece of your organization's design. You use that fragment across ten sites. Until now, those ten sites generally meant ten copies of that fragment....

thumbnail

Cookies are one of those web technologies that start simple and become complicated very quickly. Setting a cookie is easy. The difficult part is deciding whether you are allowed to set it, explaining what it is used for, recording the visitor's consent, preventing code from running before that consent exists, and making sure backend behavior follows the same decision. Liferay has...

thumbnail

Liferay's documentation does a good job of explaining how to turn ModSecurity on, how to provide your own configuration, and how to send the audit log to the Liferay Cloud Console. But, as I recently discovered while working with a client, there is a pretty big gap between: ModSecurity is enabled and I can see logs. and: I'm getting the ModSecurity information I actually...

thumbnail

Security scanners are very good at finding things. Run one against a Liferay DXP installation and it will inventory third-party libraries, determine their versions, compare those versions against vulnerability databases such as the NVD, and produce a list of CVEs. Then somebody opens a Liferay Support ticket. We're running version X of library Y. CVE-Z says that version is...

thumbnail

If you've searched for information about OpenID Connect (OIDC) Single Logout (SLO) in Liferay, you've probably come across answers stating that it isn't supported. That answer was accurate for a long time, and it still occasionally appears in support discussions today. Beginning with Liferay DXP 2026.Q1, however, that answer is no longer correct. Liferay now supports the OpenID...

thumbnail

Why This Matters When you update Blade CLI and create a new Liferay Workspace, the generated workspace normally uses the latest Liferay Workspace Gradle plugin. That plugin selects versions for a number of supporting build tools, including the Service Builder plugin. For new projects targeting the latest Liferay release, this is usually what you want. The detail worth paying...

thumbnail

Liferay’s official Tomcat installation guide is a useful starting point, but it is not quite enough for installing Liferay DXP 2026.Q1 on Red Hat JBoss Web Server 6.2.3. The reason is straightforward: JBoss Web Server is Tomcat, but it is Red Hat’s supported Tomcat distribution, and the current Liferay documentation contains a few assumptions that do not line up cleanly with a modern...

thumbnail

I've recently been working on a project to create a Chatbot using AI Hub. Although the documentation at https://learn.liferay.com/w/ai-hub/integrating-ai-hub-with-liferay-dxp is very helpful at completing this task, there are some things that it leaves out. I thought these might be helpful to others, so I thought I'd share them here. 1. The building blocks (quick orientation) When...

thumbnail

A Simple Question A customer recently reached out after experiencing a six-hour outage of their mail server. The outage had nothing to do with Liferay. The platform was healthy. Their application was healthy. Business processes continued to run normally. The problem was that some of those business processes generated emails. Not marketing emails. Not newsletters. ...

thumbnail

Many organizations use centralized logging platforms such as Splunk to aggregate logs from applications, infrastructure, containers, and cloud services. Centralized logging makes it easier to troubleshoot issues, identify trends, create alerts, and correlate events across multiple systems. A common question I hear is: How do I configure Liferay DXP to send logs directly to Splunk? ...

thumbnail

When I started working through the new DXP Free Tier onboarding flow for an upcoming blog post, I stumbled across something that initially looked wrong. After generating my free activation key, I downloaded the activation key file named: activation-key-dxp-production-2026.q2-.xml  At the time, 2026.Q2 had not even been released yet. Naturally, that raised some questions. ...

thumbnail

For years, organizations deploying enterprise platforms have been forced to choose between two extremes. On one side is traditional self-hosting: complete control over infrastructure, networking, and security, but often at the cost of operational complexity. Teams end up manually provisioning environments, maintaining deployment pipelines, handling scaling strategies, coordinating...

thumbnail

For the last couple of years, most AI conversations around enterprise platforms have focused on content generation, chatbots, summaries, and assistants. Useful? Absolutely. But those use cases still largely leave the actual construction of digital experiences in human hands. That’s starting to change. I recently got an early look at a new capability being developed around...

thumbnail

If you’ve been following Liferay for the last few years, you should have noticed the continuing and increasing focus on low-code and no-code capabilities in the platform. Features like Objects, Fragments, and Client Extensions aren’t just side tools anymore, they’re becoming a core part of how solutions are built on the platform. They’re faster. They reduce complexity. And in many cases,...

thumbnail

You might have seen the 2026.Q1.0 breaking changes documentation or even the MAINTENANCE labels in the UI when using 2026.Q1.0 and navigating through Asset Libraries, Web Content, or Documents and Media and wondered what this actually means. Does it mean you have to migrate?   Is there a migration path defined?   Is your platform going to stop working?   What should you do now? ...

thumbnail

Today we released Liferay DXP 2025.Q1.22-LTS. If you are currently running: - 2025.Q1.20-LTS   - 2025.Q1.21-LTS   You should update to 2025.Q1.22-LTS as soon as possible. Why the Urgency? The 2025.Q1.21 release (which was meant to fix problems in Q1.20) was pulled due to issues identified in both: Liferay Commerce Liferay Objects These issues have been...

thumbnail

A recent TechCrunch article described what some are calling the "SaaSpocalypse," with one investor arguing: "The barriers to entry for creating software are so low now thanks to coding agents, that the build versus buy decision is shifting toward build in so many cases." That's not an unreasonable claim. AI coding agents are improving rapidly. The cost of...

thumbnail

A community member recently asked for the easiest way to call Liferay Headless APIs from Java without generating a REST client or making outbound HTTP calls. The answer is surprisingly simple: Liferay already does this internally for FreeMarker templates via the restClient helper. In this post, we’ll walk through how that works, starting with RESTClientTemplateContextContributor, and then build...

thumbnail

Every two weeks, I host an “Ask Me Anything” session for the Liferay community. And every two weeks, I’m reminded of something: The people who show up get real value. The people who don’t… are often the ones who need it most. Let’s talk about that. What the AMA Actually Is This isn’t a webinar. It’s not a presentation. There are no slides. It’s an...

thumbnail

I recently ran into an issue that's easy to reproduce and surprisingly confusing the first time you see it. I had a Liferay workspace that was working perfectly. It included both Service Builder and REST Builder modules. The workspace plugin version was 13.1.0, and the target platform was 2025.Q1.20. Everything compiled cleanly. Life was good. Then I decided to upgrade the workspace...

thumbnail

Why (and How) to Contribute to the Liferay Marketplace If you've built reusable solutions for Liferay (modules, fragments, client extensions, object models) and they're sitting in private repositories or being copied from project to project, you might be overlooking something important. The Liferay Marketplace isn't just a download site. It's the official platform where apps and...

thumbnail

This blog started with this slide from Hanna Ilén at SKO 2026:   It shows the paths and all of the courses that we delivered last year in one slide. Practitioners. Application Developers. Content Managers. Frontend Developers. Commerce Administrators. Each path builds real capability, not just feature familiarity. Wondering about the paths, the courses, and where they...

thumbnail

The key is version alignment. The smoothest path starts by upgrading your CE environment to 7.4.3.132, the latest available CE release. This positions you as close as possible to the DXP codebase and minimizes upgrade complexity. From there, we target DXP 2025.Q1.22-lts. This version is: The closest match to CE 7.4.3.132 The Long Term Support (LTS) release for 2025 The...

thumbnail

Great news for everyone who attended (or wished they could attend) Liferay DevCon 2025: the full set of recorded sessions is now live on YouTube! You can watch them all here: https://www.youtube.com/playlist?list=PLKb_gn-WO_Ko0-26UHbQGFYjXy6isAIMN This playlist includes every session that was captured during the conference. Many of the recordings include a picture-in-picture view of...

thumbnail

If you’re building headless APIs with REST Builder on Liferay 2025.Q3 or newer, there’s one small configuration detail that can cause big headaches if you miss it. In your rest-config.yaml, you must declare that your API should use the Jakarta namespace. If you don’t, REST Builder defaults to javax, and the generated code won’t match the runtime environment—leading to confusing...

thumbnail

At Liferay DevCon today, someone asked me a great question: “How do you develop and test a local custom element (a standard Web Component) while still using the Liferay JS global object?” We talked it through, and I hinted I’d get a blog post up about it. Since I’m sure others will hit this same challenge… here we go. Good news: it’s easier than you might...

thumbnail

Day 2 of Liferay DevCon 2025 has wrapped, but my favorite day is still ahead: the UnConference. Once again, my good friend Olaf will be running it; if you’ve never experienced an UnConference before, it’s something truly unique. For those who don’t know what an UnConference is, think of it as the anti-conference: No pre-set agenda. No scheduled workshops. No rigid...

thumbnail

Today at Liferay DevCon 2025, I had the opportunity to watch two live demos showcasing the brand-new Liferay + Camunda partnership, and they were genuinely impressive. The demos showed not only the technical integration points, but also how AI-infused process orchestration can transform onboarding, customer service, financial workflows, and more. I captured several photos ...

thumbnail

Introduction If you’ve been following Liferay’s recent messaging, you’ve probably heard a strong emphasis on avoiding customizations and building with client extensions instead. That’s not an accident. There are very good reasons why client extensions have become the centerpiece of our story. Client extensions live outside of Liferay. That means they don’t alter the...

thumbnail

I’m excited to share some great news: the Liferay DXP Bug Bounty Program is now open to the public! My colleague and friend Zsolt Balogh announced this recently, and I couldn’t agree more about how important this step is for our community. We’ve run a private program for a few years, but like many closed initiatives, the flow of new discoveries slowed over time. By going...

thumbnail

Introduction The Content Signals Policy is a new initiative from Cloudflare, published at contentsignals.org. It extends the familiar robots.txt file so site owners can declare how their content may be used: search: allow content to be indexed and shown in search results. ai-input: allow content to be used as real-time inputs to AI...

thumbnail

Introduction One of the first things new administrators notice when they get into Liferay is just how many different ways there are to group users. You’ll find Accounts, Organizations, Sites, User Groups, Asset Libraries, Segments, and Teams all sitting there in the menus. And then, layered on top, you’ve got roles to assign. It’s no wonder folks stop and ask: Which one do I...

thumbnail

A long time connection of mine recently asked on the community slack: Do you know how we can force maven central to update the Liferay artifacts? Example here : https://mvnrepository.com/artifact/com.liferay.portal/release.dxp.bom We see no new version since 1 month. We are waiting for 2025.q1.16 and 2025.q1.17... My client has a proxy for...

thumbnail

Introduction Since Liferay has published https://learn.liferay.com/w/dxp/development/tooling/liferay-workspace/upgrading-to-jakarta, I think that means it's okay for me to blog about it. In my first blog about the Jakarta upgrade for Q3, I mentioned that there were going to be tool(s) from Liferay to help with the changes, and the linked page has the current details for...

thumbnail

Between major versions of Liferay, the internal structure of Service Builder (SB) modules can change—sometimes subtly, sometimes significantly. These changes might affect how services are implemented, extended, or referenced, and can easily break existing SB modules during an upgrade. As developers, we often hope that a simple update to gradle.properties is enough. Change the ...

thumbnail

Introduction My blog/project ideas typically come from client and community questions about how to do something in Liferay. However, in this case, I was inspired by a recent post on SlashDot about a fascinating project called Anubis. I headed over to their website, anubis.techaro.lol, to learn more about how it protects web content from being scraped by AI bots. The...

thumbnail

Introduction Internationalization (I18N) has always been a foundational concern for global enterprise platforms like Liferay. From its earliest days, Liferay provided a robust mechanism for translating user interfaces through the use of language keys, properties files, and convenient utilities embedded right within JSPs and portal JavaScript. Most notably, the...

thumbnail

Okay, okay—there aren’t actually falling rocks. But if you’re a developer working with Liferay DXP, especially as we approach the 2025.Q3 release, it might feel like you’re dodging debris. That’s because we’re knee-deep in a major renovation: the move from Java EE to Jakarta EE. And let me tell you, the changes are real. Package names, dependencies, taglibs (TLDs), build ...

thumbnail

If you’ve ever heard me talk about building single-page apps inside Liferay, chances are good you’ve also heard me discourage the use of things like React’s <HashRouter>. It’s not that I have anything against hash routing in general — in fact, it works quite well for many standalone apps. But the problem is that Liferay owns the address bar. That means when multiple apps try to...

thumbnail

So recently I was working with a client, they were asking about a problem they were having. I started with my typical first question which is "What version of Liferay are you using?" Their response: We're on 2025.Q1.0 LTS. Which is great, they're right where they need to be, almost. My goto line in this case (I think it might also be Support's goto line,...

thumbnail

Just a short one today... So like every few months I either encounter a build error from RESTBuilder code, or someone asks me about it... Basically after generating RESTBuilder code, when you try to build, you hit an error like: BaseEventEntryResourceImpl.java:274: error: no suitable method found for ...

thumbnail

Introduction So anyone who knows me can tell you that I'm a huge fan of Custom Elements, especially when used with Liferay Objects. I prefer to use React for creating the front end and Objects for the persistence layer and, if necessary, some backend CX to complete the picture with integration, notification, and other types of automated requirements. Using these...

thumbnail

Introduction On March 18th, 2025, Liferay sent an email to clients and partners outlining the roadmap for migrating from Java EE to Jakarta EE that is coming in the 2025.Q3 release. It’s a necessary step Liferay has to take to be compatible with the latest versions of the supported application servers, and there’s lots of benefits that will come with this change… ...

thumbnail

So this is just a quick post inspired by an answer my friend Evan Thibodeau posted to a Liferay Community Slack question: Hi, how to develop admin applications (i.e. the ones that can be added and accessed in control panel or applications menu) without using osgi modules? I didn't think this was possible and replied as such... But Evan knew this was...

thumbnail

Introduction In my first post, Goodbye MySQL, Hello PostgreSQL, I shared that after a lot of practical research, Liferay had decided to move their cloud platforms off of MySQL and onto PostgreSQL for performance reasons. I also indicated that Liferay was working on tooling to support this migration, but at the time it was not available so that's all I wrote about it. ...

thumbnail

So I wasn't planning on writing this blog today, but it is hitting a lot of people and I'm sure there's going to be a slew of reported issues on this, so I felt I should get the word out... If you are doing a build that involves the Liferay JS npm bundler, you may get errors such as: node:internal/fs/utils:344 throw err; ^ Error: ENOENT: no such file or directory,...

thumbnail

A real quick one today so everyone is aware. The next releases of Liferay, DXP 2025.Q1 and CE GA 134, will be built using JDK 17. This means that JDKs 8 and 11 will not be an option at all. You'll get class version exceptions at startup if you try using the JDK8 or JDK11 runtimes. The only option is going to be using the JDK17 or JDK21 runtimes. This will apply to...

thumbnail

Well, we've done it! We've updated finally from React 16 to React 18 at the portal level. In DXP 2025.Q1 and CE GA 134*, Liferay is no longer going to be based on React 16. This is significant since React 16 was first released in 2017, so we were pretty far behind on an update there. Granted React 18 was released in 2022, so it's really only about 2 years behind, but there was...

thumbnail

Just a quick one today... So I'm working on some Client Extensions and wanted to see the impact that deployment would have across virtual instances. FWIW, CX are only supposed to affect the virtual instance they are deployed to. But, normally to access different virtual instances, you need different virtual hosts (domain names) in order to access the different...

thumbnail

Introduction For a long time now Private Pages have been deprecated by Liferay... From a platform perspective, they are really a pain. A site can be made up of two different kinds of pages, public and private, they [potentially] have different host urls, but generally they are confusing to new Liferay adopters (we often hear questions like "What's the difference...

thumbnail

So this past summer a number of my Office Hours sessions had to be cancelled. All I really said at the time was that I was sorry about cancelling the sessions and that I was busy traveling. And you should know, both of these statements were true. But I didn't really explain why I was traveling... So, here it is - Liferay is getting back in the Liferay Training business....

thumbnail

Many weeks ago I blogged about how I could no longer add images to blogs and this was preventing me from publishing some entries I had which needed screen shots... We have since fixed that issue, but I'm not sure I shared what happened. As it turns out, on liferay.dev we were following security best practices by creating and configuring a Role with necessary permissions,...

thumbnail

Just a quick one today that will hopefully save you some time if you hit this yourself... I'm updating a workspace to use JDK-21 (it was previously working fine w/ JDK-11). When I started Tomcat, I immediately got an error: 10-Oct-2024 15:36:08.783 SEVERE [main] org.apache.catalina.startup.HostConfig. deployDescriptor Error deploying deployment descriptor ...

thumbnail

Introduction Goodbye MySQL? No, don't worry, Liferay isn't dropping support for MySQL, don't start panicking just yet. Liferay has been transitioning new PaaS and new/existing SaaS systems from MySQL to PostgreSQL 16, so the cloud-based systems are saying goodbye to MySQL and saying hello to PostgreSQL... This blog post isn't really about announcing the change, I ...

thumbnail

My good friend Andrew Jardine has started upgrading his Mastering Liferay site, currently on 7.1, and he's going to be upgrading it to the latest 7.4. However, he recently was blessed with a new M3 MacBook and, when he was trying to build his 7.1 workspace, he was hit with an error: Exception in thread "main" java.lang.UnsatisfiedLinkError:   ...

thumbnail

Recently I was helping a client who seemed be under a DDOS attack... Analysis of traffic showed a large number of incoming requests that seemed to be doing searches for various expected keywords. And there were a lot of these requests. Since they were doing searches, this of course had an impact on their Liferay system, slowing response times, reducing platform capacity, and...

thumbnail

Introduction As evidenced by my recent blogs, I'm still on a React Custom Element Client Extension tear... I think this is the best way to develop custom solutions on Liferay because they are free from the Liferay upgrade cycle, so effectively I'm writing these solutions once and I'm done. As you start building out multiple custom elements though, you'll quickly find...

thumbnail

Everyone loves a bug bounty program, right? Well I want to launch an unofficial bug bounty program today! What are we looking for? Bugs related to performing builds using JDK17 and/or JDK21. So anything related to dev tools, such as Blade, the IDE plugins, the Liferay Workspace/Gradle, Maven plugins, the various workspace plugins like ServiceBuilder,...

thumbnail

If you're looking for the simplified process, you can skip ahead by clicking here. Introduction Lately my focus has been on development of React applications consuming Liferay Headless APIs. When you only need to invoke a couple of endpoints, i.e. you're accessing a single Object endpoint and using GET, PATCH, POST, PUT and DELETE methods you end up writing some...

thumbnail

Introduction So I've been a developer for a long time (longer than I care to admit). When I started, being a developer actually meant you had to wear many hats, one of which has included database administration and object modeling. When modeling in a database, there's different approaches obviously, but for OLTP applications (Online Transaction Processing), it is common...

thumbnail

Happy Friday! Short blog post today since I've just found out that the Liferay IDE and the Liferay Developer Studio (LDS) have both been updated! https://github.com/liferay/liferay-ide/releases/tag/3.10.1 The updates basically update the built-in Blade version used by both IDEs, so this effectively enables both of the IDEs to target and use the Liferay Quarterly...

thumbnail

Introduction So we have a public repo we've been using to train developers on Liferay, but we're using HSQL. We did this on purpose because we couldn't guarantee that developers would have a common local database with necessary permissions to reset, overwrite, etc. For a lot of reasons, using HSQL made a lot of sense. Except for one - Liferay upgrades. You see,...

thumbnail

A short blog post for today... I haven't apparently been blogging much in the last two months. Except that's not really true. I have 5 blog posts that have been waiting to be published that I can't publish. I've hinted about this already, that I have not been able to add images to my blog posts since an update was applied recently. We have been working with Liferay...

thumbnail

Introduction So Liferay has released Liferay DXP 7.4 2024 Q2 and Liferay CE 2024 GA 120, but along with this came a bunch of other updates that affect developers. These include: Blade 7.0.0 Gradle 8.5 Liferay Workspace Plugin 10.1.x JDK 17/JDK 21 That's a lot of changes, so let's talk about them... Blade 7.0.0 For those that don't know,...

thumbnail

Just a short one today... I happened to be researching Object Validations and I saw an interesting note posted here: https://learn.liferay.com/w/dxp/liferay-development/objects/creating-and-managing-objects/validations/adding-field-validations#using-groovy-validations To quote (in case the content gets changed): IMPORTANT As of DXP 2024.Q2/Portal 7.4 GA120,...

thumbnail

So I was starting a new workspace yesterday, issued my normal command: $ blade init projectname Error: The command init is missing required parameters. The following option is required: [-v | --liferay-version] The Liferay product to target. Typing "more" will show all product versions. 1: dxp-2024.q1.6 2: dxp-2023.q4.9 3: portal-7.4-ga112 4: dxp-2023.q3.9 5: dxp-7.3-u36 6:...

thumbnail

Liferay is busy working on updating the Node version used by the Gradle plugins in the Gradle Workspace from Node 16.13.0 (or 16.15.1 depending upon where you look) to Node 20.12.2. I'm told that this update is only supposed to apply to new versions of Liferay greater than GA117 and U117 (which means the upcoming 2024.Q2 release and later). I'm also told that it only...

thumbnail

In my last blog, Creating a React Client Extension, I basically built a React-based SPA that was hosted on Liferay. And I got to thinking that we really aren't sharing just how great Liferay is to host Javascript-based SPAs in any framework, be it React, Angular, Vue.js or others. So I thought I'd take some time to share with Javascript developers some reasons why you...

thumbnail

Introduction I was recently asked whether it is possible to migrate from HCL DX™ to Liferay DXP. I think the expected response was "no", because they seemed shocked when I said it was possible. Let's ride along with Mr. Peabody and Sherman in the Wayback Machine to review some history and understand why migration is possible... Set the Wayback Machine for...

thumbnail

Introduction In my recent blog, Introduction to Liferay Objects, I used Objects and Liferay OOTB facilities to have a list of Course Registrations and UI interfaces for submitting a new Course Registration, listing them, and for admin users the ability to approve or deny them. It worked well, but it didn't handle maybe some expected requirements. For example, the...

thumbnail

Just a quick post today to highlight the Liferay Circles of Success Meetups! It’s a meetup group hosted by my friends and Liferay experts, Andrew Jardine, Chris Mount, JR Houn and Eddie Chow. They have upcoming sessions on migrating to React widgets and Liferay Auditing. I'm sure there will be more future sessions to cover a range of Liferay topics! Join the group...

thumbnail

Introduction So I've been working on my Objects Rule! series and have been working on an app I plan on showing off soon, but I realized that there is probably a gap explaining, well, how do you get started? I mean, it's one thing to go and check the client extensions sample repo here: https://github.com/liferay/liferay-portal/tree/master/workspaces/liferay-sample-workspace,...

thumbnail

Introduction I recently advocated for the demise of the specialized Liferay IDEs/IDE Plugins. Advocating for them to be decommissioned is one thing, but sharing how you can live without them can be another thing... So I thought I'd blog about how you can use a vanilla, off the shelf version of Eclipse/Intellij along with Blade & Gradle to accomplish similar...

thumbnail

History of the Liferay IDEs I first started developing for Liferay version 4.2.3. Back then, we used what was called the "extension environment" to handle Liferay customization. This was an Ant-based environment with fairly complicated build scripts that was responsible for building the deployable Liferay. And we were building portlets per the portlet...

thumbnail

I have to start with an apology. I'm publishing this blog early because parts are ready to go now but some parts are not yet ready. I felt it was too important to hold off waiting for the final parts to be ready before publishing... This will be a living blog post, it will get updates on it as soon as I hear something different, but in the mean time the content that is here is...

thumbnail

Hey, so in my blog last week, I indicated that I had the following in my portal-ext.properties file: session.timeout=15 session.timeout.auto.extend=true session.timeout.warning=0 session.timeout.auto.extend.offset=300 As I was writing the blog and flipping back and forth from the post to the browser where I was building stuff, some times I was still being logged out. ...

thumbnail

Introduction In a recent blog, Intro to Liferay Objects, I created a new application for the Masterclass site for submitting and approving course registrations entirely using OOTB features of Liferay, specifically Objects for the data store, and Fragments for the presentation (form fragments and collection display fragments and Masterclass fragments). This approach...

thumbnail

Introduction Wow, I've blogged about Liferay Objects a lot lately. Talked about them too. Also am working on developing materials for learn.liferay.com about Objects. But one thing I haven't seen is an introduction to objects suitable for long-time Liferay users or new Liferay users, so I thought I'd take time to write one (since my blog ideas well seems to be...

thumbnail

DEVCON 2024 is happening! Dates: 11-14 November 11 Nov: Welcome Evening Reception - 7:00 pm - 10:00pm 12 Nov: 9:00am - 5:30pm 13 Nov: 9:00am - 5:30pm, Party Night starting at 7.30pm 14 Nov: Unconference - 9:30am - 5:00pm Venue: Akvarium Klub - Budapest, Hungary Get a chance to come to DEVCON by submitting your proposal! As...

thumbnail

Liferay released Liferay DXP 2024.Q1 this week, and in the corresponding release notes, you'll find the following nugget. Just search for "Java JDK 11 Runtime" to find in the notes, but here's the text for it: Support for Java JDK 11 is flagged for deprecation as of Q1.2024. As DXP continues to evolve as a platform to deliver powerful solutions, we are planning...

thumbnail

In case you missed it, Liferay has announced the deprecation of Websphere for Liferay DXP 7.4. The official announcement was made here: https://support.liferay.com/release-notes/2023-q4, scroll down near the bottom to the Feature Status Change section or just search the page for WebSphere and you'll find the reference. Additionally, there's a note on the 7.4 Compatibility...

thumbnail

If you've recently been looking for the Liferay Certifications, tried to find the materials or register to take a certification exam, you may have found that they are no longer where they used to be. In the near future Liferay will be unveiling and launching a new Enablement and Certification program that will be a major step forward in delivering concrete enablement for our...

thumbnail

Introduction I was recently in a meeting reviewing some FreeMarker templates that were extracting web contents using a structure, parsing and processing the data, and rendering an output. Basically the implementation was kind of the classic or "legacy" way of doing specialized presentation of structured contents in Liferay. In this case they had a Carousel...

thumbnail

So this has come up a couple of times recently, so after some research I thought I'd share the news. In 7.4, built-in support for ClamAV has been removed, and Liferay has no current plans on restoring that functionality. If you have upgraded from a previous version and you were using ClamAV, you may not be aware that your antivirus scanning actually has not been happening as...

thumbnail

Introduction Recently my friend and coworker Andrew Jardine and I were together in Rome for a Liferay Partner event where we were part of a round table discussion about all things Liferay. Even before the session, Andrew and I had already picked up our friendly argument about Staging (me) versus Publications (Andrew) and which one is better. For us it has always been...

thumbnail

Introduction This post originated from a couple of different client questions... First was a seemingly simple question from a client: How do I use Service Builder to connect to an external database that has a double for the primary key? Unfortunately the only answer for this is you can't. Service Builder only allows Strings, Ints and Longs as primary keys, and...

thumbnail

Introduction So I was recently working with a team that was completing an upgrade assessment for a client wanting to upgrade from 7.2 to 7.4. A big chunk of the work in upgrading the client was going to be taken upgrading the themes. The client had one primary theme which contained the common style rules, but they also had 8 "child" themes, based upon the primary,...

thumbnail

Introduction A community member recently posted a question about how to make their component wait. I of course pointed them at my Power of Patience blog which I have been using for years now to wait for the portal to be ready. They came back and said it didn't work, which seemed quite odd to me because I and many others have been very successful with it. After...

thumbnail

So just a quick one today about an issue that I helped a coworker with. A client had reported that after they restarted Liferay, they had to redeploy their custom module that had a replacement @Component for one of Liferay's components, otherwise the custom component would not work. I replied back, "Oh, they just need to blocklist the Liferay component so their custom...

thumbnail

Introduction So I kind of have a "famous" blog post on Liferay Scheduled Tasks: https://liferay.dev/blogs/-/blogs/liferay-7-ce-liferay-dxp-scheduled-tasks. I say "famous" because it has been used by many folks to create scheduled tasks for Liferay 7, but it has also been the source of some bugs (i.e. undeploying from a cluster could cancel a job ...

thumbnail

Introduction In today's Office Hours session, the first question out of the gate was "If I'm using OpenID Connect for SSO, how can I synchronize UserGroup membership?". And, well, I just didn't know, but I said that I'd find out and then write a blog post to share the details, figuring that others doing OIDC may face similar sorts of concerns. I thought that...

thumbnail

Introduction Recently I was pulled into a client project that was created for Liferay 7.4 and they needed to share content, structures, templates, documents, etc with multiple sites. Then I found out that they had done this the old way using the Global Site, and I was like "No No No, we have to fix this, we have to use Asset Libraries!" And everyone just...

thumbnail

Introduction So recently I was helping a client eliminate some FreeMarker from their site. As many who have read my blogs, I'm a quick one to call out "FreeMarker Abuse!" when I find that folks are doing things in FM that Liferay never intended (i.e. making any additional service calls). Liferay's intent with supporting FreeMarker is that you are just...

thumbnail

Introduction So recently I wrote the blog, Gradle 7 is here! Yay? where I showed how to update your workspace to Gradle 7.3.3, and I just kind of stopped there. I mean, I kind of assumed that as developers we might just be interested in having our toolchains up to date (we all know how infosec teams react when they find out we're using outdated tools). So other than...

thumbnail

Introduction It started with a simple Liferay Community Slack post by Pierre Beule: Hello, I am using pretty standard Liferay stuff to generate a Liferay configuration (let's say a GROUP scoped configuration for instance). package com.test; import aQute.bnd.annotation.metatype.Meta; import ...

thumbnail

Just a quick post today about the new Blade 5.0 release... It's out now, and you can update your local Blade using the blade update command. This new release supports JDK 11.0.20+ (so you don't have to manually massage your settings.gradle files to support it), plus for new workspaces it will use Gradle 7 (7.3.3) as well as the latest workspace plugin versions. For...

thumbnail

Introduction So for some time now, Liferay builds have been stuck on Gradle 6. Which, you know, is 2 releases behind the currently available Gradle 8... But, after a lot of work, Liferay is ready to release support for Gradle 7. Gradle 7? Yes, that's right, I wrote Gradle 7, not Gradle 8. Apparently the release of Gradle 8 occurred some time after the...

thumbnail

Introduction So if you really want to set off a firestorm with geeks like myself, step into the group and say "VI is better than Emacs!" Be sure to turn and walk away quickly or you might find yourself included in the tussle. Another way to set off a firestorm is to mention ChatGPT. Some like it, some hate it. I'm not really going to cover whether it is...

thumbnail

NOTE: Please read to the end of the blog, there are important updates that affect developers, don't just stop at the conclusion... Introduction So, the various flavors of Java have just released the shiny new version, 11.0.20. Like many, I'm sure, I tried to start up Liferay with this new JDK and hit an exception at startup: Caused by:...

thumbnail

Introduction Recently I've been helping folks on the community slack and forums who have faced a common issue. At startup, they reach an exception, java.lang.IllegalStateException: Unable to get default company ID and then everything grinds to a halt. One thing they all have in common is they are using either 7.4 CE GA77 or later or 7.4 DXP U77 or later. ...

thumbnail

So Devcon is coming to Portugal this year, and I look forward to seeing everyone there! However, Liferay isn't planning a North American event, so I'm wondering if maybe a community-based NA event might be something to consider? We could pick a travel location convenient to all (i.e. maybe St Louis). For format, we could do some planned presentations, adopt an unconference...

thumbnail

Introduction So I'm going to be putting together a series of blogs on new things that are available in Liferay 7.4, but I realized after starting a blog on Objects that I need to take a step back and instead start with what Liferay calls DSLQuery... DSLQuery is really an acronym for Domain Specific Language Query, because the foundation is based upon using a domain ...

thumbnail

Another short one today, this one is due to something shared with me by my good friend Olaf Kock... It starts with a question - do you like waffles? Or, more specifically, do you like the Liferay Waffle Menu? It starts with the little waffle icon:  And from there, you get to your Applications menu: Or even your Control Panel: I do like the waffle...

thumbnail

Another quick one today... So when you start your brand spanking new Liferay environment, you will automatically get your test@liferay.com administrator account (or test@<your company email here> if you've set up the company.default.web.id and/or company.default.virtual.host.mail.domain property keys before first launch, or <your admin>@<your company...

thumbnail

So just a quick blog post today... I was working with Support where they were trying to help a client that had a failed U64 bundle upgrade in Production and we were trying to understand what the failure was and help the client complete the upgrade. Then my friend Christopher Lui happened to mention: the odd thing is that this customer upgraded their Dev ...

thumbnail

Introduction Recently there have been a bunch of questions lately in Slack, in Ask, and even in Liferay Support tickets complaining about the time it takes to log into Liferay and what can be done to improve performance, specifically targeting the hash algorithms... TL;DR - Liferay has increased the rounds on the PBKDF2 hash which is detrimental to your ...

thumbnail

Just a quick one today... A community member reported getting an exception during module deployment: INFO [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][AutoDeployDir:238] Processing com.liferay.report.jar ERROR [fileinstall-directory-watcher][DirectoryWatcher:1195] Unable to start bundle: ...

thumbnail

Introduction You may have seen my blog Setting Up JNDI in Liferay 7.4 which I posted to explain how to do a JNDI lookup. The code works, I assure you, but there's one group of developers that blog didn't serve: Spring Portlet Developers. Whether you are developing using PortletMVC4Spring and Spring 5, or you are developing using Spring Portlet MVC under an older ...

thumbnail

Introduction I've been working with a client to upgrade their Spring portlet wars to Liferay 7.4. And the update is kind of big as we're upgrading Spring, changing to PortletMVC4Spring (needed for Spring 5), ... They have a large number of Spring portlet wars, but in reviewing the code I noticed that each of the wars had duplicate Spring services defined into the Spring...

thumbnail

Introduction So my friend Thiago Moreira posted the following (slightly edited) message to our internal Slack: Hey, so I've built a module for 7.4 GA5, but when it is deployed to 7.4 GA16, I get a bunch of "unresolved requirement" exceptions and the module won't be available. Is there something I need to set so my ...

thumbnail

Another quick one this week... A community member reached out and asked for help with a problem on their DXP Cloud site. They were already working with DXP Cloud support, but they had been struggling with the issue for over a week and were trying to get help from all corners... When they accessed their site using the direct URL (an internal URL that all DXP Cloud admins have access to), the...

thumbnail

Just a quick one today... In previous versions of Liferay, if you were browsing a site as a guest but wanted to access a private page or a private site, Liferay would automagically show you the login form so you could authenticate before accessing the page or site. This has been changed in 7.4. It was determined that just by showing the login form, Liferay was ...

thumbnail

Introduction Recently I was asked how to implement MDC and/or NDC in Liferay 7.4, and since I thought it might be interesting to a wider audience, I'm going to blog about it here. Background In a multithreaded, multiuser environment such as in a web application like Liferay, different threads in the container will be handling different requests, but likely each...

thumbnail

Introduction In November of 2018, I authored a blog, Boosting Search. In that blog, I showed how to boost search results for tag matches in an effort to provide some alternative to GSA's KeyMatch support. A lot has changed in Liferay since that blog was posted, and it turns out there are much easier ways now in DXP 7.4 that won't require any code at all... Results...

thumbnail

Introduction I've worked with clients that, for one reason or another, needed to change their database platform. This ask has increased with the move to DXPCloud and MySQL database. I'm not sure there's a well defined plan for how to migrate a Liferay database, so I thought I'd blog about it. Now, if you know anything about me, you know I'm a planner and I create...

thumbnail

Introduction I was recently polling my coworkers looking for new blog ideas, and Filipe Melo asked about Websockets. I haven't seen any other documentation or blogs about building Websocket solutions for Liferay, so I figured this would be an interesting challenge. Websockets was introduced to provide a full duplex and realtime client/server communication path between remote...

thumbnail

Hey, so a quick post today about how to set up JNDI connections in Liferay CE 7.4 or Liferay DXP 7.4. Liferay moved jars around in 7.4. No longer are there key jars in the Tomcat lib/ext directory (or for other application servers). To set up JNDI resources under 7.4, you'll need to put the necessary JDBC jars into the Tomcat lib directory (or the lib directory of your...

thumbnail

Introduction My friend and coworker Eric Chin recently posed a question on our internal slack channels asking if anyone had experience with Liferay's Batch mode and he was not finding enough supporting documentation on it. Although I hadn't yet worked with Liferay Batch, I kind of took it as a challenge to not only give it a try, but more importantly to document it...

thumbnail

Introduction So recently I completed a database upgrade from Liferay EE 6.1 up to Liferay DXP 7.4. It was actually pretty straightforward and I didn't encounter any significant blockers. I did however learn some stuff along the way and I thought I'd share those details here so you will be able to do your next Liferay DB upgrade in the same way. Note that although I'm...

thumbnail

Introduction So I wrote https://liferay.dev/blogs/-/blogs/extending-liferay-osgi-modules five years ago targeting Liferay 7.0. A lot has changed since then. Liferay Gradle Workspace plugin has seen numerous updates. Gradle has seen an update or two as well. Recently when asked to assist a client who wanted to extend Liferay's Journal Article service, I started by...

thumbnail

Hey, all! There's a new zero-day vulnerability hitting the web right now, and it is affecting a lot of libraries and applications out there, including Liferay 7.4. Any app using Log4j2 is vulnerable. If you are using Log4j2 in your customizations or you are using Liferay 7.4 (which now uses Log4j2), this new vulnerability affects you. I'm not going to show anything about...

thumbnail

Recently I started a new "Office Hours" session to occur every other Tuesday at 9am EST/10am EDT (14:00 UTC) and 4pm EST/5pm EDT (21:00 UTC) on a Zoom bridge. Here you can bring questions, ideas, or whatever. Heck, feel free to join and just talk about your Liferay projects if you want. I'll post the Zoom meeting bridge to the Liferay Community Slack, feel free to sign...

thumbnail

Introduction So when you start building your own fragments and using them on your content pages, you will often times run into an issue with propagation... So I like to create fragments for headers and footers and then use those fragments on every page that I build. But when I update those fragments, I have to go into the usages panel to do the propagation so they all...

thumbnail

Introduction I posted two blog posts this week, and each of them had a particular drawback - lack of cluster coordination. The first blog post on cluster-enabled upgrade processes introduced using an @Reference dependency upon a specific Release version, the idea being that the component shouldn't start unless that version was available. When the upgrade process...

thumbnail

Just a quick one... I've just updated my Log Persister project for Liferay 7.3. You can find it under the 7.3 branch: https://github.com/dnebing/log-persist/tree/7.3 For those that aren't aware, I introduced the Log Persister here: https://liferay.dev/blogs/-/blogs/liferay-7-dxp-making-logging-changes-persistent Normally Liferay does not persist logging. If you make any ...

thumbnail

I recently was helping a client with an upgrade process and that had run into a little problem... A few of the model hints were not updated on some of the columns in their Service Builder services and, as we all know, Service Builder will not ensure the columns are changed in a production environment (well, actually any environment where the schema.module.build.auto.upgrade...

thumbnail

A really quick post to share something important with you React + Clay developers out there... A recent update to Clay had a breaking internal change. If after deploying your React portlet and you try to place it on the page and you get errors in the JS console like: liferay-amd-loader | Errors returned from server for require( ["my-module@1.0.0"] ): "Missing...

thumbnail

Introduction In a recent blog I explained how to create a React-based portlet within your Liferay Gradle Workspace by using the js-widget Blade template which in turn uses the Yeoman Liferay JS Generator to create the project. (Wow, that was a mouthful ;-) ) In this way, you can have your Liferay Gradle Workspace take care of building your complete suite of Liferay...

thumbnail

Introduction A client asked me to build a React portlet for them and I was like, "Oh Yeah!" I mean, it's been a while since I built a React portlet and tooling has really changed a lot since then, so I was really looking forward to this new task. So without further ado, I'm just going to dive right in... Creating the Module Okay, so this is still...

thumbnail

Introduction So I was recently asked to help build a custom Liferay docker image for a client and there were some specific requirements such as: Should not contain hard-coded credentials, those will be available as environment variables. Should be a single image that can be used in every environment, DEV, UAT and PROD. Now these kinds of things can be challenging to do if you were to...

thumbnail

Introduction As many folks know, I'm known for telling people not to look inside the Liferay database itself. It's not always clear what is what in the DB and Liferay has a lot of code around retrieving and updating data that you likely will not get completely right if you were to update the DB directly. I typically end with "Always, always use the Liferay API ...

thumbnail

So some time ago I wrote the Cluster Details marketplace plugin. Basically you drop this guy into all of your Liferay clusters and you get a nifty little control panel that tells you details about the cluster, all of the nodes which have joined the cluster and it identifies who the leader of the cluster is at the moment: Not super complicated, but it is a handy little tool to...

thumbnail

Introduction Recently I asked some of my teammates for ideas about what to blog about next. Most of the time I take my inspiration from different clients I work with or questions that come up on the Liferay Community channels, but lately the well has seemed kind of dry. So I went fishing for suggestions. My friend Andrew Betts, who happens to be in the Liferay DXP Cloud (DXPC) team suggested...

thumbnail

Introduction Historically developers have always wanted to be able to control site creation. It's not that Liferay admins are untrusted or anything like that. It is really more the case where setting up a new site can get complicated and the steps to create the site could be quite long. A site may have initial documents, web contents (with structures and templates),...

thumbnail

Introduction Liferay has, for a long time, supported RBAC, the role-based access control. It is, of course, backed by the database so (inheritance aside for the moment) a user will be assigned a list of roles that is mostly fixed or unchanging. To change these role assignments, typically an admin is going to log into Liferay and, using the control panel, add or...

thumbnail

Introduction One of the great advantages I have being known in the community is really the opportunity to meet, talk and work with talented developers and teams. Recently the team at ACSoftware announced in the Liferay Community Slack they were working on a new Liferay development tool, and I was fortunate enough to work with them on evaluation and testing. As it...

thumbnail

Introduction So recently a couple of times I've seen folks ask how to send form data somewhere. Some want to trigger remote web service calls, some want to store the data in a different entity or database, etc. The common answer I give is to use a Tee storage type to persist in Liferay while using as you need, and this is sometimes followed by "um, what was...

thumbnail

Introduction Let me start by saying that I'm a huge fan of Upgrade Processes. I've actually written many blogs about Upgrade Processes or using Upgrade Processes: https://liferay.dev/blogs/-/blogs/old-versus-new https://liferay.dev/blogs/-/blogs/thinking-outside-of-the-box-resources-importer https://liferay.dev/blogs/-/blogs/servicebuilder-and-upgrade-processes ...

thumbnail

Introduction As of yet, there has been no official word that JDK 11 is supported by the Liferay developer tools. Just like the old delays going from JDK 7 to JDK 8, various third party tools and libraries held up the switch to JDK 11. Up until now, some developers had luck using JDK 11, but there were lingering issues with some tools such as Service Builder which could get in the way. In...

thumbnail

What is the Mega-Jar? So the Liferay Dev Tools team recently included a new feature that they refer to as a "fat" jar, but I'm giving it the name Mega-Jar! This is a new single dependency that you can use in your Maven pom.xmls and Gradle build.gradle files, replacing all of the atomic dependencies with a single "one Mega-Jar to rule them all" dependency. So basically your...

thumbnail

A community member posted the following plea on the Liferay Community Slack channel. I feel that it makes a great example, so I'm including it here. HiI am migrating from Liferay 7.0 to Liferay 7.3 GA6So I followed the below steps for DB migration 1 ./opt/liferay736/bundle/tools/portal-tools-db-upgrade-client          Inside the directory, I have updated...

thumbnail

About a year ago, Liferay introduced a new program that I have been actively participating in, Liferay Developer Services. But what is this program? Liferay Support When you are a Liferay DXP customer, you automatically get access to Liferay Support as part of the Subscription Services. Support is staffed by a great bunch of people that want to help clients resolve ...

thumbnail

One thing that I commonly see Liferay admins doing is changing the user.timezone JVM parameter to their local timezone. I mean, I get why this might seem like a good idea. I only serve users around me who are in the same timezone. I don't like the logs showing the GMT time instead of the local time. I want everything to reflect my particular timezone. When I query the database, it...

thumbnail

Malcolm Gladwell is often misquoted as saying, and I'm paraphrasing here, you need 10,000 hours in a subject to become an expert. It's a phrase many of us have heard, whether attributed to Gladwell or not. Actually what he did imply in his book Outliers: The Story of Success is that you need 10,000 hours in a subject to become a phenom, the expert's expert, the grandmaster in chess or...

thumbnail

Just a quick one today... Liferay stopped releasing Liferay CE/DXP Wildfly bundles after 7.1, so I was recently asked to create a Liferay 7.2 DXP bundle for Wildfly 11. So I followed the instructions posted here: https://help.liferay.com/hc/en-us/articles/360029123751-Installing-Liferay-DXP-on-Wildfly Started the Wildfly bundle and it seemed to come up fine. Navigating to...

thumbnail

Recently I was helping a client who was suffering from performance problems on their site sometimes leading to node instability. After doing a deep dive, I found that most of the problems stemmed from improper connection pool settings. Not that it was the developers faults, per se, but it had more to do with not seeing the whole picture. So I thought I'd share some common...

thumbnail

My friend, Olaf Kock, recently shared with me that he had struggled with and resolved an issue after moving to Tomcat 9.0.31 when using AJP. Update: What maybe we didn't know, Tomcat 9.0.31 (and other versions of Tomcat 6, 7, 8 and 8.5) were all being fixed to address a newly identified attack vector against Tomcat nicknamed...

thumbnail

Just a quick one this morning... So I'm working on a project for 7.1. With my new love of the target platform, I decide I'm going to enable the 7.1 target platform for my DXP project. Everything seems to work fine until I deploy the portlet jar. That's when I get the following during deployment: 2020-02-01 08:40:06.324 ERROR...

thumbnail

Introduction So I get finished which the previous blog, Visiting DynamicQuery, and I shared it with my team. I'm always kind of happy when I get a new blog post done, so I share it with everyone I can think of. The first comment I got was from my friend and teammate, Shane Merriss: Hey Dave, thanks for the blog post, I’ll be able to share it with my client...

thumbnail

Introduction If you've used any Liferay entities or ServiceBuilder custom entities, you've likely run into a situation where you've needed to perform a custom query to get a set of results that are outside of what the normal methods provide. So you've had to use a DynamicQuery in order to make that happen. Or perhaps you've needed to perform batch operations on entities ...

thumbnail

One thing I sometimes see is using a given Liferay feature the wrong way in order to do something. Take delivering content to the right users. Liferay actually has a bunch of ways to accomplish this kind of thing. First we have taxonomy. Using vocabularies, categories and tags, you can apply taxonomy to your assets and then, through an asset publisher or search filter, for...

thumbnail

I did an informal poll on the Liferay community Slack channel recently: I was actually kind of surprised by the majority of votes for the "What is the target platform?" option. So, inspired by the results of the poll, I'm going to answer the question, What is the Target Platform? The Target Platform's Roots So the phrase, "Target...

thumbnail

Classic Liferay Localization Handling Any developer who has been around for awhile will have some knowledge of how Liferay handled localization for the entities... In your service.xml file where you normally just have a column type of String, you would also have an additional attribute set, localized="true". With this addition, your model classes getters and...

thumbnail

So I've been seeing this a lot recently, so I thought I'd do a quick blog about it... With web contents, we can build structures to provide an organized chunk of data, and then we can define a template to render the HTML fragment for that structure. Since the template language of choice is FreeMarker, and since in FreeMarker we have practically the entire Liferay API (and...

thumbnail

Recently when I was working on my custom Headless API blog series, I ran into a bit of trouble with my Service Builder-based persistence tier. My SB code was done and working, and I was adding methods to my CLI tool to test all of the Headless methods. I had the list working, I could add, update and patch Vitamins, and I just finished the delete method testing and I was on cloud...

thumbnail

Introduction I've recently started working on a React SPA to take advantage of the Liferay Headless APIs. I was working through all of my implementation details and was finally ready to start making API calls, but I needed to figure out how to handle authenticated requests. I reached the following point in the documentation,...

thumbnail

If you’ve spent time rummaging around Liferay’s search and indexing documentation provided here , you’ll find a lot of details about document contributors, index writers, search registrars, etc. The part that might be missing is what all of these things actually do, why they are important, and why you actually want to go down the road of supporting indexing and search for...

thumbnail

Introduction Welcome back to my series on using Liferay's REST Builder tool to generate your own Headless APIs! In part 1 of the series, we created a new project and modules, and we started to create the OpenAPI Yaml file defining our headless services by specifying the Reusable Components section. In part 2 of the series, we completed the OpenAPI Yaml file by...

thumbnail

Just a quick post today... So I've been using the Target Platform like all the time now. I don't want to have to worry about versions, especially those Liferay modules that change version numbers on every fix pack... However, I've found that sometimes the version numbers just aren't there. But often I only find this out after I've stripped out the version and tried a...

thumbnail

Introduction In part 1 of this series, we started a project to leverage Liferay's new REST Builder tool for generating Headless APIs. We defined the Reusable Components section, the section where we define our request and response objects, namely the Vitamin component and a copy of Liferay's Creator component. In part 2 of the series, we finished the OpenAPI Yaml...

thumbnail

Introduction In part 1 of this series, we started a project to build our own custom Headless APIs using Liferay's REST Builder tool. The project was started, four modules were created and I presented the Meta and Reusable Components sections from my OpenAPI Yaml file. We're going to pick up where we left off and finish presenting the Paths (endpoints) section and...

thumbnail

Introduction So recently I have been working with Liferay's new Headless APIs... I have a nice React-based SPA leveraging the new headless-delivery and headless-user-admin modules. I'm going to release everything eventually, but some parts just aren't ready yet. The first part is ready, though: using the new REST Builder tool to create your own Headless APIs. ...

thumbnail

Recently I was one of many trying to help a coworker figure out why a Liferay OOTB feature was failing... We had odd stack traces, null object references when OSGi never should have allowed a null to begin with, and nothing we tried would fix the problem. Eventually we found that, for some reason, two different versions of a Liferay bundle had been deployed into the...

thumbnail

So the last couple of days I've been working on a new React Headless app that I'm going to be sharing soon, but for various reasons I've had to refer to the /api/jsonws page to check out the classic APIs there that are still available. Just as a bit of background, I have an awesome 27" iMac that I do all of my development on. I love it so much that I purchased an ...

thumbnail

Whenever I start working with a new client, I always share with them my three rules for effectively working with support: 1. Open tickets as soon as you think you will need Liferay Support. With each new ticket there is sometimes necessary "back and forth" in order to gather necessary contextual details, confirm what is being reported, etc. Opening tickets as...

thumbnail

Just a quick post today... Helped a client who was getting a message in the logs after configuring the SAML SP in Liferay using an ADFS IdP: Caused by: org.opensaml.ws.security.SecurityPolicyException: Inbound message issuer was not authenticated. at org.opensaml.ws.security.provider.MandatoryAuthenticatedMessageRule.evaluate(MandatoryAuthenticatedMessageRule.java:38) ...

thumbnail

Hey, did you know that the Gradle version of the Liferay Workspace now supports building your very own customized Liferay Docker images? Neither did I... I stumbled upon this support in the recent Blade releases. I think at this point in time it might officially be considered as "incubating", but I've given it a spin and feel like it is in good enough shape to start...

thumbnail

The Liferay Workspace comes with a great build option that I'm not sure developers know about and/or use - distribution bundles. When you have your Gradle-based workspace, the simple command gradlew distBundleZip or gradlew distBundleTar can build you a prepackaged Liferay bundle using Liferay CE or DXP, Tomcat, your custom modules as well as your configuration for the targeted...

thumbnail

Okay, so I'm like working on a bigger project that will be a bigger blog sometime soon, but I really need a current Liferay DXP tarball. When I say current, I mean that it must have: The latest version of Tomcat 9 Fixpacks (and possibly hotfixes) applied. As a DXP client, this just won't be available to you for download. Even if you are just using Liferay CE,...

thumbnail

I was recently fishing for topics to build potential sessions for Devcon 2019 (you're going, right? ;-) ) and one community member suggested the topic of Service Trackers. While I'm not sure I could fill a whole session on service trackers, I think I can certainly fill a blog entry about them... What Are Service Trackers The best way I can describe service trackers, well they...

thumbnail

Liferay 7.2 has an updated Service Builder that introduces some changes that we should all be aware of. From a Dependency Injection perspective, not really much is going to change for us when it comes to consuming the services. Just as we did for 7.0 and 7.1, we will still have a member variable in our @Component for a service instance and then @Reference inject it in. As ...

thumbnail

Quite some time ago I was working with a client that had built web service clients as OSGi modules and leveraged JAXB. During load testing, we found that after many hours of heavy use, the Liferay nodes would stop serving traffic and, for all intents and purposes, would die.  Threads would get hung, blocked waiting to load a class from the web service client, and eventually...

thumbnail

As Liferay suggests in https://portal.liferay.dev/docs/7-0/deploy/-/knowledge_base/d/pre-upgrade-speed-up-the-process, you can save significant time in your upgrade process if you take the time to clean out the cruft in your database. Over time, your Liferay database will be loaded with web contents, documents, images, etc. Users have come and gone, but their data remains....

thumbnail

So if you've been monitoring your logs, it is quite possible you're seeing NoSuchLayoutExceptions related to browserconfig.xml. If you are seeing them, it's because your users are running IE 11 and they've just opted to "Pin To Start" for your site (a good thing, I guess). So what's going on? Well, IE11 has this new feature where it can add your site as a tile in the Windows 8...

thumbnail

So recently I got to hang out with board members and officers of the OSGi Alliance, including Liferay's own Ray Auge. A great bunch of folks these guys are; they were easy to talk to and really wanted to help out. Can't wait to do it again, but that's a different story... At one point we were talking about versioning and I was explaining how I version my bundles, but I don't really...

thumbnail

So just a quick post here about your Liferay build chain... It is easy, when you're starting out, to follow the instructions to install the Blade CLI or the Maven artifacts. It is also easy, even after you've been developing for awhile, to "blade init" a new project or "mvn archetype:generate" a new project and write your next great software masterpiece. And while you may know...

thumbnail

Introduction So I'm not sure if you've had the chance to play around with the new Target Platform stuff that Liferay has, but it is really cool. If you haven't read about it or don't know what it is for, let me just summarize quickly: You declare a "dependency" on a Liferay-shipped BOM file, the "bill of materials" file for a project that lists all of the dependencies and...

thumbnail

Liferay has a complete built-in scheduled job service which manages jobs that run on every node as well as single jobs that run in a cluster. Unfortunately there hasn't been a way to gain visibility on those scheduled jobs to see what they are, when they were scheduled, when they have run before and when they will run again. Until today. Now available is the Scheduled Tasks...

thumbnail

The price for TripWire CE and TripWire DXP have been significantly reduced by 90%! TripWire is a control panel that compares each node in a cluster against a baseline. Any time there is a configuration or other change, the administrator will be notified that the cluster is in an inconsistent state and provide details about the inconsistency. This tool can help ensure each node...

thumbnail

So whenever I set up a new Liferay cluster, I get to the end and I ask myself, "How do I know it is working?" My standard test is to connect to a node of the cluster and view a page. Then I connect to another node and change the content the first node is displaying. If I refresh the first node, I know it is working if that node shows the updated content instead of the old content....

thumbnail

Introduction So for the longest time I have been an advocate of Liferay's logging API. Folks have asked how to use Log4J or other frameworks and I've always advised against it. Why? Well, for 3 primary reasons: Liferay uses it. As with all things Liferay, it is always easier to go with flow than it is to fight your way upstream. It can be controlled by the...

thumbnail

Introduction There are a lot of things that Liferay just won't say. They won't tell you what app server to use, won't tell you what framework to use, won't tell you how to deal with your production rollout or your production deployments, etc. There is really a lot of stuff that they won't say, but you don't really get the impression that there are things that aren't said by...

thumbnail

Frameworks. We all use them, some of them we love, some of them we hate, but we use them. There are popular ones like Spring and Hibernate, not so popular ones like Guice and iBatis. Popularity aside, we use frameworks because we [easily] leverage the functionality they bring to the table so we don't have to recreate the wheel. Heck, even Liferay has its framework stuff, not...

thumbnail

Introduction Out of the box, Liferay DXP has fairly limited audit message output targets. In fact, there are only two that are provided: logging them or persisting to the database. Each of these come with their own set of issues. Logging is tough because it is not searchable and hardly usable. Database persistence doesn't have these problems, but the administration and...

thumbnail

Introduction In the earlier days of Liferay, many administrators missed the warning about not using HSQLDB in production. By default, Liferay is configured to use HSQLDB so you can spin up a Liferay instance for development or testing or whatever, but HSQLDB was never to be used in production because it is not a production-ready database. It's easy to set Liferay up to use a...

thumbnail

Introduction For folks that know me, they know one of my favorite soapbox rants is on HTTP and/or Portlet session storage. Recently my friend Kyle Stiemann wrote a blog about Session Storage in Liferay, and he reached out to me to proof the blog post before it was published. While it was really well written and informative, I must admit I didn't want it published. Providing a...

thumbnail

Introduction I have helped many companies and organizations install Liferay (5, 6 and now 7/DXP), but often times they will stop there. I mean, once the app servers are up and serving traffic correctly, aspects like the log file(s) are ignored. Well, at least as long as everything is operating smoothly; when something has gone wrong, the log file(s) is (are) one of the first places...

thumbnail

So we've all seen those @Reference annotations scattered throughout the Liferay code, and it can almost seem like those references are not changeable. In fact, this is not really true at all. The OSGi Configuration Admin service can be used to change the reference binding without touching the code. Let's take a look at a contrived example from...

thumbnail

Introduction When developing JSP-based portlets for OSGi deployment, and even when doing JSP fragment bundle overrides, it is often necessary to get service references in the JSP pages. But OSGi @Reference won't work in the JSP files, so we need ways to expose the services so they can be accessed in the JSPs... Retrieving Services in the JSP So we're going to work this a...

thumbnail

Introduction The official Liferay deployment docs are available here: https://dev.liferay.com/discover/deployment They make it easy for folks new to Liferay to get the system up and running and work through all of the necessary configuration. But it is not the process followed by professionals. I wanted to share the process I use that it might provide an alternative set of instructions...

thumbnail

Introduction A client recently was moving off of Google Search Appliance (GSA) on to Liferay and Elasticsearch. One key aspect of GSA that they relied on though, was KeyMatch. What is KeyMatch? Well, in GSA an administrator can define a list of specific keywords and assign content to them. When a user performs a search that includes one of the specific keywords, the associated...

thumbnail

Introduction So often when discussing how to deal with dependencies, we're often looking for ways to package our third party jars into our custom modules. There's good reason to do this. It ensures that our modules get a version of a third party jar that we've tested with. It also excludes ambiguity over where the dependency will come from, whether it is deployed and available or...

thumbnail

Introduction So those who know me or have worked with me know that I hate theming. I do. I find it to be one of the hardest things in Liferay to get right. I can build modules all day long, but ask me how to make the default buttons increase the height by a couple of pixels and change the color to orange, and I honestly have to start digging through doco and code to figure out...

thumbnail

Just a quick blog in case it hasn't come up before... Liferay was using a CDN for offloading traffic for the repository artifacts. You've likely seen the URL during builds or within your build scripts/configuration. The old one is of the form: https://cdn.lfrs.sl/repository.liferay.com/nexus/content/groups/public/... Recently though Liferay switched to a new CDN...

thumbnail

By request, a blog to explain compile vs compileOnly vs compileInclude... First it is important to understand that these are actually names for various configurations used during the build process, but specifically when it comes to the dependency management. In Maven, these are implemented as scopes. Each time one of these three types are listed in your dependencies {} section, you are adding...

thumbnail

Introduction One of the benefits that you get from an enterprise-class JEE application server is a centralized administration console. Rather than needing to manage nodes individually like you would with Tomcat, the JEE admin console can work on the whole cluster at one time. But, with Liferay 7 CE and Liferay 7 DXP and the deployment of OSGi bundle jars, portlet/theme wars...

thumbnail

From the home office outside of Charleston, South Carolina, here are the top ten reasons to avoid Portlet and HTTP session storage: Number 10 - With sticky sessions, traffic originating from a web address will be sent to the same node, even if other nodes in the cluster have more capacity. You lose some of the advantages of a cluster because you cannot direct traffic to nodes with...

thumbnail

The Ugly In one of the first Liferay projects I ever did, I had a need to have some Roles in the environment. They needed to be there so I knew they were available for a custom portlet to assign when necessary. I was working for an organization that had a structured Software Configuration Management process that was well defined and well enforced. So code deployments were a...

thumbnail

Introduction As I spend more time digging around in the bowels of the Liferay source code, I'm always learning new things. Recently I was digging in the Liferay extenders and thought I would share some of what I found. Extender Pattern So what is this Extender pattern anyway? Maybe you've heard about it related to Liferay's WAB extender or Spring extender or Xyz extender,...

thumbnail

I've been asked a couple of times recently about different aspects of @Modified annotation that I'm not sure have been made clear in the documentation, so I wanted to cover the lifecycle annotations in a little further detail so we can use them effectively. The @Activate, @Deactivate and @Modified annotations are used for lifecycle event notifications for the DS components. They get...

thumbnail

Introduction So many times I have answered the question, "How do I find out what import packages my bundle needs?" with the tired and unsatisfactory response that uses the following process: Build your module. Deploy your module. Use Gogo to see why your bundle doesn't start, often from an Unresolved Requirement on an Import Package. Either ...

thumbnail

A SysAdmin came up to me and said he was having issues starting Liferay DXP 7.0, a bunch of CNFEs were coming up at startup. I found that they were set up to use Wily for monitoring their JVMs, and it was those classes that were generating CNFEs. In general, when you add the -Djavaagent=XXX parameter onto your app server's startup command, you're enabling an agent which will...

thumbnail

TL;DR - Add "-v 7.0" to your Blade command line to create modules for Liferay CE 7.0 and Liferay DXP 7.0. Hey, just a quick blog post here for something that developers may need to know... I updated my Blade command line tool recently (since I use Intellij, I rely on the command line tool quite a bit for new module project creation), but I hadn't started a new module after...

thumbnail

Intro In case you're not aware, Liferay uses Apache PDFBox to look at your PDFs. In order to index the content of a PDF, Liferay uses PDFBox to extract the content and uses that during indexing/searching. However, Liferay tends to fall behind a bit on updating 3rd party libraries. When you favor stability, you tend to be rather conservative when considering updates like...

thumbnail

Just a quick blog, likely one that I would want to add to over time... Cluster Notes When setting up a Liferay cluster for SAML, before enabling you should connect to each node and, in the SAML Config control panel, create the certificate. Do this on all nodes before enabling SAML in the cluster. If you don't, some nodes will work but others will generate...

thumbnail

When you are upgrading to DXP on SQL Server, it is recommended to set the following property in the portal-upgrade-ext.properties file: verify.process.concurrency.threshold=10000 Otherwise you can encounter issues during the upgrade related to schema changes after cursor opens, etc. This can hit you during the verification of audited models or resource permissions,...

thumbnail

Introduction So in any production system, there is typically a desire to capture metrics, use them to define a system health check, and then monitor the health check results from an APM tool to preemptively notify administrators of problems. Liferay does not provide this kind of functionality, but it was functionality that I needed for a recent project. Rather than roll my...

thumbnail

Introduction I have never liked one aspect of Liferay logging - it is not persistent. For example, I can't debug a startup issue unless I get the portal-log4j-ext.xml file set up and out there. Not so much of a big deal as a developer, but as a portal admin if I use the control panel to change logging levels, I don't expect them to be lost just because the node restarts. ...

thumbnail

Introduction Recently I was building a fragment bundle to expose a private package per my blog entry, . In the original bnd.bnd file, I found the following: -dsannotations-options: inherit Not seeing this before, I had to do some research... Inheriting References So I think I just gave it away. When you add the instruction to your bnd.bnd file, the class...

thumbnail

Introduction So once you've been doing some Liferay OSGi development, you'll recognize your component properties stanza, most commonly applied to a typical portlet class: @Component( immediate = true, property = { "com.liferay.portlet.add-default-resource=true", "com.liferay.portlet.display-category=category.hidden", "com.liferay.portlet.layout-cacheable=true", ...

thumbnail

Just a quick blog post to talk about compile time vs runtime dependencies in the OSGi container, inspired by this thread: https://web.liferay.com/community/forums/-/message_boards/view_message/105911739#_19_message_106181351. Basically a developer was able to get Apache POI pulled into a module, but they did so by replicating all of the "optional" directives into the bnd.bnd...

thumbnail

Introduction On a project recently I had a Theme war and, like those themes you can download from the MarketPlace, I also had pages, contents and documents imported by the Resources Importer (RI) as a site template. Which is pretty cool, on its own, so I could deploy the theme and create a new site based on the theme and demo how it looks and works. But I ran into...

thumbnail

This one is for my good friend Milen... Sometimes he frustrates me, but he always forces me to think... Introduction So if you've done any Liferay 7.x CE or DXP development, you may have encountered something similar to the following in your build.gradle: dependencies { compileOnly group: "com.liferay.portal", name: "com.liferay.portal.kernel", version: "2.6.0" ...

thumbnail

Introduction So originally I presented the blog post, Fronting Liferay Tomcat with Apache HTTPd daemon, but that post featured my partiality for using mod_jk to connect HTTPd and Tomcat. Personally I think it is much easier to do the JkMount and JkUnmount mappings to point to Tomcat, plus Liferay sees the original request so when it generates URLs, it can generate them...

thumbnail

A good friend of mine, Minhchau Dang, pointed out to me that I have frequently used OSGi version ranges in my blogs. I explained that I was concerned that I didn't want to bind to a specific version, I often wanted my code to work over a range of versions so I wouldn't have to go back and update my code. He pointed me at the...

thumbnail

So the question comes up how to do Liferay upgrades. I'm not talking here about the technical details of how you upgrade one particular plugin to another type of plugin, what kinds of API changes have to be made, etc. Instead, I'm thinking more about the general process of how to upgrade, what choices you're presented with and what the ramifications are for making certain...

thumbnail

So Jamie just announced the new Liferay 7.1 Community Beta Program here: https://community.liferay.com/news/liferay-7-1-community-beta-program/ I recommend everyone who has working code in Liferay 7.0 or Liferay DXP should join the 7.1 beta sooner rather than later. Why? Well, mostly because Liferay's engineering team is focused on the 7.1 release, so anything that you...

thumbnail

Okay, in case it is not yet clear, Liferay 7 uses an OSGi container. I know what you're thinking: "Well, Duh..." The point is that OSGi is actually a standard and anything that works within OSGi will work within Liferay. You just need to understand the specs to make something of it. For example, I'd like to talk about OSGi Fragment Bundles. There's actually stuff in the...

thumbnail

So I've been working a lot more with Angular 2+ recently (Angular 4 actually, but that is not so important) and wanted to share some of my findings for those of you whom are interested... Accessing the Liferay Javascript Object So TypeScript is sensitive to defined variables, classes, objects, etc.  Which is good when you want to make sure you are building complex apps,...

thumbnail

So, as a developer, I'm like usually whacking my whole runtime environment and starting over. Why? Well, regardless how much I try to keep it clean, cruft will find its way into the environment. I'm left with users I don't want, content I don't want, pages I'm not using any more, sites created to demo something I'm not demoing any more... So I'll throw out my data directory,...

thumbnail

So I've been home for almost a week now after having attended Devcon 2017 in Amsterdam. I have to give a shout out to Pascal Brusset and his entire team for putting on a great event. The venue was great, the sessions were great, and the speakers were great too. I especially want to thank them and all of Liferay for letting me attend and give a presentation, it has been one of the...

thumbnail

So last week I'm sitting in an Unconference session at DevCon in a group talking about OSGi. I don't remember how it came up, but we got on a discussion about deployment issues and someone asked about creating an LPKG file (the format Liferay uses to distribute a single artifact containing many bundles). I explained that it might be possible to create a file, but the problem was that...

thumbnail

A quick note for those using SiteMinder and Liferay... Liferay likes the Tilde (~) character, and uses it quite often for friendly URLs and other reasons. When fronting with SiteMinder, though, you may run into return code 500 for URLs with the tilde character in them. This is actually a default SiteMinder configuration thing, SiteMinder treats tilde (and others) as "bad...

thumbnail

Taking a short break from the Vue.js portlet because I had to implement a repository proxy. Since I was implementing it, I wanted to blog about it and give you the option of implementing one too. Next blog post will be back to Vue.js, however... Introduction I love love love Maven repositories. I can distribute a small project w/o all of the dependencies included and trust...

thumbnail

Introduction In part 1 of the blog series, we started a Vue.js portlet based in the Liferay Workspace, but actually there was no JS framework introduced just yet. We're actually going to continue that trend here in part 2, but in this part we're going to tackle some of the important parts that we'll need in our JS portlets to fit them into Liferay. Passing Portlet Instance...

thumbnail

Introduction In Liferay 7 CE / Liferay DXP, there are new facilities in place to help us create JS portlets. In this blog series I'm going to present a new project to demonstrate how to build Vue.js portlets. Vue.js is a lightweight JS framework similar to React or Angular or ... I'm actually picking Vue.js for this series not so much because I think it is better than the...

thumbnail

According to Liferay: Digital Experience Platform (DXP) is an emerging category of enterprise software seeking to meet the needs of companies undergoing digital transformation, with the ultimate goal of providing better customer experiences. The focus here is the customer experience.  Better experiences, regardless of whether they come to you from a...

thumbnail

Just a quick blog today... When you start up LR 7 CE/LR DXP, you'll often see it stop while trying to validate LPKGs. This is a security measure which is used to verify that the LPKG files have not been tampered with. In development, though, this delay is just painful. Fortunately it can be disabled. Add the following line to portal-ext.properties: ...

thumbnail

If you're a Java Architect or Senior Developer, you know just how important the Java access modifiers are. Each choice about what to make public, protected, private or package protected is important from an architectural perspective. If you make the wrong choices you can expose too much of your implementation or not enough, you can give subclasses unlimited ability to change...

thumbnail

So a question came up today how to access the current user as part of a REST method body. My friend, Andre Fabbro, was trying to build out the following application: @ApplicationPath("/myapp") @Component(immediate = true, service = Application.class) public class MyApplication extends Application { @GET @Path("/whoami") @Produces(MediaType.APPLICATION_JSON) ...

thumbnail

So if you've started developing for Liferay 7 CE / Liferay DXP, I'm sure you've been hit at one point or another with the old "unresolved reference" issue that prevents your bundle from starting. You would have seen it by now, the Gogo shell where you list the beans and find your bean there stuck in the Installed state. You try starting it and Gogo tells you about the unresolved...

thumbnail

The one thing I never understood was why the UI behind the /api/jsonws is publicly viewable. I mean, there's lots of arguments for it to be secured: Exposing all of your web service APIs exposes attack vectors to hackers. Security by obscurity is often one of the best and easiest form of security that you can have1. Just because users may have permission to do...

thumbnail

Introduction Today I ran into someone having issues with ServiceBuilder and the creation of UpgradeProcess implementations. The doco is a little bit confusing, so I thought I'd do a quick blog post sharing how the pieces fit... Normal UpgradeProcess Implementations As a reminder, you register UpgradeProcess implementations to support upgrading from, say, 1.0.0 to 2.0.0,...

thumbnail

Introduction When it comes to Liferay performance tuning, there is one golden rule: The more you offload from the application server, the better your performance will be. This applies to all aspects of Liferay. Using Solr/Elastic is always better than using the embedded Lucene. While PDFBox works, you get better performance by offloading that work to ImageMagick...

thumbnail

So I have a blog I created a long time ago dealing w/ Liferay and SSL. The foundation of that blog post was my Fronting Liferay Tomcat with Apache HTTPd post and added terminating SSL at HTTPd and configuring the Liferay instance running under Tomcat to use HTTPS for all of the communication. If you tear into the second post, you'll find that I was using the AJP connector to...

thumbnail

In case you aren't aware, Liferay 7 CE and Liferay DXP default to using Hikari CP for the connection pools. Why?  Well here's a pretty good reason: Hikari just kicks the pants of any other connection pool implementation. So Liferay is using Hikari CP, and you should too. I know what you're thinking.  It's something along the lines of: But Dave, we're...

thumbnail

For the last few months as I've been working with Liferay 7 CE / Liferay DXP, I've been a little stymied trying to manage the complexities of the new OSGi universe. In Liferay 6.x, for example, an OOTB demo setup of Liferay comes with like 5 or 6 war files.  And when the portal starts up, they all start up. But with Liferay 7 CE and Liferay DXP, there are a lot of bundles...

thumbnail

For those of you deploying Liferay DXP to WebLogic, you will need to add an override property to your portal-ext.properties file to allow the WebLogic JAXB implementation to peer inside the OSGi environment to create proxy instances. I know, it's a mouthful, but it's all pretty darn technical. You'll know if you need this if you start seeing exceptions like: ...

thumbnail

Introduction So I've been working on some new Blade sample projects, and one of those is the Spring MVC portlet example. As pointed to in the Liferay documentation for Spring MVC portlets, these guys need to be built as war files, and the Liferay Workspace will actually help you get this work done. I'm going to share things that I learned while creating the sample which has...

thumbnail

Okay, this is probably going to be one of my shortest blog posts, but it's important. Some releases of Liferay have code to "infer" a portlet name if it is not specified in the component properties.  This actually conflicts with other pieces of code that also try to "infer" what the portlet name is. The problem is that they sometimes have different requirements; in one...

thumbnail

I'm taking a short hiatus from the design pattern series to cover a topic I've heard a lot of questions on lately - migrating 6.2 Service Builder wars to Liferay 7 CE / Liferay DXP. Basically it seems you have two choices: You can keep the Service Builder implementation in a portlet war. Any wars you keep going forward will have access to the service layer, but...

thumbnail

Pattern: Multi-Scoped Data/Logic Intent The intent for this pattern is to support data/logic usage in multiple scopes. Liferay defines the scopes Global, Site and Page, but from a development perspective scope refers to Portal and individual OSGi Modules. Classic data access implementations do not support multi-scope access because of boundaries between the scopes. The...

thumbnail

Introduction So I'm going to start a new type of blog series here covering design patterns in Liferay. As we all know: In software engineering, a software design pattern is a general reusable solution to a commonly occurring problem within a given context in software design. - Wikipedia In Liferay, there are a number of APIs and frameworks used to support...

thumbnail

Recently I was lamenting how I felt that JSP fragment bundles could not introduce new dependencies and therefore the JSP overrides could really not do much more than reorganize or add/remove already supported elements on the page. For me, this is like only 5% of the use cases for a JSP override. I am much more likely to need to add new functionality that the original portlet...

thumbnail

One of the things that I never really used in 6.x was the Liferay upgrade APIs. Sure, I knew about the Release table and stuff, but it just seemed kind of cumbersome to not only to build out your code but on top of that track your release and support an upgrade process on top of all of that. I mean, I'm a busy guy and once this project is done I'm already behind on the next one. ...

thumbnail

In Liferay 6.x, scheduled tasks were kind of easy to implement. I mean, you'd implement a class that implements the Liferay Message Bus's MessageListener interface and then add the details in the <scheduler-entry /> sections in your liferay-portlet.xml file and you'd be off to the races. Well, things are not so simple with Liferay 7 CE / Liferay DXP. In fact, I...

thumbnail

When you start reviewing Liferay 7 CE/Liferay DXP code, you run into a lot of annotations in a lot of different ways.  They can all seem kind of overwhelming when you first happen upon them, so I thought I'd whip up a little reference guide, kind of explaining what the annotations are for and when you might need to use them in your OSGi code. So let's dive right in... ...

thumbnail

Alt Title: Cool things you can do with OSGi Introduction So one thing that many organizations like to stand up in their Liferay environments is a "health check".  The goal is to provide a simple URL that monitoring systems can invoke to verify servers are functioning correctly.  The monitoring systems will review the time it takes to render the health check page and...

thumbnail

So in a recent project I've been building I reached a point where I believed my project would benefit from being able to issue user notifications. For those that are not aware, Liferay has a built-in system for subscribing and notifications.  Using these APIs, you can quickly add notifications to your projects. Foundation Before diving into the implementation, let's...

thumbnail

So recently I was asked, "How can panels be removed from the My Account portlet?" It seems like such a deceptively simple question since it used to be a supported feature, but my response to the question was that it is just not possible anymore. Back in the 6.x days, all you needed to do was override the users.form.my.account.main, identification and/or miscellaneous...

thumbnail

Recently I was working on a fragment bundle for a JSP override to the message boards and I wanted to wrap the changes so they could be disabled by a configuration property. But the configuration is managed by a Java interface and set via the OSGi Configuration Admin service in a completely different module jar contained in an LPKG file in the osgi directory. So I wondered if...

thumbnail

So the Liferay workspace is pretty handy when it comes to building all of your OSGi modules, themes, layout templates and yes, even your legacy code from the plugins SDK. But, when it comes to initializing a local bundle for deployment or building a dist bundle, using one of the canned Liferay 7 bundles from sourceforge may not cut it, especially if you're using Liferay DXP, or if...

thumbnail

Introduction So I'm doing more and more development using pure Intellij for Liferay 7 / DXP, even debugging. I thought I'd share how I do it in case someone else is looking for a brief how-to. Tomcat Setup So I do not like running Tomcat within the IDE, it just feels wrong.  I'd rather have it run as a separate JVM with it's own memory settings, etc.  Besides...

thumbnail

Introduction In part 5 we started the portlet code.  We added the configuration support, started the portlet and added the PanelApp implementation to get the portlet in the control panel. In this part we will be adding the view layer into the portlet and add the action handlers.  To complete these parts we'll be layering in the use of our Filesystem Access DS...

thumbnail

Introduction In the first four parts we have introduced our project, laid out the Liferay workspace to create our modules, defined our DS service API and have just completed our DS service implementation. It's now time to move on to starting our Filesystem Access Portlet.  With everything I want to do in this portlet, it's going to span multiple parts.  In this part...

thumbnail

Introduction In part 3 of the blog, the API for the Filesystem Access project was flushed out. In this part of the blog, we'll create the service implementation module. The Data Transfer Object Now we get to implement our DTO object.  The interface is pretty simple, we just have to add all of the methods and expose values from data we retain. The code will be...

thumbnail

Introduction In part 2 of the series we created our initial project modules for the Filesystem Access Portlet project. In part 3, we're going to move on to flushing out the DS service that will provide a service layer for our portlet. Admittedly this service layer is contrived; while building out the initial version of this portlet there was no separate service layer, no...

thumbnail

Introduction In part 1, the filesystem access portlet project for Liferay 7 was introduced. In this part, we're going to use Blade and Gradle to set up our basic project structure. We're not going to do much in the way of code in this part, it's going to be enough that we get all of our modules defined and ready for development in future parts of the blog. The Tools -...

thumbnail

Introduction So I've been doing some LR7 development recently.  It's an exciting and challenging platform to get your head around and I thought I would just work up an example portlet, spread it across a number of blog entries, and hopefully deliver something useful in the process. And that's what I'm going to do here.  Not only is the blog going to cover all of the...

thumbnail

So I'm a long-time supporter of ServiceBuilder.  I saw its purpose way back on Liferay 4 and 5 and have championed it in the forums and here in my blog. With the release of Liferay 7, ServiceBuilder has undergone a few changes mostly related to the OSGi modularization.  ServiceBuilder will now create two modules, one API module (comparable to the old service jar w/ the...

thumbnail

It's going to happen.  At some point in your LR7 development, you're going to build a module which has runtime dependencies.  How do you satisfy those dependencies though? In this brief blog entry I'll cover some of the options available... So let's say you have a module which depends upon iText (and it's dependencies).  It doesn't really matter what your module...

thumbnail

So I'm here late one night and I'm wondering why Liferay is hosting profile pics... I mean, in this day and age we all have accounts all over the place and many of those places also support profile pics/avatars.  In each of these sites when we create accounts we go and pull our standard avatar pic in and move on. Recently, however, I was working with a site that used an...

thumbnail

Just a quick note... Vaadin 7.5.0 was released at the end of June, 2015. I've completed an initial round of testing, and Vaadin 7 Control Panel version 1.0.3.0 is totally compatible with 7.5.0.  All themes compiled and so did the widgetsets. If you run into any problems with 7.5.0 compatibility, please let me know...

thumbnail

Let me say that again: Content Creation is Not a Development Activity! Pretty strong statement, but for for those considering Liferay as a platform it's really an important concept, one that lives in the core of Liferay. Note: This is really a different kind of blog post for me. I prefer to keep things technical and discuss practical solutions to ...

thumbnail

Introduction In my last blog post I had a little rant about the old version of Font Awesome included with Liferay 6.2 and how it would always be out of date because they seem to keep adding new glyphs every day. So I wondered if it was possible to use the current Font Awesome in a theme and started down a path to test it out. Font Awesome For those that don't know,...

thumbnail

Introduction So I'm not the best theme person around.  I'm less a UI guy and more of an implementation person.  Honestly I hate working on themes.  Maybe it's just me, but all of the styling work that you have to do in Liferay, well honestly I find it quite daunting. And when you throw in Bootstrap for responsiveness, SASS for "simplified" stylesheets,...

thumbnail

Introduction So this is a concept that comes up from time to time on the forums - How do I return a non-database complex object from my ServiceBuilder-generated service layer? The common answer is usually to bundle the class(es) defining the complex objects into a jar and deploy the jar to the global class loader.  This is a workable solution, but as with all global jars...

thumbnail

So Vaadin has a complete set of basic widgets (checkboxes, input fields, comboboxes, etc.) and some advanced controls (date picker, menu bar, table, etc.). They also have the Add-On directory which contains a slew of professional and user contributed widgets (some of my favorites are the masked text fields). But Vaadin also has the Pro Tools - snazzy widgets with a lot of...

thumbnail

Introduction So in two previous blogs I introduced Auto Vaadin Add On Deployment and Vaadin 7 Theming.  At the end of the Vaadin 7 Theming blog I said that there was a similar mechanism for handling the deployment of your themes using the Vaadin 7 Control Panel, the mechanism introduced in the Auto Vaadin Add On Deployment blog. So this blog is going to cover that...

thumbnail

Introduction Vaadin 7 is an active project still in development.  New releases come out regularly with bug fixes (mostly browser compatibility).  New versions come out with new functionality, etc. When using the Vaadin 7 shared environment, the version of Vaadin must be the same across the portal. The reason is the compiled WidgetSets.  When you compile the...

thumbnail

Introduction So the last few Vaadin posts were on some basic introductory stuff, but not a whole lot of fun.  I thought I'd do a blog post on a quick and fun little Vaadin 7 portlet, one that uses HighCharts. So I'm creating a portlet to show a pie chart of registered user ages (based on birthdate).  The fun part about this portlet is that it will use the Liferay API...

thumbnail

Introduction Wow, been staying up late cranking out some Vaadin blogs.  It's starting to catch up with me, but I have one more to add to the pile - Theming. Vaadin Themes in Liferay Vaadin in the portal is challenging because of theming.  In a Liferay portal window, well the surrounding frame is all managed and styled by the Liferay theme.  This poses a...

thumbnail

Introduction In my last blog post, I closed with the following: If you have the Vaadin 7 Control Panel installed and you've deployed the LazyPagedContainer Add On, you can download and deploy the vaadin-sample-portlet-1.0-SNAPSHOT.war file directly from this blog. This is not completely correct.  The Vaadin 7 Control Panel includes...

thumbnail

Introduction So I wanted to provide an example Vaadin portlet built using the Vaadin 7 shared environment.  Currently I've been migrating my general development efforts over to Intellij, so I thought this would be a good time to try out creating a Vaadin 7 portlet in Intellij and Maven.  The results are outlined in the rest of this blog entry. Creating the Project ...

thumbnail

Introduction So Vaadin provides a core set of widgets, standard widgets that you'd find in any web framework such as radio buttons, buttons, links and text input fields. But like most other frameworks, we as developers want a richer toolset of widgets that go beyond the standard set, usually to encapsulate some bit of a control which is obviously self contained. While...

thumbnail

Liferay ships with a pretty old copy of Vaadin 6, but most documentation and examples out now are for Vaadin 7.  It's pretty easy to upgrade the shared Vaadin environment to Vaadin 7, as simple as installing the Vaadin 7 Control Panel from the Marketplace. When the Vaadin 7 Control Panel is installed, it will purge Vaadin 6 from the Liferay environment and copy an initial...

thumbnail

The Vaadin 7 Control Panel is a custom control panel designed to manage the shared Vaadin environment in Liferay. What is the shared Vaadin environment?  It is one of two modes1 for creating Vaadin portlets and refers to the shared Vaadin environment hosted within the ROOT Liferay web application (under Vaadin 6, the shared Vaadin environment was the only supported...

thumbnail

NOTE: The following blog post is about Vaadin 6 and Liferay.  I'll be doing future posts on Vaadin 7, but for now I recommend sticking with Vaadin 6 in Liferay.   Introduction About two years ago, I noticed the Liferay IDE allowed for the creation of a new type of portlet based on Vaadin.  Curious, I did some research and found I could create Liferay...

thumbnail

So I received bunch of emails on Service Builder after my webinar last month...  Thought I'd write up a blog entry that will end up in the search engines and hopefully lead folks here to get to the details... Anyway, the recorded presentation is available on the Liferay LIVE Web Events page.  You can listen to the whole presentation and watch as my demo fails during the...

thumbnail

Introduction This page documents two important administrative functions: backing up Liferay (and restoration) and setting up a copy for development usage. Having a backup of the database is an important issue, in order to restore the database after some sort of catastrophe. The first thing that we're going to cover is backing up the Liferay data. Liferay uses a database...

thumbnail

Introduction So I've got my Liferay site up and running under Tomcat and fronted by Apache HTTPd. The next thing I wanted to do was add an SSL certificate so that I could get it all under HTTPS... SSL certificates, from sites like VeriSign or Thawte or Network Solutions are usually the players that come to mind when you want to get a certificate. ...

thumbnail

Introduction So here's my situation... I've got a Gentoo Linux server sitting around that I wanted to get Liferay 6.0.6 up and running on. Although this blog will cover the setup I did for my Gentoo box, for the most part you should be able to adapt what I've done for your Linux box. Heck, a lot of this will probably work on a Windows system too, but you're...

thumbnail

I was going to take a queue from Jelmer and start with just a test blog post, but don't want to take the wind out of his sails...  Must say, though, that your blog post did make me laugh Jelmer!   Instead, I'm going to lead w/ my blogging plans... First, I've got a handful of blog postings I had put together about HTTPS/Apache Httpd/Tomcat/Liferay that I'm going to...