| View previous topic :: View next topic |
| Author |
Message |
newtonian Guru


Joined: 19 Jan 2005 Posts: 427 Location: Hokkaido Japan
|
Posted: Mon Mar 24, 2008 8:40 am Post subject: tomcat and tomcat-native hang [solved] |
|
|
Hi-
I was having problems with tomcat hanging after emerging tomcat-native on several different gentoo servers.
Here's some sample output of the problem(from gentoo bugzilla)
| Code: | INFO: APR capabilities: IPv6 [true], sendfile [true], accept filters [false],
random [true].
[wait for 10 minutes...]
Feb 18, 2008 7:23:56 PM org.apache.coyote.http11.Http11AprProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-12001
Feb 18, 2008 7:23:56 PM org.apache.coyote.ajp.AjpAprProtocol init
INFO: Initializing Coyote AJP/1.3 on ajp-12101 |
After googling I found that the issue was urandom related and to fix it on gentoo I tried doing this:
| Code: | echo "dev-libs/apr urandom" >> /etc/portage/package.use
emerge apr |
And no more problems with tomcat hanging on startup of the init script.
http://bugs.gentoo.org/show_bug.cgi?id=198223
Cheers, |
|
| Back to top |
|
 |
newtonian Guru


Joined: 19 Jan 2005 Posts: 427 Location: Hokkaido Japan
|
Posted: Sun Apr 13, 2008 1:44 pm Post subject: didn't work on the amd64 profile with gcc 4 |
|
|
adding the urandom use flag to apr didn't work for me on amd64 with gcc4.
So I resorted to this solution found in the bug report above:
| Code: |
The solution was to disable SSLEngine in the AprLifecycleListener directive.
server.xml:
<Listener className="org.apache.catalina.core.AprLifecycleListener"
SSLEngine="off" /> |
|
|
| Back to top |
|
 |
newtonian Guru


Joined: 19 Jan 2005 Posts: 427 Location: Hokkaido Japan
|
Posted: Sun Apr 13, 2008 5:18 pm Post subject: |
|
|
| Quote: | | adding the urandom use flag to apr didn't work for me on amd64 with gcc4. |
Actually, I found out that there was a typo in my package.use that caused apr no to be built with urandom.
Fixing the typo fixed the issue even on amd64, even with the SSLEngine set to on.
Cheers, |
|
| Back to top |
|
 |
|