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

I simply want to tell you

I simply want to tell you that I am new to weblog and definitely liked this blog site. Very likely I’m going to bookmark your blog . You absolutely have wonderful stories. Cheers for sharing with us your blog. คลิปเกย์ออนไลน์

Really impressed! Everything

Really impressed! Everything is very open and very clear clarification of issues. It contains truly facts. Your website is very valuable. Thanks for sharing. agenzia immobiliare padova

Really impressed! Everything

Really impressed! Everything is very open and very clear clarification of issues. It contains truly facts. Your website is very valuable. Thanks for sharing. Michael Munday

I am always searching online

I am always searching online for articles that can help me. There is obviously a lot to know about this. I think you made some good points in Features also. Keep working, great job ! Seo Firmaları

With so many books and

With so many books and articles coming up to give gateway to make-money-online field and confusing reader even more on the actual way of earning money, Hubwit is a refreshing change. I stumbled upon this site while searching for work-form-home options. watch tv series full episode

Took me time to understand

Took me time to understand all of the comments, but I seriously enjoyed the write-up. It proved being really helpful to me and Im positive to all of the commenters right here! Its constantly nice when you can not only be informed, but also entertained! I am certain you had enjoyable writing this write-up. ChrisCaggs

I have bookmarked your

I have bookmarked your website because this site contains valuable information in it. I am really happy with articles quality and presentation. Thanks a lot for keeping great stuff. I am very much thankful for this site. Compagnie de ménage Montréal

wow, great, I was wondering

wow, great, I was wondering how to cure acne naturally. and found your site by google, learned a lot, now i’m a bit clear. I’ve bookmark your site and also add rss. keep us updated. Vantage Point Title

I've got not long ago started

I've got not long ago started off some sort of blog site, the internet people produce here possesses served everyone enormously. Appreciate it intended for all of your current time period & do the job. http://www.yelp.co.uk/biz/thomas-oldham-seo-london

Welcome to the party of my

I also wrote an article on a similar subject will find it at write what you think. نمایندگی هاست ویندوز

This is also a very good post

This is also a very good post which I really enjoyed reading. It is not every day that I have the possibility to see something like this.. Prepping

This post is very simple to

This post is very simple to read and appreciate without leaving any details out. Great work! You completed certain reliable points there. I did a search on the subject and found nearly all persons will agree with your blog. custom xbox one controller

Really nice and interesting

Really nice and interesting post. I was looking for this kind of information and enjoyed reading this one. Keep posting. Thanks for sharing. Bay Area Moving Company

This is very interesting, but

This is very interesting, but it is necessary to click on this link: family practice

sl786982

This is gold stuff from you, mate. You've really impressed me today with this article. I hope to read more wonderful articles like this one. I hope you'll not disappoint me. Cheers, mate! haandbold efterskole

sl786982

sl786982

Our vans are Spacious and comfortable for those large groups. Our vans are fully air conditioned. club flyers

sl786982

I recently came across your

I recently came across your article and have been reading along. I want to express my admiration of your writing skill and ability to make readers read from the beginning to the end. I would like to read newer posts and to share my thoughts with you. หารายได้เสริม

Once I thought about things

Once I thought about things like: why such information is for free here? Because when you write a book then at least on selling a book you get a percentage. Thank you and good luck on informing people more about it… แบตเตอรี่รถยนต์

I recommend only good and

I recommend only good and reliable information, so see it: Bogota Plantas Electricas

I just got to this amazing

I just got to this amazing site not long ago. I was actually captured with the piece of resources you have got here. Big thumbs up for making such wonderful blog page! dofollow backlinks

I invite you to the page

I invite you to the page where see how much we have in common. Consultoria de equipo Mac

Acknowledges for penmanship

Acknowledges for penmanship such a worthy column, I stumbled beside your blog besides predict a handful advise. I want your tone of manuscript... extintores

I invite you to the page

I invite you to the page where see how much we have in common. Friv games

You possess lifted an

You possess lifted an essential offspring..Blesss for using..I would want to study better latest transactions from this blog..preserve posting.. more about felina bras here

This is my first time i visit

This is my first time i visit here. I found so many entertaining stuff in your blog, especially its discussion. From the tons of comments on your articles, I guess I am not the only one having all the leisure here! Keep up the good work. I have been meaning to write something like this on my website and you have given me an idea. escorts en la serena

I really appreciate this

I really appreciate this wonderful post that you have provided for us. I assure this would be beneficial for most of the people. Obsession Phrases

I can give you the address

I can give you the address Here you will learn how to do it correctly. Read and write something good. Day Trader Salary

gsdg

Thanks for showing this awesome post APP download and click and click and click and click and click

Cheap content, With thanks

Cheap content, With thanks just for stating This approach skills. Wonderfully developed page, only if all of the the blogosphere obtainable the equivalent degree content and articles simply because, websites became a more desirable space. Delight continue!
Cheap Club Flyers

I have bookmarked your

I have bookmarked your website because this site contains valuable information in it. I am really happy with articles quality and presentation. Thanks a lot for keeping great stuff. I am very much thankful for this site. escorts en calama

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. escorts en rancagua

Acknowledges for penmanship

Acknowledges for penmanship such a worthy column, I stumbled beside your blog besides predict a handful advise. I want your tone of manuscript... Limo Service CT to NYC

Great posts

I like viewing web sites which comprehend the price of delivering the excellent useful resource free of charge. I truly adored reading your posting. Thank you!
Leather Messenger Bag

sl786982

I really enjoy simply reading all of your weblogs. Simply wanted to inform you that you have people like me who appreciate your work. Definitely a great post. Hats off to you! The information that you have provided is very helpful. best beer from belgium

sl786982

sl786982

You have a good point here!I totally agree with what you have said!!Thanks for sharing your views...hope more people will read this article!!! hire a bartender

sl786982

Very good post! We will be

Very good post! We will be linking to this great post on our site. Keep up the great writing.
Mortgage Broker Calgary

sl786982

If you are trying to get your ‘special’ girl but don’t have a clue how to approach her then you’re not alone. Tour In Miami Beach

sl786982

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

Great work.Very informative

Great work.Very informative post.

Java Training in chennai | online Java Training |Online Java Training from India | Java Training Institutes in Chennai |Java Interview Questions

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

OC Housing News

This is helpful, nonetheless it can be crucial so that you can check out the following website:
Real Estate Market News

GAME HACK

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

Post new comment

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