Home » Enterprise Java » Tomcat » Page 4

Tomcat

Tomcat access log configuration example

This article describes the configuration of the access log for Apache Tomcat 7 web server. A web server has the function to intercept user requests to resources, examine them and log them. This is an activity of web server administration. Tomcat provides components called valves that can be placed in the request-processing stream (intercept user requests) for logging access to ...

Read More »

Tomcat server.xml Configuration Example

Almost every application container will have some form of a server.xml file. It’s basically where every meta-data or configurations that the container needs for it to complete it’s initialization. This can be configured so that software designers and architects can inject services needed on runtime or upon destruction (stop). It is equally important to know this as to how every ...

Read More »

Tomcat tomcat-users.xml configuration example

This article describes the configuration of the tomcat-users.xml file for Apache Tomcat 7 web server. tomcat-users.xml is the default user database for container-managed authentication in Tomcat. 1. Web Application Security Concepts 1.1. Authentication To access a restricted resource on the server, Tomcat challenges a user to produce user details to confirm that they are who they say they are. 1.2. ...

Read More »

Tomcat DataSource JNDI Example

In this example, we shall demonstrate how to create the Data-source using Java Naming and Directory Interface or JNDI, for short. The JNDI Data-source created in web-server uses one of the connection pooling libraries like DBCP, C3P0 or the BoneCP. The connection pool can be created in the Web-Server or it can also be created in the web-application, itself. Creating ...

Read More »

Eclipse Tomcat plugin tutorial

In this tutorial, we will learn to configure and use the Tomcat Plugin for Eclipse. Although there are a few tomcat plugins available, but we will specifically use the Sysdeo Tomcat plugin as part of this tutorial. Sysdeo Tomcat plugin offers the following advantages:             Sysdeo Tomcat Launcher plugin has been one of the most ...

Read More »

How To Configure Tomcat To Support SSL Or Https

In this short example we are going to see how to configure Tomcat to support SSL protocol, and thus https connections. 1. Create a Self – Signed Certificate for the Server For SSL to work (properly) it is obligatory for the  Server to identify himself to the client. To do that, the Server will need a certificate. Of course, when ...

Read More »