Discussion:
problem with tomcat-native 1.1.10 and tomcat 6.0.14
Mihai COSTACHE
2008-01-23 17:53:37 UTC
Permalink
Hi,

i have a working tomcat 6.0.14 and now i want to use tomcat-native
beacause it use openssl and not java-ssl

so ..
1) i installed tomcat-native 1.1.10
2) i edited server.xml (added SSLCertificateFile, SSLCertificateKeyFile,
SSLPassword and SSLProtocol="TLSv1" to HTTPS Connector ... for HTTP
Connector
nothing has changed)
3) started tomcat again ... no error .. but not tcp sockets (for 8080
and 8443 ports)

only this i have in catalina.out

----------
Jan 23, 2008 7:29:12 PM org.apache.catalina.core.AprLifecycleListener
init
INFO: Loaded Apache Tomcat Native library 1.1.10.
Jan 23, 2008 7:29:12 PM org.apache.catalina.core.AprLifecycleListener
init
INFO: APR capabilities: IPv6 [true], sendfile [true], accept filters
[false], random [true].
-----------

the tomcat is running but it doesn't listen on any port !!!

-----------
bin/bash /sbin/runscript.sh /etc/init.d/tomcat-6 start
tomcat 2736 58.8 3.3 675280 34696 pts/0 Sl 19:50 0:02
\_ /opt/sun-jdk-1.6.0.03/bin/java -server -Xms256M -Xmx512M
-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
-Djava.util.logging.config.file=/var/lib/tomcat-6//conf/logging.properties -classpath /usr/share/tomcat-6/lib/:/usr/share/tomcat-6//lib:/opt/sun-jdk-1.6.0.03/lib/tools.jar:/usr/share/tomcat-6//bin/bootstrap.jar:/usr/share/tomcat-6//bin/tomcat-juli.jar -Dcatalina.base=/var/lib/tomcat-6/ -Dcatalina.home=/usr/share/tomcat-6/ -Djava.io.tmpdir=/var/tmp/tomcat-6/ org.apache.catalina.startup.Bootstrap start
--------------

some help would be musch appreciated !!!

thanks
Mihai
Mihai COSTACHE
2008-01-24 07:54:28 UTC
Permalink
nobody has any advices about this issue ?

regards,
Mihai
Post by Mihai COSTACHE
Hi,
i have a working tomcat 6.0.14 and now i want to use tomcat-native
beacause it use openssl and not java-ssl
so ..
1) i installed tomcat-native 1.1.10
2) i edited server.xml (added SSLCertificateFile, SSLCertificateKeyFile,
SSLPassword and SSLProtocol="TLSv1" to HTTPS Connector ... for HTTP
Connector
nothing has changed)
3) started tomcat again ... no error .. but not tcp sockets (for 8080
and 8443 ports)
only this i have in catalina.out
----------
Jan 23, 2008 7:29:12 PM org.apache.catalina.core.AprLifecycleListener
init
INFO: Loaded Apache Tomcat Native library 1.1.10.
Jan 23, 2008 7:29:12 PM org.apache.catalina.core.AprLifecycleListener
init
INFO: APR capabilities: IPv6 [true], sendfile [true], accept filters
[false], random [true].
-----------
the tomcat is running but it doesn't listen on any port !!!
-----------
bin/bash /sbin/runscript.sh /etc/init.d/tomcat-6 start
tomcat 2736 58.8 3.3 675280 34696 pts/0 Sl 19:50 0:02
\_ /opt/sun-jdk-1.6.0.03/bin/java -server -Xms256M -Xmx512M
-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
-Djava.util.logging.config.file=/var/lib/tomcat-6//conf/logging.properties -classpath /usr/share/tomcat-6/lib/:/usr/share/tomcat-6//lib:/opt/sun-jdk-1.6.0.03/lib/tools.jar:/usr/share/tomcat-6//bin/bootstrap.jar:/usr/share/tomcat-6//bin/tomcat-juli.jar -Dcatalina.base=/var/lib/tomcat-6/ -Dcatalina.home=/usr/share/tomcat-6/ -Djava.io.tmpdir=/var/tmp/tomcat-6/ org.apache.catalina.startup.Bootstrap start
--------------
some help would be musch appreciated !!!
thanks
Mihai
ne_fat_s
2008-08-01 02:48:21 UTC
Permalink
I have the same problem, but with tomcat 6.0.16 and tomcat-native 1.1.14.

I installed the libapr1, libapr1-dev, libssl, libssl-dev packages from
ubuntu hardy heron, and there were no problems when building the native
library. I added export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:<path to library>
to bin/startup.sh.

