<?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>LogikDevelopment &#187; root context</title>
	<atom:link href="http://www.logikdev.com/tag/root-context/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.logikdev.com</link>
	<description>&#34;Il n&#039;y a pas de problème, il n&#039;y a que des solutions. L&#039;esprit de l&#039;homme invente ensuite le problème.&#34; André Gide</description>
	<lastBuildDate>Fri, 27 Aug 2010 08:54:27 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Deploy your app to the root context</title>
		<link>http://www.logikdev.com/2010/01/06/deploy-your-app-to-the-root-context/</link>
		<comments>http://www.logikdev.com/2010/01/06/deploy-your-app-to-the-root-context/#comments</comments>
		<pubDate>Wed, 06 Jan 2010 20:10:49 +0000</pubDate>
		<dc:creator>smoreau</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Tricks]]></category>
		<category><![CDATA[root context]]></category>
		<category><![CDATA[Tomcat]]></category>

		<guid isPermaLink="false">http://www.logikdev.com/?p=243</guid>
		<description><![CDATA[This is an easy trick which I am sure most of you already know. Let&#8217;s take a Java application called MyAddressBook. Its generated war file could be called myaddressbook.war. By default, when you deploy this web application to Tomcat, the URL to access it will be http://localhost:8080/myaddressbook/. And if you point a domain name such [...]]]></description>
			<content:encoded><![CDATA[<p>This is an easy trick which I am sure most of you already know.</p>
<p>Let&#8217;s take a Java application called MyAddressBook. Its generated war file could be called <code>myaddressbook.war</code>.</p>
<p>By default, when you deploy this web application to Tomcat, the URL to access it will be <em>http://localhost:8080/myaddressbook/</em>. And if you point a domain name such as &#8216;addressbook.com&#8217; to this server, the URL would be <em>http://addressbook.com/myaddressbook/</em>.</p>
<p>I don&#8217;t know for you but I don&#8217;t like to systematically have the subfolder &#8216;myaddressbook&#8217; after my domain. But maybe I am too picky! <img src='http://www.logikdev.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>The idea is to deploy our application in the Tomcat root context.<br />
You have two ways of doing this:</p>
<ul>
<li>Define a <code>ROOT.xml</code> file in your <code>conf/Catalina/localhost</code> folder, or;</li>
<li>Rename your war file to <code>ROOT.war</code>.</li>
</ul>
<p>Note that the case is important, it has to be ROOT in <strong>UPPERCASE</strong>! <img src='http://www.logikdev.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Once this is done, you will be able to call your application via the URL <em>http://localhost:8080/</em><br />
or <em>http://addressbook.com/</em>.  Way better! <img src='http://www.logikdev.com/wp-includes/images/smilies/icon_cool.gif' alt='8-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.logikdev.com/2010/01/06/deploy-your-app-to-the-root-context/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
