Tagged: #tomcat

Building REST web service using RESTEasy

RESTEasy is yet another popular framework which implements JAX-RS specification and is widely used for building REST web services in java. In this tutorial, we provide a step-by-step guide for building a REST web service using RESTEasy framework, we provide different ways to configure RESTEasy with both Servlet 3.0 and Servlet 2.0. If you’re interested in Jersey, check this tutorial. Prerequisites: Eclipse IDE...

Building REST web service using Jersey

Since Java 5, JAX-RS specification has been announced in order to support building REST web services according to the REST architectural pattern. JAX-RS is a set of interfaces or APIs which provides the building blocks for building REST services in java. Although you can’t build a fully functional RESTful service using these interfaces, there exists a lot of popular frameworks...

Load balancing tomcat with Apache

In some circumstances, it is mandatory to deploy your application on multiple tomcat instances instead of a single one, this usually happens when working with a heavy application which consumes a big amount of memory storage and has a big number of active users. The main advantage of using multiple instances is to distribute the requests and the load on...

Configure tomcat memory usage

By default, the memory size allocated for tomcat is not enough to handle heavy applications which require high memory usage, several OutOfMemoryError exceptions will be thrown if you keep the default tomcat configuration. In order to set the appropriate heap size and perm gen size, tomcat requires a file named as setenv.sh in unix environments and setenv.bat in windows. This file is not included in the...

Step-by-step guide for installing tomcat on unix

Here below we provide a step-by-step guide for installing and setting up tomcat in unix environment, for those who are interested in windows machines you can refer to this guide. 1. Prerequisite Tomcat doesn’t work without java, so before installing tomcat on the machine, you should install a compatible java runtime version and setup JAVA_HOME environment variable. Both java and tomcat versions should...

Step-by-step guide for installing tomcat on windows

Tomcat is an open source java application server provided by Apache, it is the most popular application server for java environment. In this article we provide a step-by-step guide for installing and setting up tomcat in windows environment,  for those who are interested in unix machines you can refer to this guide. 1. Prerequisite Tomcat doesn’t work without java, so before installing...