{"id":304,"date":"2013-02-18T16:45:41","date_gmt":"2013-02-18T15:45:41","guid":{"rendered":"http:\/\/qualilogy.com\/en\/?p=304"},"modified":"2013-02-18T17:21:47","modified_gmt":"2013-02-18T16:21:47","slug":"install-sonar-tomcat","status":"publish","type":"post","link":"http:\/\/qualilogy.com\/en\/install-sonar-tomcat\/","title":{"rendered":"Install Sonar &#8211; Tomcat"},"content":{"rendered":"<p><a href=\"http:\/\/vicken.deviantart.com\/\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" class=\"alignright size-full wp-image-449\" alt=\"SONAR Installation de Tomcat\" src=\"http:\/\/qualilogy.com\/fr\/wp-content\/uploads\/sites\/2\/2013\/02\/SONAR_Install_Tomcat.jpg\" width=\"350\" height=\"233\" \/><\/a>We have seen how to <a title=\"Install SONAR - Install a JDK\" href=\"http:\/\/qualilogy.com\/en\/install-sonar-jdk\/\" target=\"_blank\">install a JDK<\/a> in our environment (Windows 7 Professional Edition), we will now look at how to install Tomcat.<\/p>\n<p>But first, what is Tomcat? As before, I will not go into a detailed description of each tool that we install, you can find all the literature you want on Internet.<!--more--><\/p>\n<p>Let&#8217;s just say that Tomcat is an application server, which will allow us to use different components of our platform of code analysis, such as SONAR and Jenkins.<\/p>\n<p>There are several ways to use and thus install Tomcat. Our choice will be to use Tomcat as a Windows service. Personally, this is what I find the most simple, the most flexible and easiest way to use it.<\/p>\n<h2>Downloading Tomcat<\/h2>\n<p>I have downloaded Tomcat directly through this link: <a title=\"Download Tomcat\" href=\"http:\/\/apache.mirror.clusters.cc\/tomcat\/tomcat-7\/v7.0.23\/bin\/apache-tomcat-7.0.23.exe\" target=\"_blank\">http:\/\/apache.mirror.clusters.cc\/tomcat\/tomcat-7\/v7.0.23\/bin\/apache-tomcat-7.0.23.exe<\/a>. A download window appears, allowing you to specify where you want to save the file to install Tomcat.<\/p>\n<h2>Installing Tomcat<\/h2>\n<p>Once this executable file has been downloaded, we launch it to install Tomcat. This first page appears:<\/p>\n<p><a href=\"http:\/\/qualilogy.com\/fr\/wp-content\/uploads\/sites\/2\/2013\/02\/SONAR_Install_Tomcat1.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-468\" alt=\"Sonar Install - Tomcat\" src=\"http:\/\/qualilogy.com\/fr\/wp-content\/uploads\/sites\/2\/2013\/02\/SONAR_Install_Tomcat1.jpg\" width=\"506\" height=\"392\" \/><\/a><\/p>\n<p>Click the &#8216;Next&#8217; button to continue and see a page that asks us to accept the Apache license &#8230;<\/p>\n<p><a href=\"http:\/\/qualilogy.com\/fr\/wp-content\/uploads\/sites\/2\/2013\/02\/SONAR_Install_Tomcat2.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-469\" alt=\"Sonar Install - Tomcat\" src=\"http:\/\/qualilogy.com\/fr\/wp-content\/uploads\/sites\/2\/2013\/02\/SONAR_Install_Tomcat2.jpg\" width=\"503\" height=\"391\" \/><\/a><\/p>\n<p>&#8230; which we do by clicking the button &#8216;I Agree&#8217;.<\/p>\n<p>The next page asks us to choose which Tomcat components we want to install:<\/p>\n<p><a href=\"http:\/\/qualilogy.com\/fr\/wp-content\/uploads\/sites\/2\/2013\/02\/sonar_install_tomcat3.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-470\" alt=\"Sonar Install - Tomcat\" src=\"http:\/\/qualilogy.com\/fr\/wp-content\/uploads\/sites\/2\/2013\/02\/sonar_install_tomcat3.jpg\" width=\"503\" height=\"391\" \/><\/a><\/p>\n<p>We will let the default options. The &#8216;Next&#8217; button leads to a configuration window:<a href=\"http:\/\/qualilogy.com\/fr\/wp-content\/uploads\/sites\/2\/2013\/02\/sonar_install_tomcat4.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-471\" alt=\"Sonar Install - Tomcat\" src=\"http:\/\/qualilogy.com\/fr\/wp-content\/uploads\/sites\/2\/2013\/02\/sonar_install_tomcat4.jpg\" width=\"504\" height=\"391\" \/><\/a><\/p>\n<p>I change the (HTTP) port to connect to Tomcat with the value &#8216;8888&#8217;. For what reason? In fact, I am used to do it because some software (Oracle for instance) had previously the bad practice to use the default 8080 port. You can leave this value or otherwise do as I do and change it, but it is not mandatory.<\/p>\n<p>Then enter a login for the Tomcat Administrator. I do simple: user \/ password = admin \/ admin. If you decide to install Tomcat on a server accessible from the network by different people or teams, you can choose other login settings, but for a local installation on our workstation, no need to do it complicated to remember.<\/p>\n<p><a href=\"http:\/\/qualilogy.com\/fr\/wp-content\/uploads\/sites\/2\/2013\/02\/sonar_install_tomcat5.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-472\" alt=\"Sonar Install - Tomcat\" src=\"http:\/\/qualilogy.com\/fr\/wp-content\/uploads\/sites\/2\/2013\/02\/sonar_install_tomcat5.jpg\" width=\"505\" height=\"391\" \/><\/a><\/p>\n<p>Tomcat also asks us where is located the JVM (Java Virtual Machine) and our JRE. We have seen these concepts in our previous post about &#8216;how to <a title=\"Install SONAR - Install a JDK\" href=\"http:\/\/qualilogy.com\/en\/install-sonar-jdk\/\" target=\"_blank\">install a JDK<\/a>&#8216;.<\/p>\n<p>And finally, Tomcat will ask us in which directory we want it to be installed:<\/p>\n<p><a href=\"http:\/\/qualilogy.com\/fr\/wp-content\/uploads\/sites\/2\/2013\/02\/sonar_install_tomcat6.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-465\" alt=\"l'installation d'un JDK\" src=\"http:\/\/qualilogy.com\/fr\/wp-content\/uploads\/sites\/2\/2013\/02\/sonar_install_tomcat6.jpg\" width=\"506\" height=\"392\" \/><\/a><\/p>\n<p>Again, I suggest you let the default installation directory: in case of trouble, any person to whom you could ask for help will first check in this directory and could think that Tomcat is not installed if found empty.<\/p>\n<p>Finally, a click on the button &#8216;Install&#8217; starts the installation, which goes very quickly.<\/p>\n<h3>Launching Tomcat<\/h3>\n<p>Tomcat is installed as a Windows service. A Windows service is simply an application launched (or not) by Windows at startup. To view and configure the Tomcat service, the easiest way is to type &#8216;Services&#8217; in the search bar of the Windows programs, which appears when you click on &#8216;Start&#8217; or press the &#8216;Windows&#8217; key on your keyboard.<\/p>\n<p>Windows will then offer you different choices, including a program called &#8216;View local services&#8217;. It is also available via the Control Panel, but it is more difficult to find in this way. In addition, our research allows us to drag-and-drop this program to an icon in the main screen \/ folder of Windows. I thus call these services with a single click on this icon, and stop \/ start them whenever I need.<a href=\"http:\/\/qualilogy.com\/fr\/wp-content\/uploads\/sites\/2\/2013\/02\/sonar_tomcat_service.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignright size-full wp-image-467\" alt=\"Tomcat en Service Windows\" src=\"http:\/\/qualilogy.com\/fr\/wp-content\/uploads\/sites\/2\/2013\/02\/sonar_tomcat_service.jpg\" width=\"478\" height=\"140\" \/><\/a><\/p>\n<p>Once launched the Services window, we find the Tomcat we just have installed.<\/p>\n<p>Right click on a service allows us to access to the &#8216;Properties&#8217; screen from the contextual menu, and define the startup mode of the service, or stop and \/ or start it. It is an operation that we may need to make quite often, especially for the installation of new applications as SONAR and Jenkins.<\/p>\n<p>We must also wait to install them to see a little more how Tomcat works.<\/p>\n<p>But first, we will need a database. This will be the topic of the next post dedicated to Oracle installation. In the meantime, have a good week!<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>We have seen how to install a JDK in our environment (Windows 7 Professional Edition), we will now look at how to install Tomcat. But first, what is Tomcat? As before, I will not go into a detailed description of each tool that we install, you can find all the literature you want on Internet.<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[],"class_list":["post-304","post","type-post","status-publish","format-standard","hentry","category-sonar-installation"],"_links":{"self":[{"href":"http:\/\/qualilogy.com\/en\/wp-json\/wp\/v2\/posts\/304"}],"collection":[{"href":"http:\/\/qualilogy.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/qualilogy.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/qualilogy.com\/en\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"http:\/\/qualilogy.com\/en\/wp-json\/wp\/v2\/comments?post=304"}],"version-history":[{"count":8,"href":"http:\/\/qualilogy.com\/en\/wp-json\/wp\/v2\/posts\/304\/revisions"}],"predecessor-version":[{"id":308,"href":"http:\/\/qualilogy.com\/en\/wp-json\/wp\/v2\/posts\/304\/revisions\/308"}],"wp:attachment":[{"href":"http:\/\/qualilogy.com\/en\/wp-json\/wp\/v2\/media?parent=304"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/qualilogy.com\/en\/wp-json\/wp\/v2\/categories?post=304"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/qualilogy.com\/en\/wp-json\/wp\/v2\/tags?post=304"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}