TomcatExpert

Apache Tomcat 8 and Java 7: Will They Work Together?

posted by mthomas on August 24, 2011 11:17 AM

Java 7 has recently been released, and Apache Tomcat 8 project has just opened for development. It begs the question – are they related?

In short, not necessarily. We create a new major version of Tomcat when there are new versions of three specifications—Servlet, JavaServer Pages (JSP) and Expression Language (EL). Minor updates (maintenance releases) do sometimes get produced but major changes to all three specifications are released together as part of the J2EE specification. Once a new version of the J2EE specification is released, this is what governs the update to the next major version of Apache Tomcat, and it will implement the new features defined within these specifications.

For Tomcat 6, the defining specifications are the Servlet 2.5; JSP 2.1 and EL 2.1 specifications and for Tomcat 7 they are Servlet 3.0; JSP 2.2 and EL 2.2. Work on the Servlet 3.1 and EL 3.0 specifications is underway, and it is expected that there will be a new version of the JSP specification although I haven't seen any indication of work in that area yet. If the changes in JSP 2.2 are anything to go by, any changes in the JSP specification are likely to be minimal and will probably happen closer to the J2EE release. In terms of Java 7 support, Tomcat 8 will require the minimum Java version specified by the Servlet 3.1 specification. At the moment, I expect that that will be Java 7 but we won't know for sure until the specification is finalized.

Will Tomcat 8 Development Wait Until Specs Are Published?

As the work on the specifications proceeds (I am on the expert group for both Servlet 3.1 and EL 3.0) and the changes firm up then those changes will be implemented in the Tomcat 8 branch. So far, Tomcat 8 specific changes have been limited to re-factorings that change some of the internal APIs and therefore have not been back-ported to Tomcat 7 since we don't want to change APIs there unless we have to. Current ideas for what features (other than the specification changes) might be included in Tomcat 8 can be found in svn along with the Tomcat 8 specific changes so far.

When Will Tomcat 8 Be Available?

That all depends on when the next Java EE specification is finalized. Since the specifications are still in the very early stages, it should be expected that the first stable Tomcat 8 is at least a year or perhaps even longer off. That said, there is always the possibility of alpha and beta releases before the specifications are finalized. You can see by looking at the history of major releases that it is typical for these projects to be multi-year tasks:

  • Tomcat 5 – October 09, 2002
  • Tomcat 5.5 – August 31, 2004
  • Tomcat 6.0 – December 1, 2006
  • Tomcat 7.0 – June 29, 2010

Will We Be Able To Use Java 7 with Tomcat 7?

At the moment, you can use Java 7 with Servlets. You can use it with JSPs as long as you configure the JSP Engine to use javac as the compiler. By default, the JSP Engine is pre-configured to use the Eclipse compiler and the current version does not support Java 7. Note that I haven't actually tested using javac with JSPs that use Java 7. It should work, but if it doesn't, ask on the users list. As soon as Eclipse release a compiler that supports Java 7, Tomcat will be updated to use it.

What Will Java 7 Do For Me in Tomcat 7?

You'll be able to write Servlets and JSPs that use Java 7 but be aware that the specification states Java 6 is the minimum version so you might have portability issues. If Java 7 follows the pattern of previous releases, there should be a noticeable performance improvement using Java 7 over Java 6. As with anything performance related, you'll have to test it in your environment to see what the actual effect is.

Should I Consider Java 7 Now?

Java 7 is still in its first release, and no performance tests have been made on Tomcat 7 as of yet. Also, there has been at least one high profile bug in an Apache project, an issue with the Lucene project that Java 7 caused problems with index corruption and crashing. I have also noticed some SSL issues when using Java 7 with CLIENT-CERT authentication that I haven't had a chance to dig into yet. While certainly we can expect bugs like this to be fixed and performance to improve in the long run, before Tomcat 8 is available, it is recommended that you stay away from Java 7 in production for a little while longer, or that if you do embrace it, be sure to do extensive testing before releasing any mission-critical applications.

