How to enable access logs in WildFly / JBoss

In the context of Web servers, Access Logs refer to the records or files that store a detailed history of all requests made to the Web server. WildFly uses Undertow as Web Server therefore in this tutorial we will learn how to enable tracing Access Logs to monitor incoming HTTP Requests

Read more

JSON pretty printing in Java

When working with JSON data, readability matters. JSON pretty printing is a technique used to format JSON data in a human-readable manner, making it easier to analyze, debug, and understand. In this tutorial, we’ll explore how to perform JSON pretty printing in Java, leveraging libraries to format JSON for improved readability.

Read more

How to parse JSON in Java

In today’s data-driven world, the ability to effectively parse and process JSON data has become an essential skill for Java developers. This tutorial will guide you through the fundamentals of parsing JSON data using the Jakarta JSON API framework which includes two main models: JSON Processing (JSON-P) and JSON Binding (JSON-B). Binding and Processing JSON … Read more

Creating a new subsystem in WildFly made simple

In this tutorial we will learn how to extend WildFly by adding a new subsystem. Although this operation involves several steps, by using the Maven wildfly-subsystem archetype you will get soon up to speed. . Below, I’ve outlined all the steps in a basic tutorial to get you started. Note that this tutorial assumes you have some familiarity with Java and WildFly administration.

Read more

Vaadin Tutorial: Building Modern Web Applications with Ease

Vaadin is a powerful open-source Java framework that allows you to develop modern, responsive web applications with a rich user interface. In this tutorial, we will explore the key features and benefits of Vaadin and guide you through the process of building your own web application. Whether you’re a beginner or an experienced developer, this step-by-step tutorial will help you get started with Vaadin and unleash its full potential.

Read more

Converting JSON to Java Map using Jackson

This tutorial demonstrates how to convert a JSON string into a Java Map using Jackson’s ObjectMapper. We will show a basic Java main Class to convert a sample JSON String. Then, we will simplify the classpath set up using JBang. Prerequisites Steps: 1. Include Jackson Dependency Make sure to include the Jackson dependencies in your … Read more

How to solve java.lang.NoClassDefFoundError: javax/xml/bind Classes

The java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException error (or other javax.xml.bind classes) typically arises due to missing JAXB API in your Classpath or Runtime. Here’s how to resolve it. Understanding the Issue In Java 9 onwards, the Java EE APIs, including JAXB (Java Architecture for XML Binding), are not included by default. These APIs were traditionally bundled with Java … Read more

How to fix “No ParameterResolver registered for parameter”

The error message you’re encountering, “No ParameterResolver registered for parameter x” is due to the incorrect usage of annotations in the JUnit 5 test.

In JUnit 5, @ParameterizedTest is used to indicate that the annotated method is a parameterized test. However, it seems like in your code snippet, the @ParameterizedTest annotation is mistakenly combined with @Test, causing confusion in the framework.

Here’s a step-by-step tutorial on how to fix this issue:

Read more