Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
tomcat and tomcat-native hang [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
newtonian
Guru
Guru


Joined: 19 Jan 2005
Posts: 427
Location: Hokkaido Japan

PostPosted: Mon Mar 24, 2008 8:40 am    Post subject: tomcat and tomcat-native hang [solved] Reply with quote

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
View user's profile Send private message
newtonian
Guru
Guru


Joined: 19 Jan 2005
Posts: 427
Location: Hokkaido Japan

PostPosted: Sun Apr 13, 2008 1:44 pm    Post subject: didn't work on the amd64 profile with gcc 4 Reply with quote

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
View user's profile Send private message
newtonian
Guru
Guru


Joined: 19 Jan 2005
Posts: 427
Location: Hokkaido Japan

PostPosted: Sun Apr 13, 2008 5:18 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum