TomcatExpert

Apache Tomcat 7

Blog : Apache Tomcat 7.0.34 Released

posted by Stacey Schneider on December 12, 2012 09:10 AM

The Apache Tomcat team announces the immediate availability of Apache Tomcat 7.0.34.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Apache Tomcat is an open source software implementation of the Java Servlet and JavaServer Pages technologies.

This release contains a small number of bug fixes and improvements compared to version 7.0.33. The notable changes include:

Read More

37 comments   |  

0
Rating
  |  

Developers, Executives | Apache Tomcat 7

Blog : Apache Tomcat 7.0.33 released

posted by Stacey Schneider on November 26, 2012 09:43 AM

The Apache Tomcat team announces the immediate availability of Apache Tomcat 7.0.33.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Apache Tomcat is an open source software implementation of the Java Servlet and JavaServer Pages technologies.

This release contains a small number of bug fixes and improvements compared to version 7.0.32. The notable changes include:

Read More

94 comments   |  

0
Rating
  |  

Developers, Operations | Apache Tomcat 7

Blog : Apache Tomcat 7.0.32 released

posted by Stacey Schneider on October 9, 2012 07:08 AM

The Apache Tomcat team announces the immediate availability of Apache Tomcat 7.0.32.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Apache Tomcat is an open source software implementation of the Java Servlet and JavaServer Pages technologies.

This release contains a small number of bug fixes and improvements compared to version 7.0.30. The notable changes include:

Read More

61 comments   |  

3
Rating
  |  

Developers, Operations | Apache Tomcat 7

Blog : Apache Tomcat Maven Plugin 2.0

posted by Stacey Schneider on September 17, 2012 09:43 AM

The Apache Tomcat is pleased to announce the release of the 2.0 version. This plugin can used to run your war project inside an embeded Apache Tomcat and to deploy your project to a running Apache Tomcat instance.

Documentation available: http://tomcat.apache.org/maven-plugin-2.0/index.html

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

 

Read More

46 comments   |  

0
Rating
  |  

Developers, Operations | maven, Apache Tomcat 7

Blog : Apache Tomcat 7.0.30 released

posted by Stacey Schneider on September 6, 2012 02:07 PM

 

The Apache Tomcat team announces the immediate availability of Apache Tomcat 7.0.30.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Apache Tomcat is an open source software implementation of the Java Servlet and JavaServer Pages technologies.

This release contains numerous bug fixes and improvements compared to version 7.0.29. The notable changes include:

Read More

27 comments   |  

0
Rating
  |  

Developers, Operations | Apache Tomcat 7

Blog : Apache Tomcat 7.0.29 released

posted by Stacey Schneider on July 8, 2012 06:59 PM

The Apache Tomcat team announces the immediate availability of Apache Tomcat 7.0.29.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Apache Tomcat is an open source software implementation of the Java Servlet and JavaServer Pages technologies.

This release corrects a small number of regressions introduced in the 7.0.28 release and takes account of several recent clarifications from the Servlet Expert Group as well as containing a handful of bug fixes and small improvements compared to version 7.0.28. The notable changes include:

  • Add support for a default error page
  • The servlet version defined in web.xml no longer determines if Tomcat scans for annotations when the web application starts. This is now solely controlled by metadata-complete element.
  • On web application start, JARs are now always scanned for ServletContainerInitializers regardless of the setting of metadata-complete

Read More

306 comments   |  

0
Rating
  |  

Developers, Operations | Apache Tomcat 7

Blog : How Apache Tomcat Implemented WebSocket

posted by fhanik on May 1, 2012 07:13 AM

With the Apache Tomcat 7.0.27 release, the Apache Tomcat team introduced a WebSocket implementation. In a previous post, we took a look at what the WebSocket implementation means, including what benefits and limitations they present. Today, we will discuss specifically how WebSocket is implemented in Apache Tomcat 7.

Since WebSocket is a protocol sent over TCP after an initial HTTP handshake, you could effectively implement WebSocket using Tomcat’s Comet implementation. There is a back port to Tomcat 6 suggested that does exactly that with very minor changes.

The Apache Tomcat team however decided to go with a more substantial implementation with changes to the core of Tomcat’s network and protocol implementation. The reason for this was memory and scalability based. If Tomcat can recycle the HttpServletRequest/Response objects after the initial handshake, each WebSocket connection will take up less memory in the Java heap. It also opens up the Tomcat container for other future protocols that utilize the HTTP Upgrade feature.

