I got rid of the hang (or very long delay) by changing this line in
"conf/server.xml":

    <Listener className="org.apache.catalina.core.AprLifecycleListener"
SSLEngine="on" />

to this:

    <Listener className="org.apache.catalina.core.AprLifecycleListener"
SSLEngine="off" />

but then I ran right into this error in the log file:

    25-Nov-2008 9:15:58 AM org.apache.catalina.core.AprLifecycleListener init
    INFO: Loaded APR based Apache Tomcat Native library 1.1.12.
    25-Nov-2008 9:15:58 AM org.apache.catalina.core.AprLifecycleListener init
    INFO: APR capabilities: IPv6 [true], sendfile [true], accept filters 
[false], random [true].
    25-Nov-2008 9:15:59 AM org.apache.coyote.http11.Http11AprProtocol init
    SEVERE: Error initializing endpoint
    java.lang.Exception: Socket bind failed: [22] Invalid argument
    ...

which apparently involves the IPv6 networking support and has been fixed
by Apache:

    Socket bind fails on tomcat startup when using apr
    https://issues.apache.org/bugzilla/show_bug.cgi?id=43327

There's a work-around for that, which I haven't tried, of removing IPv6
support in "/etc/modprobe.d/aliases", but I think I'll just uninstall
"libtcnative-1" and wait. I was hoping APR would speed up Tomcat's
startup time (perhaps with native random number generation?), but it
seems to be about the same.

-- 
tomcat hangs on startup if ssl is enabled
https://bugs.launchpad.net/bugs/287644
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to