JBoss log4j configuration

This tutorial has been written for older versions of the application server (JBoss AS 4/5/6). A more recent tutorial about Log4j has been written here: Using Log4J with WildFly and JBoss EAP JBoss AS uses log4j as logging framework. This tutorial will show how to configure log4j service in your jBoss application server and also how … Read more

Solving JBoss 5 classloading issues

A common issue for many developers is how to solve Classloader issues, which are usually masked by strange errors like ClassCastException. Let’s see a concrete example, how to solve this issue for Web applications. The Classloading problem boils down to the fact that you have added in your deployment unit (Ex. WAR file) some libraries which … Read more

JBoss 5 Alarm configuration

Please note: this tutorial has been written for JBoss AS 5 and it’s therefore obsolete. If you want to configure alarms and metrics for WildFly application server we recommend checking this tutorial: Monitoring WildFly with Prometheus An Alarm indicates that an event (generally an error) has happened in the system. In this article we’re going … Read more

How to solve Classloader issues in JBoss 4 and 5

By default JBoss 4 and JBoss 5 uses a flat class loading model that avoids the need to redundantly include classes in different layers.  WAR files would only have the web contents and servlets, EJBs their interfaces, implementations and types, etc. From 4.0.2 JBoss has changed to the Servlet spec classloading model, i.e. it uses … Read more