<?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>lejnieks &#187; Tomcat</title>
	<atom:link href="http://www.lejnieks.com/tag/tomcat/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.lejnieks.com</link>
	<description></description>
	<lastBuildDate>Fri, 29 Jan 2010 19:22:21 +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>Installing Tomcat on CentOS</title>
		<link>http://www.lejnieks.com/2008/11/17/installing-tomcat-on-centos/</link>
		<comments>http://www.lejnieks.com/2008/11/17/installing-tomcat-on-centos/#comments</comments>
		<pubDate>Tue, 18 Nov 2008 05:27:26 +0000</pubDate>
		<dc:creator>klejnieks</dc:creator>
				<category><![CDATA[Server]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[Hudson]]></category>
		<category><![CDATA[Tomcat]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[Yum]]></category>

		<guid isPermaLink="false">http://lejnieks.com/?p=52</guid>
		<description><![CDATA[Continuing in setting up my CentOS server, the next thing I need is to get Hudson setup. Before I can get Hudson up and running I&#8217;ll need to get Tomcat installed. I could of course use Winstone which will get me up and running, but I know I will need Tomcat soon for some other [...]]]></description>
			<content:encoded><![CDATA[<p>Continuing in setting up my CentOS server, the next thing I need is to get Hudson setup. Before I can get Hudson up and running I&#8217;ll need to get Tomcat installed. I could of course use <a href="http://winstone.sourceforge.net/">Winstone</a> which will get me up and running, but I know I will need Tomcat soon for some other things as well so might as well get it setup now.</p>
<p><span id="more-52"></span></p>
<p><strong>The Setup</strong></p>
<p>Install some base packages</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># yum install rpm-build gcc-java</span></pre></div></div>

<p>Add jpackage repository to your yum repos</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># cd /etc/yum.repos.d/</span>
<span style="color: #666666; font-style: italic;"># wget https://jpackage.org/jpackage.repo</span>
<span style="color: #666666; font-style: italic;"># vi /etc/yum.repos.d/jpackage.repo</span></pre></div></div>

<p>set enabled = 1 on all repo files and save the .repo file. Next update yum.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># yum update</span></pre></div></div>

<p>Download and install some SRPMs.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># cd /usr/local/src</span>
<span style="color: #666666; font-style: italic;"># wget ftp://jpackage.hmdc.harvard.edu/mirrors/JPackage/1.7/generic/non-free/SRPMS/java-1.5.0-sun-1.5.0.11-1jpp.nosrc.rpm</span>
<span style="color: #666666; font-style: italic;"># wget ftp://jpackage.hmdc.harvard.edu/mirrors/JPackage/1.6/generic/non-free/SRPMS/jta-1.0.1-0.b.4jpp.nosrc.rpm</span></pre></div></div>

<p>Download some required files to /usr/src/redhat/SOURCES:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># cd /usr/src/redhat/SOURCES</span></pre></div></div>

<p>Download jta-1_0_1B-classes.zip here after agreeing to the license.<br />
Download jdk-1_5_0_11-linux-i586.bin, again after agreeing to a license.<br />
Build and install the rpms.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># rpmbuild --rebuild /usr/local/src/java-1.5.0-sun-1.5.0.11-1jpp.nosrc.rpm</span>
<span style="color: #666666; font-style: italic;"># rpm -ivh /usr/src/redhat/RPMS/i586/java-1.5.0-sun-1.5.0-11-1jpp.i586.rpm</span>
<span style="color: #666666; font-style: italic;"># rpm -ivh /usr/src/redhat/RPMS/i586/java-1.5.0-sun-devel-1.5.0.11-1jpp.i586.rpm</span>
<span style="color: #666666; font-style: italic;"># rpmbuild --rebuild --without javadoc /usr/local/src/jta-1.0.1-0.b.4jpp.nosrc.rpm</span>
<span style="color: #666666; font-style: italic;"># rpm -ivh /usr/src/redhat/RPMS/noarch/jta-1.0.1-0.b.4jpp.noarch.rpm</span></pre></div></div>

<p>Now install tomcat</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># yum install tomcat5 tomcat5-webapps tomcat5-admin-webapps</span></pre></div></div>

<p>note: if you get a dependency error at this point, like I did at first, try this solution for updating your jpackage-utils <a href="http://blog.sixsigns.com/2008/07/11/java-142-gcj-compati386-update-problem-on-centos/">http://blog.sixsigns.com/2008/07/11/java-142-gcj-compati386-update-problem-on-centos/</a> which basically is to install the <a href="http://dev.centos.org/centos/5/testing/i386/RPMS/jpackage-utils-1.7.5-1jpp.1.el5.centos.noarch.rpm">http://dev.centos.org/centos/5/testing/i386/RPMS/jpackage-utils-1.7.5-1jpp.1.el5.centos.noarch.rpm</a> package and update yum</p>
<p>At this point you should be able to navigate to your ip on port 8080 and see the default tomcat page</p>
]]></content:encoded>
			<wfw:commentRss>http://www.lejnieks.com/2008/11/17/installing-tomcat-on-centos/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
