Home » Apache Tomcat

Tag Archives: Apache Tomcat

JAX-WS Gradle Example

In this post, we will demonstrate how to build a JAX-WS web service using Gradle. 1. Introduction Java API for XML Web Services (JAX-WS) uses XML files for configuring services and for exchanging data. JAX-WS is commonly used for SOAP-based messaging. It uses Java API for XML Binding (JAXB) to marshal and unmarshal Java objects to XML and the reverse. Gradle ...

Read More »

Java Servlet File Download and File Upload Example

Hello readers, in this tutorial, we will show you how to set up the File Upload and Download functionality in a Servlet based Java web application.                     Table Of Contents 1. Introduction 1.1 What is Servlet? 1.2 Servlet File Upload 1.3 Servlet File Download 2. Java Servlet File Download and File ...

Read More »

Java Servlet Security Example

The @ServletSecurity annotation is used to define the access control or the security constraints to the servlets. In this tutorial, we will see how to configure the Basic Authentication in the servlets. 1. Introduction If developers are planning on using the Basic Authentication they must be aware that if they use the plain HTTP requests, the username, and password can ...

Read More »

Java Servlet Session Timeout Configuration Example

In this tutorial, we will show you how to set up the Session Timeout in a Servlet based web application. 1. Introduction Tomcat has a default timeout of 30 minutes but the default timeout depends on different web containers. The default session timeout in a web application can be configurable in two ways:         1.1 Session Timeout ...

Read More »

Java Servlet Url Parameters Example

Servlets are modules of the Java code that run in a server application to answer the client requests. They are not tied to a specific client-server protocol but are most commonly used with HTTP. The word “Servlet” is often used in the meaning of “HTTP Servlet” . In this tutorial, we will explain how to handle parameters of the Servlet ...

Read More »

Apache Tomcat Kali Linux Installation Tutorial

Hello readers! In this tutorial, we will install Tomcat and we will do some basic Tomcat configurations on the Kali Linux System. To complete this tutorial, developers will have to have a normal user with the sudo privileges.                 1. Introduction Apache Tomcat commonly known as Tomcat is an application server that can be used ...

Read More »

Jax-Ws Attachment Example

In this example, we will show you how to exchange files with a SOAP web service using attachments. 1. Introduction You may need to send or receive binary data, such as an image file or a PDF file, in a SOAP message. If the binary data is large, it would be inefficient to send it as part of a typical ...

Read More »

Apache Tomcat Reverse Proxy Configuration Tutorial

In computer networks, a reverse proxy is a type of proxy server that retrieves resources on behalf of a client from one or more servers. These resources are then returned to the client as if they originated from the proxy server itself. A reverse proxy acts as an intermediary for its associated servers to be contacted by any client.   ...

Read More »

Apache Tomcat Mod_jk Tutorial

The Apache Tomcat connector allows to use the Apache httpd server as a front-end for Apache Tomcat applications. With this configuration you can get some features like Clustering, Load Balancing, and enhanced Security, provided by the httpd server.                     The mod_jk connector is an Apache HTTPD module that allows HTTPD to ...

Read More »

Apache Tomcat SSL Configuration Tutorial

HTTPS is a protocol for secure communication over a computer network which is widely used on the Internet. HTTPS consists of communication over Hypertext Transfer Protocol (HTTP) within a connection encrypted by Transport Layer Security or its predecessor, Secure Sockets Layer.                   1. The tools Java JDK 8 Tomcat Server 8 2. ...

Read More »