And that's it. When I start tomcat, using startup.sh, I get the same logs -

Aug 1, 2008 11:44:49 AM org.apache.catalina.core.AprLifecycleListener init
INFO: Loaded APR based Apache Tomcat Native library 1.1.14.
Aug 1, 2008 11:44:49 AM org.apache.catalina.core.AprLifecycleListener init
INFO: APR capabilities: IPv6 [true], sendfile [true], accept filters
[false], random [true].

And that's all she wrote. The process is running, but is not listening on a
port.

Mihai, did you solve this problem? Or does anyone else have a clue as to
what's wrong?

Thanks,
Stefan
Post by Mihai COSTACHE
i have a working tomcat 6.0.14 and now i want to use tomcat-native
beacause it use openssl and not java-ssl
so ..
1) i installed tomcat-native 1.1.10
2) i edited server.xml (added SSLCertificateFile, SSLCertificateKeyFile,
SSLPassword and SSLProtocol="TLSv1" to HTTPS Connector ... for HTTP
Connector
nothing has changed)
3) started tomcat again ... no error .. but not tcp sockets (for 8080
and 8443 ports)
only this i have in catalina.out
----------
Jan 23, 2008 7:29:12 PM org.apache.catalina.core.AprLifecycleListener
init
INFO: Loaded Apache Tomcat Native library 1.1.10.
Jan 23, 2008 7:29:12 PM org.apache.catalina.core.AprLifecycleListener
init
INFO: APR capabilities: IPv6 [true], sendfile [true], accept filters
[false], random [true].
-----------
the tomcat is running but it doesn't listen on any port !!!
-----------
bin/bash /sbin/runscript.sh /etc/init.d/tomcat-6 start
tomcat 2736 58.8 3.3 675280 34696 pts/0 Sl 19:50 0:02
\_ /opt/sun-jdk-1.6.0.03/bin/java -server -Xms256M -Xmx512M
-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
-Djava.util.logging.config.file=/var/lib/tomcat-6//conf/logging.properties
-classpath
/usr/share/tomcat-6/lib/:/usr/share/tomcat-6//lib:/opt/sun-jdk-1.6.0.03/lib/tools.jar:/usr/share/tomcat-6//bin/bootstrap.jar:/usr/share/tomcat-6//bin/tomcat-juli.jar
-Dcatalina.base=/var/lib/tomcat-6/ -Dcatalina.home=/usr/share/tomcat-6/
-Djava.io.tmpdir=/var/tmp/tomcat-6/ org.apache.catalina.startup.Bootstrap
start
--------------
--
View this message in context: http://www.nabble.com/problem-with-tomcat-native-1.1.10-and-tomcat-6.0.14-tp15048117p18767329.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To start a new topic, e-mail: ***@tomcat.apache.org
To unsubscribe, e-mail: users-***@tomcat.apache.org
For additional commands, e-mail: users-***@tomcat.apache.org
Alex Mestiashvili
2008-08-01 06:37:46 UTC
Permalink
Post by ne_fat_s
I have the same problem, but with tomcat 6.0.16 and tomcat-native 1.1.14.
I installed the libapr1, libapr1-dev, libssl, libssl-dev packages from
ubuntu hardy heron, and there were no problems when building the native
library. I added export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:<path to library>
to bin/startup.sh.
And that's it. When I start tomcat, using startup.sh, I get the same logs -
Aug 1, 2008 11:44:49 AM org.apache.catalina.core.AprLifecycleListener init
INFO: Loaded APR based Apache Tomcat Native library 1.1.14.
Aug 1, 2008 11:44:49 AM org.apache.catalina.core.AprLifecycleListener init
INFO: APR capabilities: IPv6 [true], sendfile [true], accept filters
[false], random [true].
And that's all she wrote. The process is running, but is not listening on a
port.
Mihai, did you solve this problem? Or does anyone else have a clue as to
what's wrong?
Thanks,
Stefan
Post by Mihai COSTACHE
i have a working tomcat 6.0.14 and now i want to use tomcat-native
beacause it use openssl and not java-ssl
so ..
1) i installed tomcat-native 1.1.10
2) i edited server.xml (added SSLCertificateFile, SSLCertificateKeyFile,
SSLPassword and SSLProtocol="TLSv1" to HTTPS Connector ... for HTTP
Connector
nothing has changed)
3) started tomcat again ... no error .. but not tcp sockets (for 8080
and 8443 ports)
only this i have in catalina.out
----------
Jan 23, 2008 7:29:12 PM org.apache.catalina.core.AprLifecycleListener
init
INFO: Loaded Apache Tomcat Native library 1.1.10.
Jan 23, 2008 7:29:12 PM org.apache.catalina.core.AprLifecycleListener
init
INFO: APR capabilities: IPv6 [true], sendfile [true], accept filters
[false], random [true].
-----------
the tomcat is running but it doesn't listen on any port !!!
-----------
bin/bash /sbin/runscript.sh /etc/init.d/tomcat-6 start
tomcat 2736 58.8 3.3 675280 34696 pts/0 Sl 19:50 0:02
\_ /opt/sun-jdk-1.6.0.03/bin/java -server -Xms256M -Xmx512M
-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
-Djava.util.logging.config.file=/var/lib/tomcat-6//conf/logging.properties
-classpath
/usr/share/tomcat-6/lib/:/usr/share/tomcat-6//lib:/opt/sun-jdk-1.6.0.03/lib/tools.jar:/usr/share/tomcat-6//bin/bootstrap.jar:/usr/share/tomcat-6//bin/tomcat-juli.jar
-Dcatalina.base=/var/lib/tomcat-6/ -Dcatalina.home=/usr/share/tomcat-6/
-Djava.io.tmpdir=/var/tmp/tomcat-6/ org.apache.catalina.startup.Bootstrap
start
--------------
I think the problem in slow /dev/random
I generate in my init script random file :
/usr/bin/openssl rand -out $CATALINA_HOME/.rnd 2048

