Solving java.lang.OutOfMemoryError: Metaspace error

The error java.lang.OutOfMemoryError:Metaspace indicates that you have exhausted an area of JVM which serves as a registry for your application’s Class Metadata. This article is a step-by-step guide to fix Java Metaspace errors with Java 17’s elastic metaspace (JEP 387), diagnostic tools like jcmd, and best practices for JVM configuration.

Read more

Solving Unable to load the mojo ‘war’ in the plugin

If you’re migrating a Java EE or Jakarta EE project to Java 17 or later, and you’re using Maven 3.8 or newer, you might encounter the following error during a mvn package or mvn install: ” Unable to load the mojo ‘war’ in the plugin ‘org.apache.maven.plugins:maven-war-plugin‘. This issue is often triggered when your project implicitly uses an outdated version of the maven-war-plugin that is incompatible with newer Java versions or Maven APIs.

Read more

How to run WildFly as Service

The guide discusses how to configure WildFly or JBoss as a Service on a Linux machine or on a Windows box. We will cover the code settings and addresses common pitfalls and aligns with current best practices. Linux (systemd Integration) WildFly 36 includes native systemd support. Follow these steps: Firstly, generate Systemd Files: Then, replace … Read more

PrimeFaces with Jakarta EE 10 made simple

In this updated article we will discuss how to create and deploy a Jakarta EE 11 ( available since June 2025) application that uses Primefaces as Jakarta Faces implementation. We will build a sample application that will run in microservice-style as WildFly Bootable JAR.

Read more

How to validate Database connections in JBoss / WildFly

This tutorial discusses how to validate Datasource connections using in WildFly using proper validation methods. Besides, it will discuss how to troubleshoot database connections which are not properly replaced when Database connections are no longer valid. Connection Validation in a nutshell A datasource connection validation helps to ensure that the connections to the database are … Read more