Home » Tag Archives: Apache Tomcat (page 2)

Tag Archives: Apache Tomcat

Using an Embedded Tomcat with Maven tomcat plugin

apache-maven-logo

When developing a java web application using the Eclipse WTP, we need to have an installation of tomcat in the machine in order to execute the application. If you are using Maven on your project, you can use the tomcat plugin to run an embedded tomcat installation and test the application. It is very simple as you can see below. ...

Read More »

HOW-TO: Custom error pages in Tomcat with Spring MVC

apache-tomcat-logo

Default Tomcat error pages look scary. In addition, they may expose valuable information including server version and exception stack trace. Servlet specification provides a way to configure an exceptional behavior through web.xml. One can configure either reaction on a specific Java exception or to a selected Http response code(s). error-page element specifies a mapping between an error code or exception ...

Read More »

JSF Tomcat Configuration Example

jsf-logo

JavaServer Faces (JSF) is a web application framework that is intended to simplify development integration of web-based user interfaces. It is used for developing and building server side User Interface Components and using them in a web application. JSF technology is based on the Model-View-Controller (MVC) architecture and simplifies the construction of user interfaces (UI) for server-based applications by using ...

Read More »

Amazon Free Usage Tier: Installing Tomcat 7 on an EC2 Linux instance

apache-tomcat-logo

Amazon Web Services offers a free usage tier for 12 months that allows developers to run anything they want in the cloud. The free tier comprises of 14 services of which the EC2 service is of most immediate interest to web developers. EC2 is a service that provides resizeable virtual computing by stopping and starting virtual instances of Windows and/or ...

Read More »

Tomcat’s Graceful Shutdown with Daemons and Shutdown Hooks

apache-tomcat-logo

My last couple of blogs have talked about long polling and Spring’s DeferredResult technique and to demonstrate these concepts I’ve shoehorned the code from my Producer Consumer project into a web application. Although the code demonstrates the points made by the blogs it does contain a large number of holes in its logic. Apart from the fact that in a ...

Read More »

Long Polling Tomcat with Spring

apache-tomcat-logo

“Ooh err Missus” as comedian Frankie Howerd would have said, but enough of British innuendo and double entendre because Long Polling Tomcat isn’t some kind of sexual deviance with next door’s moggy, it’s a technique (or more of a hack) that’s been developed as a result of Steve Jobs’s refusal to support Adobe Flash Player on the iPhone and iPad. ...

Read More »

Spring JTA multiple resource transactions in Tomcat with Atomikos example

atomikos-logo

In this tutorial we shall show you how to implement JTA multiple resource transactions in a Tomcat server, using Atomikos Transaction Manager. Atomicos transaction manager provides support for distributed transactions. These are multi-phased transactions, often using multiple databases, that must be committed in a coordinated way. The distributed transactions are described by the XA standard. XA governs how a transaction ...

Read More »

Tomcat in Eclipse: 6 popular “how to” questions

apache-tomcat-logo

Learning a new technology is always a hard process. This process becomes even more difficult when you are trying to learn two technologies which are going to interact with each other. Tomcat and Eclipse are ones of the most popular pre-requirements in the Java EE development. Therefore to be a professional developer you need to know how to perform the ...

Read More »

Most popular application servers

apache-tomcat-logo

This is the second post in the series where we publish statistical data about the Java installations. The used dataset originates from free Plumbr installations out there totalling 1,024 different environments we have collected during the past six months. First post in the series analyzed the foundation – on what OS the JVM is run, whether it is a 32 ...

Read More »

Virtual Host + Nginx + Tomcat

apache-tomcat-logo

In my Virtual Host + Apache httpd server + Tomcat + mod_jk connector post has lots of comments. and i hope everyone like that. But problem is very difficult to install and configure the Apache httpd server with mod_jk connector. Recently i learned nginx. and i walked through the Nginx server as Load balancer. This post is same as Virtual ...

Read More »

Want to take your Java skills to the next level?

Grab our programming books for FREE!

Here are some of the eBooks you will get:

  • Spring Interview QnA
  • Multithreading & Concurrency QnA
  • JPA Minibook
  • JVM Troubleshooting Guide
  • Advanced Java
  • Java Interview QnA
  • Java Design Patterns