and then export RANDFILE environment variable , so I have next lines
in my startup.sh
RANDFILE="/opt/tomcat/.rnd"
export RANDFILE

here is thread with that problem
http://marc.info/?l=tomcat-user&m=118190563608389&w=2


---------------------------------------------------------------------
To start a new topic, e-mail: ***@tomcat.apache.org
To unsubscribe, e-mail: users-***@tomcat.apache.org
For additional commands, e-mail: users-***@tomcat.apache.org
Jay M
2009-06-22 19:14:03 UTC
Permalink
I am trying to compile the tomcat-native-1.1.14 from Ubuntu, am getting the
message

:/usr/local/tomcat/bin/tomcat-native-1.1.14-src/jni/native$ sudo ./configure
--with-apr=/usr/local/apr --with-ssl=/usr
--with-java-home=/usr/lib/jvm/java-6-sun/
[sudo] password for vijay:
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking for working mkdir -p... yes
Tomcat Native Version: 1.1.14
checking for chosen layout... tcnative
checking for APR... yes
setting CC to "gcc"
setting CPP to "gcc -E"
checking for a BSD-compatible install... /usr/bin/install -c
checking for JDK location (please wait)... /usr/lib/jvm/java-6-sun/
checking Java platform... checking Java platform...
checking for sablevm... NONE
adding "-I/usr/lib/jvm/java-6-sun//include" to TCNATIVE_PRIV_INCLUDES
checking os_type directory... linux
adding "-I/usr/lib/jvm/java-6-sun//include/linux" to
TCNATIVE_PRIV_INCLUDES
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for OpenSSL library... using openssl from /usr/lib and /usr/include
checking OpenSSL library version... not compatible
checking for OpenSSL DSA support... no
setting TCNATIVE_LDFLAGS to "-lssl -lcrypto"
adding "-DHAVE_OPENSSL" to CFLAGS
setting TCNATIVE_LIBS to ""
setting TCNATIVE_LIBS to " /usr/local/apr/lib/libapr-1.la -lrt -lcrypt
-lpthread -ldl"
configure: creating ./config.status
config.status: creating tcnative.pc
config.status: creating Makefile
config.status: executing default commands


When starting the Server i am getting the Log INFO that failed to start
SSLEngine.

Message shown below.

