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

Obat Herbal Paling Ampuh

obat stroke ringan paling ampuh di dunia Amazon Plus terdapat antioksidan superjuga ada buah Zaitun yang kaya akan zat Hydroxytyrosol Obat Tradisional Amazon terbukti memiliki berbagai macam manfaat untuk tubuh kita semua, diantaranya adalah : untuk menetralisir radikal-radikal bebas di dalam tubuh kita, meregenerasi setiap sel-sel di dalam tubuh manusia,Obat Alami Stroke ini akan menolong menyehatkan serta menyempurnakan kegunaan organ otak seperti semula.

Obat Herbal Gondok Tiroid Beracun Solusi terpercaya dan pertama di Indonesia yang merupakan karya asli anak bangsa, yaitu obat Obat Tradisional Sakit Gondok “Jus Kulit Manggis”.
amazon Plus merupakan jawaban yang paling aman untuk mengatasi sakit gondok, rasanya yang nikmat serta terjamin dalam tahap pengobatan tanpa ada efek samping.

Obat Jantung Koroner Tanpa Operasi amazon Plus secara langsung mempunyai efek anti-aterogenik yang sanggup mencegah timbulnya Sakit Jantung Koroner. Pencegahan kedua diperuntukan supaya mencegah datangnya serangan ulangan pada seseorang yang sudah pernah terkena Penyakit Jantung Koroner serta amazon Alami pun menjadi pencegahan yang baik. Selain itu, dengan amazon Plus, darah tinggi, kencing manis serta kegemukan bisa terkendali.

Toko Online Diherbal.com menawarkan jenis herbal berkualitas tinggi dengan tujuan untuk memperbaiki mutu kesehatan Anda. Diherbal.com merupakan toko online yang menjual obat obatan herbal bermutu.

Diherbal Online Shop

Obat Gagal Ginjal Kronis Terkena Gagal Ginjal karena konsumsi obat sakit jantung, mampu dipulihkan berkat Amazon Plus Obat Herbal Gagal Ginjal Kronis yang meregenerasi sel dan mengembalikan fungsi organ ginjal untuk menyaring darah.

Obat Penyakit Jantung Bengkak Amazon Plus mengandung zat xanthones yang terkandung pada kulit buah manggis telah terbukti efektif dalam menumpas berbagai jenis penyakit kardiovaskular terutama jantung bengkak. Xanthone senyawa xanthone juga dapat memulihkan pembengkakan jantung dan mengembalikan ukurannya menjadi normal.

Obat Jantung Koroner Paling Ampuh Amazon Plus ekstrak kulit manggis mengandung banyak khasiat di antaranya yakni mampu memperkuat serta memperlebar pembuluh darah jantung, menormalkan kadar kolesterol jahat & dapat menurunkan tekanan hipertensi. Penyakit Jantung Koroner disebabkan oleh adanya penyumbatan di pembuluh darah jantung, sebab adanya timbunan kolesterol di dinding pembuluh nadi, sehingga Amazon Plus akan menghancurkan penyumbatan pembuluh darah koroner pada jantung akibat plak kolesterol.

Toko Obat Herbal GrosirAmazonPlus.com kami menjual segala jenis herbal berkualitas tinggi bermaksud untuk membantu meningkatkan mutu kesehatan Anda. Kami adalah pusat grosir obat herbal terbesar di Indonesia.

thank brow

Jasa menyewa mobil di pulau malang bisa anda temukan dengan mencari di google terkait tentang sewa mobil malang batu yang tarifnya murah dan bersahabat. Anda juga bisa menggunakan jasa sopir atau juga bisa lepas kunci (tanpa sopir). Tapi untuk sewa mobil malang lepas kunci, ada banyak syarat dan ketentuan yang harus dipenuhi karena pihak kantor penyedia jasa rental mobil malang takut mobilnya dibawa kabur oleh penyewa. Sudah banyak kejadian sewa mobil lepas kunci dan mobilnya digadaikan oleh customer tersebut. Untuk menyewa mobil di malang yang dengan sopir sewa mobil malang murah.
Jasa sewa mobil di surabaya yang bisa angkut-angkut barang untuk pindahan rumah atau pindah kost sangatlah banyak. Jasa transportasi kota surabaya ini biasanya menggunakan mobil pick up yang memang dikhususkan untuk mengangkut barang-barang. Sewa mobil surabaya ini tarif harganya disesuaikan dengan jarak yang akan ditempuh, seperti contok sewa mobil dari surabaya barat menuju surabaya timur tarif harganya cukup 200.000 rupiah saja. Lakukan pemesanan sekarang untuk jasa sewa mobil surabaya untuk angkut barang klik infonya disini.
Kota wisata batu memang sering menjadi tempat bagi pasangan muda mudi yang sedang lagi pacaran dan menikmati dinginnya suasana biar terlihat romantis. Salah satu tempat yang cocok dijadikan tempat berduaan adalah wisata alun-alun kota batu. Dengan tatanan yang apik dan rapi, alun-alun batu ini selalu padat oleh pengunjung setiap malam. Banyak kuliner pilihan yang juga dijual berjejer rapi di sekitar area alun-alun batu tersebut. Menikmati kuliner yang hangat-hangat di dinginnya kota batu tentu akan menjadi romantisme sendiri bersama pasangan.

This content is written very

This content is written very well. Your use of formatting when making your points makes your observations very clear and easy to understand. Thank you.
Stone Forum News

Great knowledge, do anyone

Great knowledge, do anyone mind merely reference back to it
hotel deals Rome

Please continue this great

Please continue this great work and I look forward to more of your awesome blog posts.
i coffee maker reviews

sl786982

I really appreciate the kind of topics you post here. Thanks for sharing us a great information that is actually helpful. Good day!!! online medical symptom checker

sl786982

sl786982

Thanks that you explained every single word in a great manner that everybody can understand well. online medical diagnosis tool

sl786982

sl786982

I think this is a better than regular content. You create this information amazing and hair in. You provide perusers a ton to consider and I welcome that type of writing www.actua-net.com

sl786982

Thanks for the post and great

Thanks for the post and great tips..even I also think that hard work is the most important aspect of getting success..
Casa das Alianças

I am no expert, but I believe

I am no expert, but I believe you just made an excellent point. You certainly fully understand what you are speaking about, and I can truly get behind that.
Hitting Drills

Your content is nothing short

Your content is nothing short of brilliant in many ways. I think this is engaging and eye-opening material. Thank you so much for caring about your content and your readers.
West Virginia Mesothelioma Lawyer

this is really nice to

this is really nice to read..informative post is very good to read..thanks a lot!
new futura condo showflat

This was a really great

This was a really great contest and hopefully I can attend the next one. It was alot of fun and I really enjoyed myself..
find used engines

Thanks for taking the time to

Thanks for taking the time to discuss this, I feel strongly that love and read more on this topic. If possible, such as gain knowledge, would you mind updating your blog with additional information? It is very useful for me.
new futura condominium

This article gives the light

This article gives the light in which we can observe the reality. This is very nice one and gives indepth information. Thanks for this nice article.
Light Fittings

Please continue this great

Please continue this great work and I look forward to more of your awesome blog posts.
astra centre

Great job for publishing such

Great job for publishing such a beneficial web site. Your web log isn’t only useful but it is additionally really creative too. There tend to be not many people who can certainly write not so simple posts that artistically. Continue the nice writing
new futura price

Post new comment

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