Home » Tag Archives: Apache Tomcat (page 5)

Tag Archives: Apache Tomcat

High Availability for Web applications

apache-tomcat-logo

As more mission critical applications move to the cloud, making the application highly available becomes super critical. An application not available for whatever reason, web server down, database down etc mean lost users, lost revenue that can be devastating to your business. In this blog we examine some basic high availability concepts. Availability means your web application is available to ...

Read More »

Web Services with JAX-WS on Tomcat

apache-tomcat-logo

Let us assume an enterprise is maintaining user authentication details in a centralized system. We need to create an AuthenticationService which will take credentials, validate them and return the status. The rest of the applications will use the AuthenticationService to authenticate the Users. Create AuthenticationService interface as follows: package com.sivalabs.caas.services; import javax.jws.WebService; import com.sivalabs.caas.domain.AuthenticationStatus; import com.sivalabs.caas.domain.Credentials; import com.sivalabs.caas.exceptions.AuthenticationServiceException; @WebService public ...

Read More »

Ubuntu: Installing Apache Portable Runtime (APR) for Tomcat

apache-tomcat-logo

After reading “Introducing Apache Tomcat 6? presentation by Mladen Turk I decided to enable Apache Portable Runtime (APR) native library for Tomcat. It was supposed to be as easy as sudo ./configure sudo make sudo make install but as you may guess, it was a little bit more than that. 1. Installing Apache APR. “Most Linux distributions will ship packages ...

Read More »

Tomcat & IntelliJ – Deploy war files outside webapps folder

jetbrains-intellijidea-logo

At present I am working on developing an Android application that needs to be supported by a slew of REST services hosted in the cloud. I chose Google App Engine based on its support for Java, Groovy and most importantly Spring. I developed a Spring MVC based REST application and used ContentNegotiatingViewResolver to negotiate content based on request URL extensions. ...

Read More »

Launching and Debugging Tomcat from Eclipse without complex plugins

eclipse-logo

Modern IDEs like Eclipse provide various Plugins to ease web developement. However, I believe that starting Tomcat as “normal” Java application still provides the best debugging experience. Most of the time, this is because these tools launch Tomcat or any other servlet container as external process and then attach a remote debugger on it. While you’re still able to set ...

Read More »

Change Without Redeploying With Eclipse And Tomcat

eclipse-logo

They say developing Java is slow because of the bloated application servers – you have to redeploy the application to see your changes. While PHP, Python, etc. scripting languages, allow you to “save & refresh”. This quora question summarizes that “myth”. Yup, it’s a myth. You can use “save & refresh” in java web applications as well. The JVM has ...

Read More »

Multiple Tomcat Instances on Single Machine

apache-tomcat-logo

In this post we will see how to run multiple tomcat instances on a single machine and under a single user account. We first see the tomcat directory structure, where each folder has the following purpose: bin –  contains all binary and script files for running tomcat. lib – contains all shared libraries used for tomcat conf – contains configuration information like which port tomcat can bind, ...

Read More »

Web Services in Ruby, Python and Java

ruby-logo

Today I’ve had to prepare some examples to show that web services are interoperable. So I’ve created a simple web service in Java using Metro and launched it on Tomcat. Then tried to consume them using Python and Ruby. Here’s how it all finished… Web service in Java I’ve started with a simple web service in Java: package com.wordpress.jdevel.ws; import ...

Read More »

Zero-downtime Deployment (and Rollback) in Tomcat; a walkthrough and a checklist

apache-tomcat-logo

Dear All, If you thought Tomcat could not get any better, you thought wrong. Tomcat 7 introduces what is called Parallel Deployment. This was contributed by SpringSource/VMWare. Simply put, parallel deployment is the ability to deploy more than one version of your web application in parallel, making all versions available under the exact same URL. Think about this for a ...

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