<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Web2.0 Tutorials &#187; configuration</title>
	<atom:link href="http://www.zulutown.com/blog/tag/configuration/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.zulutown.com/blog</link>
	<description>All the Guides You Need to Become a Web2.0 Expert</description>
	<lastBuildDate>Mon, 13 Jul 2009 07:50:00 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Setup Tomcat6 on Eclipse</title>
		<link>http://www.zulutown.com/blog/2009/01/18/setup-tomcat6-on-eclipse/</link>
		<comments>http://www.zulutown.com/blog/2009/01/18/setup-tomcat6-on-eclipse/#comments</comments>
		<pubDate>Sun, 18 Jan 2009 23:10:07 +0000</pubDate>
		<dc:creator>Zulutown Webmaster</dc:creator>
				<category><![CDATA[Eclipse]]></category>
		<category><![CDATA[Tomcat]]></category>
		<category><![CDATA[configuration]]></category>
		<category><![CDATA[ganymede]]></category>
		<category><![CDATA[tomcat6]]></category>

		<guid isPermaLink="false">http://www.zulutown.com/blog/?p=5</guid>
		<description><![CDATA[Download Eclipse IDE for Java EE Developers from http://www.eclipse.org/downloads/ and tomcat6 from http://tomcat.apache.org/download-60.cgi
Extract both of them where you prefer. I extracted Eclipse in /opt/eclipse and Tomcat in /opt/tomcat6), then run Eclipse.
When you&#8217;ll run eclipse it asks you about creating a new workspace (that will be used to store all of your projects), so create a [...]]]></description>
			<content:encoded><![CDATA[<p>Download Eclipse IDE for Java EE Developers from <a href="http://www.eclipse.org/downloads/">http://www.eclipse.org/downloads/</a> and tomcat6 from <a href="http://tomcat.apache.org/download-60.cgi">http://tomcat.apache.org/download-60.cgi</a></p>
<p>Extract both of them where you prefer. I extracted Eclipse in /opt/eclipse and Tomcat in /opt/tomcat6), then run Eclipse.</p>
<p>When you&#8217;ll run eclipse it asks you about creating a new workspace (that will be used to store all of your projects), so create a <em>workspace</em>, usually somewhere in your user home directory.</p>
<p>When Eclipse is up and running, choose <em>preferences</em> from the <em>window</em> menu. Choose from the bar on the left: Server, Runtime Environments.</p>
<div id="attachment_6" class="wp-caption aligncenter" style="width: 247px"><img class="size-medium wp-image-6" title="Preferences" src="http://www.zulutown.com/blog/wp-content/uploads/2009/01/screenshot-preferences-237x300.png" alt="Preferences window in Eclipse" width="237" height="300" /><p class="wp-caption-text">Preferences</p></div>
<p>Click the button <em>Add</em>, choose <em>Apache Tomcat 6</em>.</p>
<div id="attachment_7" class="wp-caption aligncenter" style="width: 310px"><img class="size-medium wp-image-7" title="New Server Runtime Environment" src="http://www.zulutown.com/blog/wp-content/uploads/2009/01/screenshot-new-server-runtime-environment-300x275.png" alt="New Server Runtime Environment" width="300" height="275" /><p class="wp-caption-text">New Server Runtime Environment</p></div>
<p>In the next page, <em>browse</em> on your disk and choose the directory where you previously extracted Tomcat. In my case it&#8217;s /opt/tomcat6. Finally click Finish.</p>
<div id="attachment_9" class="wp-caption aligncenter" style="width: 310px"><img class="size-medium wp-image-9" title="New Server Runtime Environment - Server Path" src="http://www.zulutown.com/blog/wp-content/uploads/2009/01/screenshot-new-server-runtime-environment-1-300x275.png" alt="New Server Runtime Environment - Server Path" width="300" height="275" /><p class="wp-caption-text">New Server Runtime Environment - Server Path</p></div>
<p>Well, until now we have just told to our workspace where Tomcat &#8220;installation&#8221; is located on our disk.</p>
<p>But, if we wish to run Java Web Applications within Eclipse, we should setup a Server and eventually assign to it a specific configuration.<br />
Go in the <em>Servers</em> view, right click and choose New, then Server.</p>
<p>Select &#8220;Tomcat v6.0 Server&#8221; as server type (or probably it will be automatically pre-selected), then, in the <em>Server Runtime environment</em> select box you&#8217;ll have to choose &#8220;Apache Tomcat v6.0&#8243; (that&#8217;s probably the only available option.</p>
<div id="attachment_39" class="wp-caption aligncenter" style="width: 310px"><img class="size-medium wp-image-39" title="New Tomcat Server in Eclipse" src="http://www.zulutown.com/blog/wp-content/uploads/2009/01/eclipse-new-tomcat-server-300x290.png" alt="New Tomcat Server in Eclipse" width="300" height="290" /><p class="wp-caption-text">New Tomcat Server in Eclipse</p></div>
<p>Click on Next, Eclipse will prompt you to eventually add (or remove) web projects from this Server, in this case, if your workspace is empty you&#8217;ll have not any project to add. So, click <em>Finish</em>.</p>
<div id="attachment_40" class="wp-caption aligncenter" style="width: 310px"><img class="size-medium wp-image-40" title="Add remove Eclipse projects from Tomcat" src="http://www.zulutown.com/blog/wp-content/uploads/2009/01/eclipse-add-remove-projects-from-tomcat-300x290.png" alt="eclipse-add-remove-projects-from-tomcat" width="300" height="290" /><p class="wp-caption-text">Add remove Eclipse projects from Tomcat</p></div>
<p>In the <em>Servers</em> panel, you will see the Tomcat you just added, and in the <em>Project Explorer</em> view, a new Server configuration will  magical appear.</p>
<p>So you can edit the configuration file <code>server.xml</code> as you prefer, change AJP or HTTP connector ports and so on, start/stop/debug the server and obviously add and remove projects from it.</p>
<div id="attachment_41" class="wp-caption aligncenter" style="width: 310px"><img class="size-medium wp-image-41" title="Editing Tomcat configuration in Eclipse" src="http://www.zulutown.com/blog/wp-content/uploads/2009/01/tomcat-configuration-300x177.png" alt="Editing Tomcat configuration in Eclipse" width="300" height="177" /><p class="wp-caption-text">Editing Tomcat configuration in Eclipse</p></div>
<p>It is also possible to add other server &#8220;instances&#8221;, just right click again in the &#8220;Servers&#8221; view, and follow the procedure described before.</p>
<p>In this way, you will just a single &#8220;Tomcat&#8221; binaries location (that you defined in the first step of this tutorial), but you&#8217;ll have the chance to add many instances of that server, each of them with its specific configuration (imagine the <code>/conf</code> directory of Tomcat) and its specific web application (imagine the <code>/webapps</code> directory).</p>
<div id="attachment_42" class="wp-caption aligncenter" style="width: 310px"><img class="size-medium wp-image-42" title="Multiple Tomcat Instances in Eclipse" src="http://www.zulutown.com/blog/wp-content/uploads/2009/01/eclipse-multiple-tomcat-instances-300x291.png" alt="Multiple Tomcat Instances in Eclipse" width="300" height="291" /><p class="wp-caption-text">Multiple Tomcat Instances in Eclipse</p></div>
<p>For the more expert ones, it is similar to have more instances on the same tomcat binaries defined on different <code>CATALINA_BASE</code> paths.</p>
<p>I hope this tutorial has been useful, please post any question or comment.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.zulutown.com/blog/2009/01/18/setup-tomcat6-on-eclipse/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
	</channel>
</rss>