Jun 22, 2009 6:00:57 PM org.apache.catalina.core.AprLifecycleListener init
INFO: Loaded APR based Apache Tomcat Native library 1.1.14.
Jun 22, 2009 6:00:57 PM org.apache.catalina.core.AprLifecycleListener init
INFO: APR capabilities: IPv6 [true], sendfile [true], accept filters
[false], random [true].
Jun 22, 2009 6:00:57 PM org.apache.catalina.core.AprLifecycleListener
lifecycleEvent
INFO: Failed to initialize the SSLEngine.
Jun 22, 2009 6:00:58 PM org.apache.coyote.http11.Http11AprProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-80
Jun 22, 2009 6:00:58 PM org.apache.coyote.http11.Http11AprProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-443
Jun 22, 2009 6:00:58 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 881 ms
Jun 22, 2009 6:00:58 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Jun 22, 2009 6:00:58 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.18
Post by Mihai COSTACHE
Hi,
i have a working tomcat 6.0.14 and now i want to use tomcat-native
beacause it use openssl and not java-ssl
so ..
1) i installed tomcat-native 1.1.10
2) i edited server.xml (added SSLCertificateFile, SSLCertificateKeyFile,
SSLPassword and SSLProtocol="TLSv1" to HTTPS Connector ... for HTTP
Connector
nothing has changed)
3) started tomcat again ... no error .. but not tcp sockets (for 8080
and 8443 ports)
only this i have in catalina.out
----------
Jan 23, 2008 7:29:12 PM org.apache.catalina.core.AprLifecycleListener
init
INFO: Loaded Apache Tomcat Native library 1.1.10.
Jan 23, 2008 7:29:12 PM org.apache.catalina.core.AprLifecycleListener
init
INFO: APR capabilities: IPv6 [true], sendfile [true], accept filters
[false], random [true].
-----------
the tomcat is running but it doesn't listen on any port !!!
-----------
bin/bash /sbin/runscript.sh /etc/init.d/tomcat-6 start
tomcat 2736 58.8 3.3 675280 34696 pts/0 Sl 19:50 0:02
\_ /opt/sun-jdk-1.6.0.03/bin/java -server -Xms256M -Xmx512M
-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
-Djava.util.logging.config.file=/var/lib/tomcat-6//conf/logging.properties
-classpath
/usr/share/tomcat-6/lib/:/usr/share/tomcat-6//lib:/opt/sun-jdk-1.6.0.03/lib/tools.jar:/usr/share/tomcat-6//bin/bootstrap.jar:/usr/share/tomcat-6//bin/tomcat-juli.jar
-Dcatalina.base=/var/lib/tomcat-6/ -Dcatalina.home=/usr/share/tomcat-6/
-Djava.io.tmpdir=/var/tmp/tomcat-6/ org.apache.catalina.startup.Bootstrap
start
--------------
some help would be musch appreciated !!!
thanks
Mihai
--
View this message in context: http://www.nabble.com/problem-with-tomcat-native-1.1.10-and-tomcat-6.0.14-tp15048117p24153602.html
Sent from the Tomcat - User mailing list archive at Nabble.com.
Christopher Schultz
2009-06-22 19:47:30 UTC
Permalink
Vijay,
Post by Jay M
I am trying to compile the tomcat-native-1.1.14 from Ubuntu, am getting the
message
Any reason to use tomcat-native-1.1.14 instead of tomcat-native-1.1.16?
Post by Jay M
When starting the Server i am getting the Log INFO that failed to start
SSLEngine.
Message shown below.
Jun 22, 2009 6:00:57 PM org.apache.catalina.core.AprLifecycleListener init
INFO: Loaded APR based Apache Tomcat Native library 1.1.14.
Jun 22, 2009 6:00:57 PM org.apache.catalina.core.AprLifecycleListener init
INFO: APR capabilities: IPv6 [true], sendfile [true], accept filters
[false], random [true].
Jun 22, 2009 6:00:57 PM org.apache.catalina.core.AprLifecycleListener
lifecycleEvent
INFO: Failed to initialize the SSLEngine.
Perhaps you have not set up your keystore, etc. correctly.

You need a <Connector> like this:

<Connector
port="8443" minSpareThreads="5" maxSpareThreads="75"
enableLookups="true" disableUploadTimeout="true"
acceptCount="100" maxThreads="200"
scheme="https" secure="true" SSLEnabled="true"
SSLCertificateFile="/usr/local/ssl/server.crt"
SSLCertificateKeyFile="/usr/local/ssl/server.pem"
clientAuth="false" sslProtocol="TLS"/>

See http://tomcat.apache.org/tomcat-6.0-doc/ssl-howto.html for more info.

Please post your configuration if the above info doesn't help.

- -chris
Jay M
2009-06-23 03:06:48 UTC
Permalink
Hi Chris,

I have done all those configuration in my server.xml and it given below,

Do you have any idea about highlighted message showing up given in previous
post while trying to install tomcat-native-1.1.14.

<Connector
port="80"
connectionTimeout="20000"
redirectPort="443"
enableLookups="false"
acceptCount="100"
bufferSize="8192"
maxThreads="750"
noCompressionUserAgents="gozilla, traviata"
compression="force"
useSendfile="false"
compressableMimeType="text/html,
text/xml,
text/css,
text/plain,
text/javascript,
application/javascript,
application/x-javascript" />