Mark Thomas is a Senior Software Engineer for the SpringSource Division of VMware, Inc. (NYSE: VMW). Mark has been using and developing Tomcat for over six years. He first got involved in the development of Tomcat when he needed better control over the SSL configuration than was available at the time. After fixing that first bug, he started working his way through the remaining Tomcat bugs and is still going. Along the way Mark has become a Tomcat committer and PMC member, volunteered to be the Tomcat 4 & 7 release manager, created the Tomcat security pages, become a member of the ASF and joined the Apache Security Committee. He also helps maintain the ASF's Bugzilla instances. Mark has a MEng in Electronic and Electrical Engineering from the University of Birmingham, United Kingdom.

Comments

Tomcat 7 + JDK 6 still most popular?

Nice article. JVM Host offers Tomcat 7 and JDK 7 athough does not recommend this bundle to our clients yet. Tomcat 7 + JDK 6 is still most popular and demanded tandem.

You actually make it look so

You actually make it look so easy with your performance but I find this matter to be actually something which I think I would never comprehend. It seems too complicated and extremely broad for me. I'm looking forward for your next post, I’ll try to get the hang of it! Locksmith Orlando

nice post

Now with LED lighting industry becoming more prosperous, more companies have started to look on top of the current e-commerce. The rapid growth of online shopping for the LED lighting industry sales channels provide a new possibility. led light factory

Glad to chat your blog, I

Glad to chat your blog, I seem to be forward to more reliable articles and I think we all wish to thank so many good articles, blog to share with us. I will really appreciate the writer's choice for choosing this excellent article appropriate to my matter.Here is deep description about the article matter which helped me more. meuble tv en bois

The next time I read a blog,

The next time I read a blog, I hope that it doesnt disappoint me as much as this one. I mean, I know it was my choice to read, but I actually thought you have something interesting to say. All I hear is a bunch of whining about something that you could fix if you werent too busy looking for attention. phim sex online

Hi

I did use tomcat hosting and tried it for few applications. It is working.

página web

specification are likely to be minimal and will probably happen closer to the J2EE release. In terms of Java 7 support, Tomcat 8 will require the minimum Java version specified by the Servlet 3.1 specification. At the moment, I expect that that will be Java 7 but we won't know for sure until the specification is finalized.
página web

candid wedding photography Hyderabad

. Note that I haven't actually tested using javac with JSPs that use Java 7. It should work, but if it doesn't, ask on the users list. As soon as Eclipse release a compiler that supports Java 7, Tomcat will be updated to use it.
candid wedding photography Hyderabad

Italian Coffee Maker

That said, there is always the possibility of alpha and beta releases before the specifications are finalized. You can see by looking at the history of major releases that it is typical for these projects to be multi-year tasks:
Italian Coffee Maker

wedding photography newcastle

That said, there is always the possibility of alpha and beta releases before the specifications are finalized. You can see by looking at the history of major releases that it is typical for these projects to be multi-year tasks
wedding photography newcastle

GAME HACK

hill climb racing On that website page, you'll see your description, why not read through this. clash of clans hacks

Reputation Management Orlando

On this subject internet page, you'll see my best information, be sure to look over this level of detail.
Reputation Management Orlando

What Men Secretly Want Review

This is very appealing, however , it is very important that will mouse click on the connection:
what men secretly want the respect principle

Love Traction Lines | Obsession Phrases Reviews

http://lovetractionlinesreview.co/ it's really nice and meanful. it's really cool blog. Linking is very useful thing.you have really helped lots of people who visit blog and provide them usefull information. obsession phrases examples

stanley home warranty

Such a very useful article. Very interesting to read this article.
stanley home warranty
are home warranties worth it
home protect warranty

Diabetes Free | Weight Destroyer Reviews

weight destroyer pdf download Your blogs further more each else volume is so entertaining further serviceable It appoints me befall retreat encore. I will instantly grab your rss feed to stay informed of any updates. http://www.24-7pressrelease.com/press-release/diabetes-free-review-miracle-shake-reverses-diabetes-naturally-402239.php

Lock Smith

best locksmith near me I recommend only good and reliable information, so see it: locksmith tools

MOBE

On this page, you'll see my profile, please read this information.
MOBE

