<?xml version="1.0" encoding="UTF-8"?>

<rss version="2.0"
 xmlns:blogChannel="http://backend.userland.com/blogChannelModule"
>

<channel>
<title>Parallels knowledgebase (KB)</title>
<link>http://kb.parallels.com/</link>
<description>Parallels knowledgebase (KB)</description>
<language>en</language>
<copyright>Copyright 2008 Parallels</copyright>
<pubDate>Wed, 10 Sep 2008 00:00:00 +0600</pubDate>
<lastBuildDate>Wed, 10 Sep 2008 00:00:00 +0600</lastBuildDate>
<webMaster>rt-team@parallels.com</webMaster>

<item>
<title><![CDATA[[FIX] Accessing Tomcat applications ]]></title>
<link>http://kb.parallels.com/en/982</link>
<description><![CDATA[<div id="article">
	




	<div id="kb" class="kb">
		<div class="article-container">
			<h2 class="title">[FIX] Accessing Tomcat applications </h2>
			<div class="ab-frame"><div class="bl"><div class="br"><div class="tl"><div class="tr"><!-- frame -->
				<div class="articleProperty">
					<div>Article ID: 982&nbsp;</div>
					<div>Last Review: Oct,6 2008</div>
					<tr>
						<td>Author: </td>
						<td>Oleg Beznosov</td>
					</tr>
					<br/>
					<tr>
						<td>Last updated by: </td>
						<td>system</td>
					</tr>
					<strong>APPLIES TO:</strong>
					<div class="articleApplies">
						<ul>
							<li>Parallels Plesk Panel for Windows</li>
						</ul>
					</div>
				</div><!-- articleProperty -->
			</div></div></div></div></div><!-- frame -->

			<div class="article-internal-flag"></div>

			<div id="article-content">
				<div class="article-part">
					<h2>Resolution</h2>
					Tomcat applications are accessible on port 9080 of a domain:&nbsp; <a href="http://kb.parallels.comhttp://domain.com:9080/app-name">http://domain.com:9080/app-name</a>To get them accessible at regular port: <a href="http://kb.parallels.comhttp://domain.com/app-name">http://domain.com/app-name</a> the&nbsp;Tomcat ISAPI redirecting filter is used. So the &nbsp;&ldquo;404 Not Found&rdquo; error when &nbsp;accessing an application at <a href="http://kb.parallels.comhttp://domain.com/app-name">http://domain.com/app-name</a> indicates a problem with this filter. Here&rsquo;s what one can do to determine the reason of the problem:<br /><br />1. Open IIS management console.<br /><br />2. Navigate to Web Sites properties &gt; ISAPI filters tab. <br /><br />3. Jakarta ISAPI filter should be added there with a &ldquo;Loaded&rdquo; status<br /><br />If there is no such filter then it should be added. To do it - click on Add button and choose <strong>&quot;%plesk_dir%\isapi\isapi_redirect.dll&quot;</strong>. Set filter name, e.g. <strong>&quot;jakarta&quot;</strong> and сlick <strong>OK</strong>.<br /><br />4. Jakarta ISAPI filter should be allowed as Web service extension, it can be checked here: <strong>IIS, Web Service Extensions, Tomcat Redirector<br /><br /></strong>If there is no such filter it should be added. To add it - right click on <strong>IIS Web Service Extensions</strong> &gt; <strong>Add new Web Service Extension</strong>, choose <strong>&quot;%plesk_dir%\isapi\isapi_redirect.dll&quot;</strong>. Set Extension name, e.g. <strong>&quot;Tomcat Redirector&quot;</strong> click <strong>OK</strong>.<br /><br />5. Worker files for Jakarta ISAPI filter should be available: <br /><br /><em>&quot;%plesk_dir%\isapi\uriworkermap.properties&quot;<br />&quot;%plesk_dir%\isapi\workers.properties&quot;</em> <br /><br />If there are no such files they should be created. Default <em>uriworkermap.properties</em> and <em>workers.properties</em> files are attached to this article. Then &nbsp;Tomcat services need to be re-enables on the domains where applications are installed to update the worker files.<br /><br />6. Registry records for Tomcat redirector should be set up correctly:<br /><br /><em>[HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Jakarta Isapi Redirector\1.0]<br /><br /></em><strong>Default structure:<br /></strong><br /><div class="commandline"><code>extension_uri = /jakarta/isapi_redirect.dll<br />log_level = emerg<br />log_file = C:\Program Files\SWsoft\Plesk\Additional\Tomcat\LogFiles\jakarta.log<br />worker_file = C:\Program Files\SWsoft\Plesk\isapi\workers.properties<br />worker_mount_file = C:\Program Files\SWsoft\Plesk\isapi\uriworkermap.properties</code></div><br /><br />7. All domain names in the following file should resolve to correct IP addresses in DNS: <strong>&quot;%plesk_dir%\isapi\workers.properties&quot;</strong> <br /><br />If there is at least one domain that can&rsquo;t be resolved to an IP in DNS ISAPI filter will not work. Therefore, none of Tomcat applications on the server would be accessible. So, if some unresolved domains are present in that file Tomcat service needs to be disabled for these domains using the control panel. Another solution in this case is to use localhost as a primary DNS server. Therefore, all domains will be resolved.
				</div>
			</div>
		</div><!-- article-container -->

			<h2>Attachments:</h3>
			<ul class="AttachedFiles">
					<li><a href="http://kb.parallels.com/Attachments/630/Attachments/workers.properties">workers.properties</a>(5Kb)</li>
					<li><a href="http://kb.parallels.com/Attachments/630/Attachments/uriworkermap.properties">uriworkermap.properties</a>(1Kb)</li>
			</ul>

			<br/><br/>

			<div id="SubscriptionLink24Article" class="subscriptionLink2">
<a href="http://kb.parallels.com/subscriptions/index.html?Type=Article&ArticleID=982&ArticleLanguage=en&Product=&Category="><img src="http://kb.parallels.com/images/mail.png" width="15" height="15" alt="Subscription for changes to this article"></a>
<a href="http://kb.parallels.com/subscriptions/index.html?Type=Article&ArticleID=982&ArticleLanguage=en&Product=&Category=">Subscription for changes to this article</a>

<script type="text/javascript">

$(document).ready(function() {
	$('#SubscriptionLink24Article a').each(function(){
		$(this).click(function(event) {
			event.preventDefault();
			MainPageContentHide();
			$('#subscription').html('');
			$.get('/Stuff/Subscription', {
													'Type' : 'Article',
													'ArticleID' : '982',
													'ArticleLanguage' : 'en',
													'Product' : '',
													'Category' : ''
												}, function(data) {
																	$('#subscription').html(data);
																	$('#subscription').show();
																	SUBbuildsubmenus_product();
																});
		});
	});
});

</script>

</div>





	</div><!-- kb -->

</div><!-- article -->


]]></description>
<author>Oleg Beznosov</author>
<guid isPermaLink="false">630 LastUpdated: 2008-10-06 09:10:55</guid>
<pubDate>2008-10-06 09:10:55</pubDate>
</item>
</channel>
</rss>