<Connector port="443" maxHttpHeaderSize="8192"
maxThreads="150"
enableLookups="false" disableUploadTimeout="true"
acceptCount="100" scheme="https" secure="true"
SSLEnabled="true"
SSLCertificateFile="${catalina.base}/conf/ssl/server.crt"
SSLCertificateKeyFile="${catalina.base}/conf/ssl/server.key" />
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Vijay,
Post by Jay M
I am trying to compile the tomcat-native-1.1.14 from Ubuntu, am getting the
message
Any reason to use tomcat-native-1.1.14 instead of tomcat-native-1.1.16?
Post by Jay M
When starting the Server i am getting the Log INFO that failed to start
SSLEngine.
Message shown below.
Jun 22, 2009 6:00:57 PM org.apache.catalina.core.AprLifecycleListener init
INFO: Loaded APR based Apache Tomcat Native library 1.1.14.
Jun 22, 2009 6:00:57 PM org.apache.catalina.core.AprLifecycleListener init
INFO: APR capabilities: IPv6 [true], sendfile [true], accept filters
[false], random [true].
Jun 22, 2009 6:00:57 PM org.apache.catalina.core.AprLifecycleListener
lifecycleEvent
INFO: Failed to initialize the SSLEngine.
Perhaps you have not set up your keystore, etc. correctly.
<Connector
port="8443" minSpareThreads="5" maxSpareThreads="75"
enableLookups="true" disableUploadTimeout="true"
acceptCount="100" maxThreads="200"
scheme="https" secure="true" SSLEnabled="true"
SSLCertificateFile="/usr/local/ssl/server.crt"
SSLCertificateKeyFile="/usr/local/ssl/server.pem"
clientAuth="false" sslProtocol="TLS"/>
See http://tomcat.apache.org/tomcat-6.0-doc/ssl-howto.html for more info.
Please post your configuration if the above info doesn't help.
- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAko/39IACgkQ9CaO5/Lv0PBErQCeMzyqRHm+oERUjieJnxYcHROh
e6MAnAuanbrv4jJeANxcevFrU/e+1G+g
=DVO+
-----END PGP SIGNATURE-----
---------------------------------------------------------------------
--
View this message in context: http://www.nabble.com/problem-with-tomcat-native-1.1.10-and-tomcat-6.0.14-tp15048117p24158614.html
Sent from the Tomcat - User mailing list archive at Nabble.com.
Caldarale, Charles R
2009-06-23 04:03:12 UTC
Permalink
Subject: Re: problem with tomcat-native 1.1.14 and tomcat 6
Do you have any idea about highlighted message showing up given in
previous post while trying to install tomcat-native-1.1.14.
Not sure what you highlighted in a plain text message, but I did find this message to be somewhat curious in your original post:

checking OpenSSL library version... not compatible

Since I've never built OpenSSL on a Linux system, I don't know if it's pertinent or ignorable.

- Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.
Mladen Turk
2009-06-23 21:42:31 UTC
Permalink
Post by Jay M
I am trying to compile the tomcat-native-1.1.14 from Ubuntu, am getting the
message
Like Charles suggested try with 1.1.16
Post by Jay M
checking for OpenSSL library... using openssl from /usr/lib and /usr/include
checking OpenSSL library version... not compatible
checking for OpenSSL DSA support... no
This certainly doesn't look good.
It seems that openssl is < 0.9.8b

Regards
--
^(TM)
Jay M
2009-06-24 09:14:05 UTC
Permalink
Opps!!!!!!!

I forgot to post how i resolved the issue.

Actually i haven't installed the "libssl-dev" libraries.

I just gone through the link https://help.ubuntu.com/community/OpenSSL and
then i checked whether everything fine about the openssl lib, at that point
i realized that i haven't installed "libssl-dev" libraries.

Thank you guys

Chears !!!
Post by Mladen Turk
Post by Jay M
I am trying to compile the tomcat-native-1.1.14 from Ubuntu, am getting the
message
Like Charles suggested try with 1.1.16
Post by Jay M
checking for OpenSSL library... using openssl from /usr/lib and /usr/include
checking OpenSSL library version... not compatible
checking for OpenSSL DSA support... no
This certainly doesn't look good.
It seems that openssl is < 0.9.8b
Regards
--
^(TM)
---------------------------------------------------------------------
--
View this message in context: http://www.nabble.com/problem-with-tomcat-native-1.1.10-and-tomcat-6.0.14-tp15048117p24181290.html
Sent from the Tomcat - User mailing list archive at Nabble.com.
Continue reading on narkive:
Loading...