<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: Tomcat Startup Issues</title>
	<atom:link href="http://www.symphonious.net/2007/08/21/tomcat-startup-issues/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.symphonious.net/2007/08/21/tomcat-startup-issues/</link>
	<description>Living in a state of accord.</description>
	<pubDate>Thu, 20 Nov 2008 12:28:07 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.3</generator>
		<item>
		<title>By: frederic sidler</title>
		<link>http://www.symphonious.net/2007/08/21/tomcat-startup-issues/#comment-151673</link>
		<dc:creator>frederic sidler</dc:creator>
		<pubDate>Wed, 19 Mar 2008 15:03:30 +0000</pubDate>
		<guid isPermaLink="false">https://www.symphonious.net/2007/08/21/tomcat-startup-issues/#comment-151673</guid>
		<description>I'm really interested to know how you use iptables to forward connection on port 80 and 443 to tomcat
I'm looking for a solution to redirect port to another IP address (in EC2), but I couldn't figure out how ?</description>
		<content:encoded><![CDATA[<p>I&#8217;m really interested to know how you use iptables to forward connection on port 80 and 443 to tomcat<br />
I&#8217;m looking for a solution to redirect port to another IP address (in EC2), but I couldn&#8217;t figure out how ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeremy Portzer</title>
		<link>http://www.symphonious.net/2007/08/21/tomcat-startup-issues/#comment-130925</link>
		<dc:creator>Jeremy Portzer</dc:creator>
		<pubDate>Thu, 15 Nov 2007 21:43:11 +0000</pubDate>
		<guid isPermaLink="false">https://www.symphonious.net/2007/08/21/tomcat-startup-issues/#comment-130925</guid>
		<description>If you are using the Sun JDK 1.5.x (or 1.6 I think), you may also be encountering an issue where you think you've configured the JDK to use /dev/urandom, but it's really not.  For details on this see http://bugs.sun.com/view_bug.do?bug_id=6202721 .  I've had success with the workaround of "-Djava.security.egd=file:/dev/./urandom" as a Java option.  To clarify: I wasn't using Tomcat's SSL but rather direct application of the SecureRandom  class.</description>
		<content:encoded><![CDATA[<p>If you are using the Sun JDK 1.5.x (or 1.6 I think), you may also be encountering an issue where you think you&#8217;ve configured the JDK to use /dev/urandom, but it&#8217;s really not.  For details on this see <a href="http://bugs.sun.com/view_bug.do?bug_id=6202721" rel="nofollow">http://bugs.sun.com/view_bug.do?bug_id=6202721</a> .  I&#8217;ve had success with the workaround of &#8220;-Djava.security.egd=file:/dev/./urandom&#8221; as a Java option.  To clarify: I wasn&#8217;t using Tomcat&#8217;s SSL but rather direct application of the SecureRandom  class.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adrian Sutton</title>
		<link>http://www.symphonious.net/2007/08/21/tomcat-startup-issues/#comment-105663</link>
		<dc:creator>Adrian Sutton</dc:creator>
		<pubDate>Tue, 21 Aug 2007 12:05:38 +0000</pubDate>
		<guid isPermaLink="false">https://www.symphonious.net/2007/08/21/tomcat-startup-issues/#comment-105663</guid>
		<description>You can actually go one step better - set RANDFILE to /dev/urandom and ignore the openssl step. Works like a charm.</description>
		<content:encoded><![CDATA[<p>You can actually go one step better - set RANDFILE to /dev/urandom and ignore the openssl step. Works like a charm.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jaba</title>
		<link>http://www.symphonious.net/2007/08/21/tomcat-startup-issues/#comment-105661</link>
		<dc:creator>Jaba</dc:creator>
		<pubDate>Tue, 21 Aug 2007 11:54:50 +0000</pubDate>
		<guid isPermaLink="false">https://www.symphonious.net/2007/08/21/tomcat-startup-issues/#comment-105661</guid>
		<description>No problem!</description>
		<content:encoded><![CDATA[<p>No problem!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adrian Sutton</title>
		<link>http://www.symphonious.net/2007/08/21/tomcat-startup-issues/#comment-105659</link>
		<dc:creator>Adrian Sutton</dc:creator>
		<pubDate>Tue, 21 Aug 2007 11:24:58 +0000</pubDate>
		<guid isPermaLink="false">https://www.symphonious.net/2007/08/21/tomcat-startup-issues/#comment-105659</guid>
		<description>Jaba,
You're right, it was the SSL libraries not getting enough entropy. rng-tools failed to start the daemon on this particular Debian install but the Tomcat users list pointed me to http://marc.info/?l=tomcat-user&#38;m=118209169008472&#38;w=2 which lets you generate a random seed with openssl. I wound up having to set the RANDFILE environment variable to get it to be found but it solved the problem.

Thanks for your help.</description>
		<content:encoded><![CDATA[<p>Jaba,<br />
You&#8217;re right, it was the SSL libraries not getting enough entropy. rng-tools failed to start the daemon on this particular Debian install but the Tomcat users list pointed me to <a href="http://marc.info/?l=tomcat-user&amp;m=118209169008472&amp;w=2" rel="nofollow">http://marc.info/?l=tomcat-user&amp;m=118209169008472&amp;w=2</a> which lets you generate a random seed with openssl. I wound up having to set the RANDFILE environment variable to get it to be found but it solved the problem.</p>
<p>Thanks for your help.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://www.symphonious.net/2007/08/21/tomcat-startup-issues/#comment-105648</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Tue, 21 Aug 2007 10:24:46 +0000</pubDate>
		<guid isPermaLink="false">https://www.symphonious.net/2007/08/21/tomcat-startup-issues/#comment-105648</guid>
		<description>Jaba, worth a look as best I can tell Tomcat *should* be using /dev/urandom but having APR in the mix perhaps it's not. The other complication is that it's the HTTP listener that takes forever and the HTTPS listener starts immediately. I'll make sure rngd is installed though.

For the record, it's a Debian Etch server.</description>
		<content:encoded><![CDATA[<p>Jaba, worth a look as best I can tell Tomcat *should* be using /dev/urandom but having APR in the mix perhaps it&#8217;s not. The other complication is that it&#8217;s the HTTP listener that takes forever and the HTTPS listener starts immediately. I&#8217;ll make sure rngd is installed though.</p>
<p>For the record, it&#8217;s a Debian Etch server.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jaba</title>
		<link>http://www.symphonious.net/2007/08/21/tomcat-startup-issues/#comment-105642</link>
		<dc:creator>Jaba</dc:creator>
		<pubDate>Tue, 21 Aug 2007 09:33:57 +0000</pubDate>
		<guid isPermaLink="false">https://www.symphonious.net/2007/08/21/tomcat-startup-issues/#comment-105642</guid>
		<description>... and the actual path for checking the entropy is /proc/sys/kernel/random/entropy_avail, and even that only under Linux  ...</description>
		<content:encoded><![CDATA[<p>&#8230; and the actual path for checking the entropy is /proc/sys/kernel/random/entropy_avail, and even that only under Linux  &#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jaba</title>
		<link>http://www.symphonious.net/2007/08/21/tomcat-startup-issues/#comment-105641</link>
		<dc:creator>Jaba</dc:creator>
		<pubDate>Tue, 21 Aug 2007 09:32:36 +0000</pubDate>
		<guid isPermaLink="false">https://www.symphonious.net/2007/08/21/tomcat-startup-issues/#comment-105641</guid>
		<description>Perhaps the kernel is running out of entropy and is desperately trying to generate it? See if /proc/sys/kernel/entropy_avail is more than 0. If it's 0, your system is out of entropy.

In that case you might want to install rngd, at least in Gentoo it can be found in rng-tools package. rngd generates semi-real entropy by fetching numbers from /dev/urandom and feeding them to /dev/random. Another option is to switch Tomcat to use /dev/urandom instead of /dev/random. How that can be done, I have no idea and of course if you really need that uber-secure tamper-proof entropy /dev/random creates, then you just need to generate more real entropy...

And with my luck your problem isn't about this issue at all. Well, at least I tried. :-)</description>
		<content:encoded><![CDATA[<p>Perhaps the kernel is running out of entropy and is desperately trying to generate it? See if /proc/sys/kernel/entropy_avail is more than 0. If it&#8217;s 0, your system is out of entropy.</p>
<p>In that case you might want to install rngd, at least in Gentoo it can be found in rng-tools package. rngd generates semi-real entropy by fetching numbers from /dev/urandom and feeding them to /dev/random. Another option is to switch Tomcat to use /dev/urandom instead of /dev/random. How that can be done, I have no idea and of course if you really need that uber-secure tamper-proof entropy /dev/random creates, then you just need to generate more real entropy&#8230;</p>
<p>And with my luck your problem isn&#8217;t about this issue at all. Well, at least I tried. :-)</p>
]]></content:encoded>
	</item>
</channel>
</rss>
