Home » Tag Archives: Apache Tomcat

Tag Archives: Apache Tomcat

Docker Java App Deployment – 4 App Stacks: Tomcat, GlassFish, Jetty and JBoss

devops-logo

Sign Up for FREE on http://DCHQ.io to get access to out-of-box multi-tier Java application templates (including the Movie Store app on Tomcat, JBoss, GlassFish and Jetty) along with application lifecycle management functionality like monitoring, container updates, scale in/out and continuous delivery. Background Java developers and DevOps professionals have long struggled to automate the deployment of enterprise Java applications. The complex ...

Read More »

Multiple Tomcat Instances

apache-tomcat-logo

When building a real application you often find yourself having to deal with different stages of the software. The most common stages are development, testing and production, but you can have many more. This means that you need a different environment to deploy the application on each of the current stages. You use different environments to be able to perform ...

Read More »

Tomcat 8 on Java 8 Behind Apache on CentOS

apache-tomcat-logo

I was recently asked by an associate of mine to deploy a Spring application to a CentOS server running cPanel/WHM and Apache. As this build requirement is not entirely obvious I thought I’d share the experience as a simple how-to guide. Note, this is simply a how-to… not a best-practices guide so if you require a security hardened solution I ...

Read More »

Tomcat’s Default Connector(s)

apache-tomcat-logo

Tomcat has a couple of connectors to choose from. I’ll leave aside the APR connector, and focus on the BIO and NIO. The BIO connector (blocking I/O) is blocking – it uses a thread pool where each thread receives a request, handles it, responds, and is returned to the pool. During blocking operations (e.g. reading from database or calling an ...

Read More »

Run java web apps in embedded containers with Maven, Jetty and Tomcat

java-interview-questions-answers

While developing java web applications is very practical to have quick feedback from a “real” environment. In this post I’ll explore how to run a java web application with Maven in an embedded container be it Jetty or Tomcat.  I’ll show how I have configured them for the development of podcastpedia project backing the Podcastpedia.org website. Prerequisites You should have Maven ...

Read More »

Self-Signed Certificate for Apache TomEE (and Tomcat)

apache-tomcat-logo

Probably in most of your Java EE projects you will have part or whole system with SSL support (https) so browsers and servers can communicate over a secured connection. This means that the data being sent is encrypted, transmitted and finally decrypted before processing it. The problem is that sometimes the official “keystore” is only available for production environment and ...

Read More »

Tomcat to Wildfly: Configuring Database connectivity

java-interview-questions-answers

This excerpt has been taken from the “From Tomcat to WildFly” book in which you’ll learn how to port your existing Tomcat architectures to WildFly, including both the server configuration and the applications running on the top of it. WildFly is a fully compliant Java Enterprise Edition 7 container with a much wider set of available services and options compared ...

Read More »

Spring Boot / Java 8 / Tomcat 8 on Openshift with DIY

apache-tomcat-logo

DIY cartridge is an experimental cartridge that provides a way to test unsupported languages on OpenShift. It provides a minimal, free-form scaffolding which leaves all details of the cartridge to the application developer. This blog post illustrates the use of Spring Boot / Java 8 / Tomcat 8 application with PostgreSQL service bound to it. Creating new application Prerequisite Before ...

Read More »

Apache Tomcat and Denial-of-service vulnerability

apache-tomcat-logo

Websites hosted on Apache Tomcat servers seem to be vulnerable against denial-of-service attacks, as was recently proven by security researchers and presented in Denial-of-service vulnerability puts Apache Tomcat servers at risk. Apache Tomcat servers are widely used for hosting applications developed with the Java Servlet and the JavaServer Pages (JSP) technologies. Apache Commons FileUpload is a stand-alone library that developers ...

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