Category: JBOSS-FRAMEWORKS

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.

Spring Boot with JBang: a quick example

JBang is a tool that allows you to run Java applications as easily as scripting languages like Python or Node.js. You don’t need Maven or Gradle setup, just a single .java file with dependency annotations at the top. It’s ideal for:

Swagger with Jakarta REST quickstart

This tutorial will guide you through the process of integrating Swagger UI into your Jakarta EE project. We will cover the necessary steps to configure Swagger in a Jakarta EE environment, enabling you to automatically generate and serve API documentation for your RESTful services.

ActiveMQ Artemis CheatSheet

This is my Artemis MQ Artemis Cheatsheet which includes some commandline shortcuts you can use to manage your broker as well as producing and consuming messages and checking their status.

Speed your migration to JBoss EAP 8 with Windup

Windup is a set of tools that support the migration and modernization of Java applications by producing detailed code analysis, effort estimation and migration steps. In this article, we will show how to produce a migration report for a JBoss EAP 7 application that we want to move to JBoss EAP 8.

How to find WildFly REST Endpoints

Discovering the list of available endpoints is crucial to map and troubleshoot REST Applications. This article will teach you three simple strategies to discover WildFly REST Endpoints which are available.

Generating Random Data for REST Services

This is a two-series article which discusses some simple strategies to generate Random data for your REST Services using some simple tools available from the Linux command line. Also, we will show some minimal tool you can install for a wider variety of choices.

REST Services cURL cheatsheet

Explore this comprehensive cheatsheet tailored for REST developers seeking a powerful yet straightforward testing tool for their REST services. Discover essential commands and options that elevate your testing capabilities using a versatile tool like curl. Whether you’re a seasoned developer or just getting started, this cheatsheet provides valuable insights to streamline your REST API testing workflow.

How to configure JBoss Maven Repository

This article provides a concise overview of the JBoss and Red Hat repositories, essential tools for building enterprise applications with Maven. By understanding these repositories and their contents, you can easily incorporate JBoss and Red Hat components into your Maven-based projects.

Fixing Maven’s “Malformed \uxxxx encoding” Issue

The “Malformed \uxxxx encoding” error in Maven can occur due to corrupted resolver-status.properties files, which are used to cache dependency metadata. These files can become corrupted when multiple Maven processes try to access them simultaneously, leading to data inconsistencies.

ERROR

/home/francesco/mastertheboss/simply-static-1-1778700701/jboss-frameworks/jboss-maven/run-a-java-class-from-maven-made-simple/index.html

Tutorial: Using Debezium JDBC Connector

In this tutorial, we will guide you through the process of using the Debezium JDBC Connector to capture changes in a PostgreSQL database and stream them to Apache Kafka. We’ll use Docker to set up a PostgreSQL database, Apache Kafka, and Debezium, creating an end-to-end example.

Getting started with Debezium

Debezium is a project built upon Apache Kafka and uses Kafka to stream the changes from one system to another. Once core feature of Debezium is the Change Data Capture which is able to capture data and pushes it into Kafka. In this updated tutorial we will learn how to configure Debezium and Apache Kafka to stream changes in the database.

How to run Artemis MQ as Docker Image

In this tutorial, we will explore how to run Apache Artemis MQ, a high-performance messaging broker, within a Docker container. By containerizing Artemis MQ, you can easily deploy and manage your messaging infrastructure while leveraging the benefits of isolation, scalability, and portability offered by Docker. Let’s dive into the world of containerized messaging with Artemis MQ!

How to Trace requests with RestEasy

When working with RESTful web services, it is often useful to be able to trace requests to better understand what is happening. Fortunately, this is relatively easy to do with WildFly and Resteasy. In this article, we will look at how to configure tracing for REST requests using an enhancement available in WildFly 28.

Introduction to Maven Daemon (mvnd)

Maven Daemon (mvnd) is a background process that can speed up Maven builds by keeping a daemon process running in the background. This allows Maven to start up faster, as it does not have to initialize the build process from scratch for each build. In this tutorial, we will cover how to install and configure mvnd, as well as how to use it to speed up your Maven builds.

Getting started with Jakarta RESTful Services

The latest release of RESTEasy (6.1.0) provides an implementation for Jakarta RESTful Web Services 3.1. which is a core component of Jakarta EE 10. Let’s review through this article which are the core features of Jakarta Rest Services.

How to validate Jakarta REST parameters

This article is a walk through the available options to perform validation of REST Endpoint parameters using Jakarta EE. We will show both Bean validation and Entity validation of a REST Service endpoint.

How to externalize HTTP sessions on Infinispan

This article is a step by step guide for setting up a remote Infinispan cluster as an HTTP session store for your HTTP Sessions running on WildFly application server. You can carry out equivalent steps to externalize JBoss EAP 7 session on Red Hat Data Grid.

Running Arquillian Tests from Eclipse

Have you ever wondered how to run Arquillian Integration tests without leaving your favourite IDE? Then keep reading! For the purpose of this example, we will be using Eclipse, however you can easily adapt it to any other IDE such as Idea or Visual Studio.

How to create an HTTP Server with Netty

Netty is a framework which you can add to your developer’s stack to create event based non blocking applications. You can easily adapt it to handle a variety of Protocols. In this tutorial we will show how to create and run a simple HTTP Server with Netty.

Use Netty to Proxy your requests

In this tutorial we will learn how to use Netty to set up a simple HTTP reverse proxy. We recommend checking this tutorial for an overview of Netty core concepts: Getting started with Netty

Getting started with Netty

Netty is a client/server framework that provides a simplified layer over NIO networking. This makes it a good candidate to create low-level nonblocking network applications.