Category Archives: Application Server

Running Tomcat as Service

In previous post we have setup Tomcat to run its multiple instances now we want that tomcat should start automatically on server reboots. This can be achieved by adding tomcat service script.

Introduction

This document will teach us how to setup Tomcat to run as a service (startup when booted) on Linux.

Posted in Application Server | Tagged , , , , , | 1 Reply

Setting Tomcat to run Mutiple instances of it

Introduction

This document will teach us how to setup Tomcat to run Multiple instances of it.

Intended Audience: System admins.

Instruction to installing Tomcat so that we can run multiple instances.

1. Install the Tomcat files

Posted in Application Server | Tagged , , , , , | 2 Replies

Java HotSpot(TM) 64-Bit Server VM warning: Failed to reserve shared memory (errno = 12)

I was configuring Apache Tomcat on 64-Bit Linux OS and wanted to tune it for better performance. While searching the net for the same I came across JVM Performance Tuning by Andrig Miller its good start for tuning Java for better performance on machine with Large memory.

Posted in Application Server | Tagged , , , , , , , , | 2 Replies

java.net.BindException Cannot assign requested address: 8443

Today I was battling an issue for some of my colleagues. They were getting this exception from JBoss while starting :

java.net.BindException: Cannot assign requested address: 8443 at org.apache.tomcat.util.net.JIoEndpoint.init(JIoEndpoint.java:500)

in the JBoss console.

Posted in Application Server | Tagged , , , | Leave a reply

Ping failed in MysqlValidConnectionChecker in JBoss/MySQL-ConnectorJ Combination

Today I was battling an issue for some of my colleagues. They were getting this exception from JBoss/Mysql ConnectorJ driver:

java.sql.SQLException: Unexpected error in ping : java.lang.IllegalArgumentException: object is not an instance of declaring class

in the JBoss console.

Posted in Application Server | Tagged , , , , , | Leave a reply

Apache Tomcat Loadbalancing

This article contains step by step instructions for configuring an Apache web server which handles static content and delegates JSP (Java Server Pages) and Servlet requests to two Tomcat servers using AJP 13 connectors and a load balancing worker.

Posted in Application Server | Tagged , , , , , , , , , , , , , , | Leave a reply

Apache Tomcat Integration HowTo

Overview

This is to explain and understand how to integrate Apache and Tomcat to support Java Server Pages (JSP) and Servlets using Apache on your website. Although this setup worked for this particular environment, I can make no guarantees that it will work for yours, but it should with some tweaking. I have spent a lot of time gathering several resources in order to get this to work. Many portions of these resources have been deprecated and required a few workarounds. It is my intention that this tutorial will help anyone that has attempted to install such a system without success. If you find any inconsistencies within this tutorial, please notify me using the contact form.

Posted in Application Server | Tagged , , , , , , , , , , , , , , , | Leave a reply