<?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>blog.watashii &#187; webapp</title>
	<atom:link href="http://blog.watashii.com/tag/webapp/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.watashii.com</link>
	<description></description>
	<lastBuildDate>Wed, 02 Nov 2011 02:23:46 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
		<item>
		<title>How to Change Default Homepage in Tomcat</title>
		<link>http://blog.watashii.com/2008/10/how-to-change-default-homepage-in-tomcat/</link>
		<comments>http://blog.watashii.com/2008/10/how-to-change-default-homepage-in-tomcat/#comments</comments>
		<pubDate>Tue, 14 Oct 2008 09:04:51 +0000</pubDate>
		<dc:creator>watashii</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[jsp]]></category>
		<category><![CDATA[tomcat]]></category>
		<category><![CDATA[webapp]]></category>

		<guid isPermaLink="false">http://blog.watashii.com/?p=77</guid>
		<description><![CDATA[When browsing to a Tomcat&#8217;s webserver, at the root URL over the default port 8080, it usually shows the default jsp homepage as pictured above. http://localhost:8080 So how can I update / modify, or remove this page? You might think changing the jsp page at [$CATALINA_HOME/webapps/ROOT/index.jsp] is all you need to do. This is where [...]


Related Posts:<ol><li><a href='http://blog.watashii.com/2009/06/businessobjects-changing-tomcat-session-timeout/' rel='bookmark' title='Permanent Link: BusinessObjects Enterprise &#8211; Changing Tomcat Session Timeout'>BusinessObjects Enterprise &#8211; Changing Tomcat Session Timeout</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p><a href="http://blog.watashii.com/wp-content/uploads/2008/10/apache_tomcat_homepage.png"><img class="alignnone size-medium wp-image-78" title="apache_tomcat_homepage" src="http://blog.watashii.com/wp-content/uploads/2008/10/apache_tomcat_homepage-300x226.png" alt="" width="300" height="226" /></a></p>
<p>When browsing to a Tomcat&#8217;s webserver, at the root URL over the default port 8080, it usually shows the default jsp homepage as pictured above.</p>
<p><code>http://localhost:8080</code></p>
<p>So how can I update / modify, or remove this page?</p>
<p>You might think changing the jsp page at [<em>$CATALINA_HOME/webapps/ROOT/index.jsp</em>] is all you need to do.  This is where i found out its <strong>not</strong> the case!  The page contents are compiled within the ROOT web application servlet.  To make Tomcat reference the jsp page instead, we need to remove this servlet from being compiled.</p>
<p>Locate the ROOT web application&#8217;s config file at [<em>$CATALINA_HOME/webapps/ROOT/WEB-INF/web.xml</em>], and simply comment out the following code fragment:</p>
<pre><code>&lt;!-- Comment this section so I can change the default index.jsp homepage
&lt;servlet&gt;
  &lt;servlet-name&gt;org.apache.jsp.index_jsp&lt;/servlet-name&gt;
  &lt;servlet-class&gt;org.apache.jsp.index_jsp&lt;/servlet-class&gt;
&lt;/servlet&gt;

&lt;servlet-mapping&gt;
  &lt;servlet-name&gt;org.apache.jsp.index_jsp&lt;/servlet-name&gt;
  &lt;url-pattern&gt;/index.jsp&lt;/url-pattern&gt;
&lt;/servlet-mapping&gt;
--&gt;</code></pre>
<p>This will disable the <em>index_jsp</em> servlet.  Now when you restart the Tomcat web application server, it should compile and load the default [<em>$CATALINA_HOME/webapps/ROOT/index.jsp</em>] page instead.</p>


<p>Related Posts:<ol><li><a href='http://blog.watashii.com/2009/06/businessobjects-changing-tomcat-session-timeout/' rel='bookmark' title='Permanent Link: BusinessObjects Enterprise &#8211; Changing Tomcat Session Timeout'>BusinessObjects Enterprise &#8211; Changing Tomcat Session Timeout</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://blog.watashii.com/2008/10/how-to-change-default-homepage-in-tomcat/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