The WebSocket implementation from an API standpoint is fairly straightforward. You really can only do two things:

  1. Send messages
  2. Receive messages

Read More

178 comments   |  

5
Rating
  |  

Developers, Operations | WebSocket, Apache Tomcat 7

Blog : WebSockets in Tomcat 7

posted by fhanik on April 23, 2012 10:22 PM

With the 7.0.27 release the Apache Tomcat team introduced a WebSocket implementation. WebSocket has received a lot of hype, and has been much anticipated by Tomcat users. Let’s take a quick look at what web sockets are, what benefits and limitations they have and how they are implemented in Apache Tomcat 7.

What is a WebSocket?

WebSocket is considered the next step in evolution of web communication. Over time, communication has evolved in steps to reduce the time and data throughput for the application to update a user’s browser. The evolution has looked a little like this:

  • Entire page reloads
  • Component reloads using AJAX Processing
  • Comet communication
    • Long poll– similar to AJAX, but not holding a thread on the server
    • Bi directional- two way communication over the same TCP

Each of these steps had their benefits and challenges. Apache Tomcat 6 implements bi-directional communication over HTTP using its Comet Processor. This implementation allowed for asynchronous event driven request processing as well as bi-directional communication. This implementation had a few limitations.

Read More

152 comments   |  

0
Rating
  |  

Developers | WebSocket, Apache Tomcat 7

Blog : Apache Tomcat 7.0.26 Released

posted by Stacey Schneider on February 22, 2012 10:48 AM

The Apache Tomcat team announces the immediate availability of Apache Tomcat 7.0.26

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

This release is primarily a bug fix release and includes numerous bug fixes compared to version 7.0.25. The notable bug fixes include:

  • Improved @HandlesTypes processing which no longer loads all classes on web application start.
  • Ensure that POST bodies are available for reply after FORM authentication when using the AJP connectors
  • Corrected a regression that broke annotation scanning for many use cases including web applications packaged as WARs and many embedded scenarios.

Please refer to the change log for the complete list of changes:
http://tomcat.apache.org/tomcat-7.0-doc/changelog.html

Note that this version has 4 zip binaries: a generic one and three bundled with Tomcat native binaries for Windows operating systems running on different CPU architectures.

Read More

58 comments   |  

0
Rating
  |  

Developers, Operations | Apache Tomcat 7

Ask the Experts : BASIC Auth configuration on Tomcat 7 with https

I'm trying to setup BASIC auth on my tomcat 7 which is listening on port 80 and 443.

I have made the following changes:

In the web.xml of the web-app

asked by ronzensci

question

Your configuration looks OK to me.  I copied and pasted it into my local Tomcat 7.0.25 installation and it worked OK for both HTTP and HTTPS traffic.

One possible issue, which is very easy to test, is that your browser has your authentication credentials cached.  With BASIC auth, your browser will only prompt you for credentials the first time you authenticate to your site.  After a successful authentication, it will not prompt you again.  To force your browser to prompt you again, you'll need to completely close out the browser.

An alternative, and my personal preference for testing BASIC auth, is to use cURL.  Here are some examples of testing with cURL.

Test without credentials

To test that you resources are being protected, you can use this command to access them without credentials.  The request should return an HTTP 401 Unauthorized request and the "WWW-Authenticate" header should indicate basic authentication is required.

curl -vv https://your.domain.name/

Test with credentials

To test that authentication is working correctly, you can specify a set of credentials for authentication.  The request should be sent with an "Authorization" header and given that your credentials are valid it should authenticate.  If your credentials are invalid you should be presented with a HTTP 401 Unauthorized message.  If the user is authenticated, but does not have access to view the resource you should be presented with an HTTP 403 Forbidden message.

curl -vv -u bcsguser:password https://you.domain.name/

A couple notes about cURL. 

  • Using the "-vv" option will display additional information like the HTTP headers.  This can be helpful for debugging BASIC auth problems because you can verify that the correct headers (like "WWW-Authenticate" and "Authorization") are being properly set.
  • If you have a self-signed SSL certificate, cURL will fail with an error.  Specifying the "-k" option will tell cURL to ignore this error.

 

answered by dmikusa on September 10, 2012 07:24 AM

Read More

answer

23 comments   |  

0
Rating
  |  

Developers | basic authentication, Apache Tomcat 7

Syndicate content