Re: Tomcat 6.0.10 hangs on startup when APR enabled

2007-04-04 Thread Filip Hanik - Dev Lists
Mladen Turk wrote: Stefan Armbruster wrote: Hi finally I did this: rm /dev/random; ln -s /dev/urandom /dev/random ... and Tomcat starts up fine. Wow, that something. You are very brave and root ;) awesome! Try with setting: $ export RANDFILE=/dev/urandom then start Tomcat. or create a

Re: Tomcat 6.0.10 hangs on startup when APR enabled

2007-04-03 Thread Mladen Turk
Stefan Armbruster wrote: Hi finally I did this: rm /dev/random; ln -s /dev/urandom /dev/random ... and Tomcat starts up fine. Wow, that something. You are very brave and root ;) Try with setting: $ export RANDFILE=/dev/urandom then start Tomcat. or create a $HOME/.rnd file Regards, Mladen

Re: Tomcat 6.0.10 hangs on startup when APR enabled

2007-04-02 Thread Stefan Armbruster
Hi, the machine is diskless, so entropy for /dev/random might not be enough. cat /dev/random dummy results in a empty dummy file even if it runs for several minutes. cat /proc/sys/kernel/random/entropy_avail returns 23. Anyway, I do not need SSL stuff here. Is there a way to compile libtcnative

Re: Tomcat 6.0.10 hangs on startup when APR enabled

2007-04-01 Thread Stefan Armbruster
Hi, thanks for the responses so far. I removed all libapr* deb packages and installed apr 1.2.8 from source, but Tomcat still hangs. Below the thread dump as suggested by Filip: 29.03.2007 19:38:56 org.apache.catalina.core.AprLifecycleListener init INFO: Loaded Apache Tomcat Native library

Re: Tomcat 6.0.10 hangs on startup when APR enabled

2007-04-01 Thread Rainer Jung
Just a guess: looks like SSL is waiting for /dev/random (blocking random) to answer, and /dev/random can take a long time to answer if there's not enough entropy in the system. Usually you can choose betwenn /dev/random and /dev/urandom (non blocking but cryptographic quality depending on

Re: Tomcat 6.0.10 hangs on startup when APR enabled

2007-04-01 Thread Filip Hanik - Dev Lists
it's blocking on initialization of SSL, did you set the correct Connector attributes for APR/SSL (they are not the same as the java connector) Filip Stefan Armbruster wrote: Hi, thanks for the responses so far. I removed all libapr* deb packages and installed apr 1.2.8 from source, but

Re: Tomcat 6.0.10 hangs on startup when APR enabled

2007-04-01 Thread Mladen Turk
Filip Hanik - Dev Lists wrote: it's blocking on initialization of SSL, did you set the correct Connector attributes for APR/SSL (they are not the same as the java connector) Like Rainer said it blocks in SSL.initialize(). Wait few minutes... Now, a param for AprLifecycleListener named

Tomcat 6.0.10 hangs on startup when APR enabled

2007-03-28 Thread Stefan Armbruster
Hi, Tomcat hangs on startup when I try to enable the APR native library. After setting java.library.path to /usr/local/apr/lib/, catalina.out gets just these two lines: 28.03.2007 16:14:00 org.apache.catalina.core.AprLifecycleListener init INFO: Loaded Apache Tomcat Native library 1.1.8. ...

Re: Tomcat 6.0.10 hangs on startup when APR enabled

2007-03-28 Thread Mladen Turk
Stefan Armbruster wrote: Hi, Tomcat hangs on startup when I try to enable the APR native library. After setting java.library.path to /usr/local/apr/lib/, catalina.out gets just these two lines: You will need apr 1.2.x The generic path for that looks like /usr/local/apr-1/lib The