MOBE

Here you will learn what is important, it gives you a link to an interesting web page:
MOBE

I most appreciating any of the idea.

I most appreciating any of the idea. is an incredible and decent impart. I must much obliged. Great employment! You all an incredible blog site, and have some extraordinary substance obat ginjal bocor alami
obat jantung bengkak paling ampuh
obat kolesterol alami.

MOBE

For many people this is important, so check out my profile:
MOBE

I do not even know how I

I do not even know how I ended up here, but I thought this post was good. I don’t know who you are but definitely you are going to a famous blogger! Condensdroger

Garage Door Repair Boulder Co

I take advantage of simply good quality components : you can view these with:
Boulder Garage Door Repair

hampton bay ceiling fans

Such a very useful article. Very interesting to read this article.I would like to thank you for the efforts you had made for writing this awesome article. hampton bay ceiling fans

Medallion App

There is so much in this article that I would never have thought of on my own. Your content gives readers things to think about in an interesting way.
Medallion App

Anne Welsh

Find out more about Anne Welsh and what she does
Anne Welsh

Creative Agency

This is very interesting, but it is necessary to click on this link:
creative agency

High Quality Cartier Love Ring Replica

For this web site, you will see our account, remember to go through this info.
cartier love ring replica

Gold Digger

On this page, you'll see my profile, please read this information.
Gold Digger Software

The Truth About Abs Review

Within this webpage, you'll see the page, you need to understand this data.
best fat burning supplement

Cash For Clothes In London

It is fine, nonetheless evaluate the information and facts around this correct.
easy to follow fundraising in school

Medallion App

It is especially decent, though look into the tips during this home address.
Medallion App

Pak Readers

On this page you can read Pak Readers - Read it my interests, write something special.

Roja Directa

This is helpful, nonetheless it can be crucial so that you can check out the following website:
Roja Directa

Top Cool Websites

Make the most of mainly premium substances - you will find him or her for:
cool websites

The worst part of it was that

The worst part of it was that the software only worked intermittently and the data was not accurate. You obviously canot confront anyone about what you have discovered if the information is not right.seo referencement

Anunturi Romani in Dublin

I have recently started a blog, the info you provide on this site has helped me greatly. Thanks  for all of your time & work.  
romani din dublin

Anunturi Romani in Dublin

his article is truly excellent. The idea values myself all of that a lot. The particular compound usually are much useful. Thanks a lot creator with regard to presenting me a real respectable post. romani din dublin

Dow Jones Focus Group Review

You should mainly superior together with well-performing material, which means that see it:
Dow Jones Focus Group Download

Sanata Tesi Frumusete Cosmetica

You should mainly superior together with well-performing material, which means that see it:
dragoste si sex

MOBE

It is fine, nonetheless evaluate the information and facts around this correct.
MOBE

MOBE

It is somewhat fantastic, and yet check out the advice at this treat.
MOBE

Profits Today

Extremely educational post! There is a great deal of data here that can help any business begin with a fruitful informal communication fight!
Profits Today

Mobe Review

Make the most of mainly premium substances - you will find him or her for:
Mobe Review

Crazy ATM

I've just decided to create a blog, which I have been wanting to do for a while. Thanks for this post, it's really useful!
Crazy ATM

Master Sniper Trading | Prof Hansen App

Prof Hansen App For many people this is important, so check out my profile: Master Sniper Trading

This is helpful, nonetheless

This is helpful, nonetheless it can be crucial so that you can check out the following website: seo training course

I use basically superior

I use basically superior fabrics : you will discover these products by: french bakery in houston

A good blog always comes-up

A good blog always comes-up with new and exciting information and while reading I have feel that this blog is really have all those quality that qualify a blog to be a one.I wanted to leave a little comment to support you and wish you a good continuation. Wishing you the best of luck for all your blogging efforts. Computer Store Orlando

After reading your article I

After reading your article I was amazed. I know that you explain it very well. And I hope that other readers will also experience how I feel after reading your article. I feel very grateful that I read this. It is very helpful and very informative and I really learned a lot from it. Marriott Credit Card

Post new comment

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.