You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Oladapo Moshood <mo...@gmail.com> on 2011/12/05 22:20:54 UTC

SSL configuration on apache tomcat 6 - Oracle EL5

Dear all,

I have a very serious problem in making SSL work on apache tomcat 6 on my
oracle EL5. I have been able to configure everything. If I access
http://localhost:8443 it works but if I change the http to https, it
doesn't work. I check my catalina.out log to see with and I saw:

5-Dec-2011 18:05:55 org.apache.catalina.core.AprLifecycleListener
lifecycleEvent
INFO: Failed to initialize the SSLEngine.

I see no other error apart from this error. What can I do? I need to
replicate this at a client site tomorrow - I have to make it work.


I WILL REALLY APPRECIATE ANY ASSISTANCE.

Thank you

Re: SSL configuration on apache tomcat 6 - Oracle EL5

Posted by Oladapo Moshood <mo...@gmail.com>.
Like I said to Chuck, I'm sorry to everyone. I didn't mean to be
disturbing. Please pardon me and please assist.

Thank you Hassan.

On Mon, Dec 5, 2011 at 2:03 PM, Hassan Schroeder <hassan.schroeder@gmail.com
> wrote:

> On Mon, Dec 5, 2011 at 1:50 PM, Oladapo Moshood <mo...@gmail.com>
> wrote:
> > Still waiting to hear from you folks.
>
> Ah, you'd be wanting our "Tier 2" 30-minute-response support, then.
>
> Would you like to put that on your Visa or MasterCard?
>
> --
> Hassan Schroeder ------------------------ hassan.schroeder@gmail.com
> http://about.me/hassanschroeder
> twitter: @hassan
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

Re: SSL configuration on apache tomcat 6 - Oracle EL5

Posted by Hassan Schroeder <ha...@gmail.com>.
On Mon, Dec 5, 2011 at 1:50 PM, Oladapo Moshood <mo...@gmail.com> wrote:
> Still waiting to hear from you folks.

Ah, you'd be wanting our "Tier 2" 30-minute-response support, then.

Would you like to put that on your Visa or MasterCard?

-- 
Hassan Schroeder ------------------------ hassan.schroeder@gmail.com
http://about.me/hassanschroeder
twitter: @hassan

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: SSL configuration on apache tomcat 6 - Oracle EL5

Posted by Oladapo Moshood <mo...@gmail.com>.
Oh I'm really sorry Chuck, It's good to hear from you.

I wanted to say I presumed my server.xml is well configured that was why I
can only see one error.

Below is what I have in my server.xml:

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

<Connector port="8443"
protocol="org.apache.coyote.http11.Http11AprProtocol" SSLEnabled="true"
maxThreads="150" scheme="https" secure="true"
sslProtocol="TLSv1" enableLookups="false"
SSLCertificateFile="${catalina.base}/config/certs/server.crt"
SSLCertificateKeyFile="${catalina.base}/config/certs/server.key"/>


Thank you

On Mon, Dec 5, 2011 at 1:54 PM, Caldarale, Charles R <
Chuck.Caldarale@unisys.com> wrote:

> > From: Oladapo Moshood [mailto:morechud@gmail.com]
> > Subject: Re: SSL configuration on apache tomcat 6 - Oracle EL5
>
> > Still waiting to hear from you folks.
>
> A bit impatient, are we?  Remember, everyone on this list is a
> _volunteer_, not paid.  If you want immediate answers, hire someone.
>
> > I presume if I did not configure server.xml right, then I should see more
> > errors than this.
>
> Why do you presume that?  And not posting your server.xml here makes it
> pretty much impossible for anyone to help you.
>
>  - 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.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

RE: SSL configuration on apache tomcat 6 - Oracle EL5

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Oladapo Moshood [mailto:morechud@gmail.com] 
> Subject: Re: SSL configuration on apache tomcat 6 - Oracle EL5

> Still waiting to hear from you folks.

A bit impatient, are we?  Remember, everyone on this list is a _volunteer_, not paid.  If you want immediate answers, hire someone.

> I presume if I did not configure server.xml right, then I should see more
> errors than this.

Why do you presume that?  And not posting your server.xml here makes it pretty much impossible for anyone to help you.

 - 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.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: SSL configuration on apache tomcat 6 - Oracle EL5

Posted by Oladapo Moshood <mo...@gmail.com>.
Still waiting to hear from you folks.

I presume if I did not configure server.xml right, then I should see more
errors than this. This is my only challenge, please help me out.

On Mon, Dec 5, 2011 at 1:20 PM, Oladapo Moshood <mo...@gmail.com> wrote:

> Dear all,
>
> I have a very serious problem in making SSL work on apache tomcat 6 on my
> oracle EL5. I have been able to configure everything. If I access
> http://localhost:8443 it works but if I change the http to https, it
> doesn't work. I check my catalina.out log to see with and I saw:
>
> 5-Dec-2011 18:05:55 org.apache.catalina.core.AprLifecycleListener
> lifecycleEvent
> INFO: Failed to initialize the SSLEngine.
>
> I see no other error apart from this error. What can I do? I need to
> replicate this at a client site tomorrow - I have to make it work.
>
>
> I WILL REALLY APPRECIATE ANY ASSISTANCE.
>
> Thank you
>

Re: SSL configuration on apache tomcat 6 - Oracle EL5

Posted by Daniel Mikusa <dm...@vmware.com>.
On Tue, 2011-12-06 at 06:50 -0800, Oladapo Moshood wrote:
> Thank you Daniel for your response. I do not see "libssl" listed, please
> see output:
> 
> [root@opt01 native]# ldd .libs/libtcnative-1.so
>         linux-gate.so.1 =>  (0x00b3b000)
>         libapr-1.so.0 => /usr/local/apr/lib/libapr-1.so.0 (0x00288000)
>         librt.so.1 => /lib/i686/nosegneg/librt.so.1 (0x00c83000)
>         libcrypt.so.1 => /lib/libcrypt.so.1 (0x00456000)
>         libpthread.so.0 => /lib/i686/nosegneg/libpthread.so.0 (0x00ec1000)
>         libdl.so.2 => /lib/libdl.so.2 (0x00bb6000)
>         libc.so.6 => /lib/i686/nosegneg/libc.so.6 (0x00110000)
>         /lib/ld-linux.so.2 (0x00941000)
> Can I still go-ahead and "make clean" then re-install the native?

Yes, try rebuilding with the "--with-ssl" option.  

Also, make sure that you have the openssl and openssl-dev (or whatever
your distro calls them) packages installed.

Dan


> Thank you.
> 
> On Tue, Dec 6, 2011 at 6:32 AM, Daniel Mikusa <dm...@vmware.com> wrote:
> 
> > On Mon, 2011-12-05 at 23:51 -0800, Oladapo Moshood wrote:
> > > Dan,
> > >
> > > This is what I actually have in my Oracle EL5. The other information I
> > sent
> > > on apache-tomcat-7 was done on my redhat 6 to see if the error i'm
> > getting
> > > is a bug in apache-tomcat-6, but got the same error.
> > >
> > > Here is how i installed it on Oracle EL5:
> > > I have the native libraries in
> > > /usr/share/apache-tomcat-6.0.20/bin/tomcat-native-1.1.22-src/jni/native
> > to
> > > install tomcat native.
> > >
> >
> > Please run "ldd .libs/libtcnative-1.so" and paste the output in here.
> > Do you see "libssl" listed in the output?
> >
> > > I Installed with "./configure --with-apr=/usr/local/apr-httpd/
> > > --with-java-home=/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/"
> >
> > You might want to try the following:
> >
> > 1.) make clean
> > 2.) ./configure --with-apr=/usr/local/apr-httpd/
> > --with-java-home=/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/ --with-ssl
> > 3.) make
> >
> > That will rebuild and while making sure that SSL is enabled.
> >
> > I'm not guaranteeing that will resolve the problem, but it's worth
> > verifying.
> >
> > Dan
> >
> >
> >
> > >
> > > Thank you
> > >
> > > On Mon, Dec 5, 2011 at 11:44 PM, Oladapo Moshood <mo...@gmail.com>
> > wrote:
> > >
> > > > Dear Dan,
> > > >
> > > > I have the native libraries in
> > > >
> > /usr/share/apache-tomcat-7.0.23/bin/tomcat-native-1.1.22-src/jni/native to
> > > > install tomcat native.
> > > >
> > > > I Installed with "./configure --with-apr=/usr/local/apr-httpd/
> > > > --with-java-home=/usr/java/jdk1.7.0/"
> > > >
> > > > Thank you
> > > >
> > > >
> > > >
> > > >
> > > > On Mon, Dec 5, 2011 at 2:23 PM, Daniel Mikusa <dm...@vmware.com>
> > wrote:
> > > >
> > > >> On Mon, 2011-12-05 at 13:20 -0800, Oladapo Moshood wrote:
> > > >> > Dear all,
> > > >> >
> > > >> > I have a very serious problem in making SSL work on apache tomcat 6
> > on
> > > >> my
> > > >> > oracle EL5. I have been able to configure everything. If I access
> > > >> > http://localhost:8443 it works but if I change the http to https,
> > it
> > > >> > doesn't work. I check my catalina.out log to see with and I saw:
> > > >> >
> > > >> > 5-Dec-2011 18:05:55 org.apache.catalina.core.AprLifecycleListener
> > > >> > lifecycleEvent
> > > >> > INFO: Failed to initialize the SSLEngine.
> > > >> >
> > > >> > I see no other error apart from this error. What can I do? I need to
> > > >> > replicate this at a client site tomorrow - I have to make it work.
> > > >> >
> > > >> >
> > > >> > I WILL REALLY APPRECIATE ANY ASSISTANCE.
> > > >> >
> > > >> > Thank you
> > > >>
> > > >> Using the APR connector requires native libraries.
> > > >>
> > > >> 1.) Where did you get the native libraries?  distro package or compile
> > > >> from source?
> > > >>
> > > >> 2.) What options were used to compile the libraries (i.e. if compiling
> > > >> from src, please list your "./configure ..." command).
> > > >>
> > > >> Dan
> > > >>
> > > >>
> > > >>
> > > >
> >

Re: SSL configuration on apache tomcat 6 - Oracle EL5

Posted by Oladapo Moshood <mo...@gmail.com>.
Thank you Daniel for your response. I do not see "libssl" listed, please
see output:

[root@opt01 native]# ldd .libs/libtcnative-1.so
        linux-gate.so.1 =>  (0x00b3b000)
        libapr-1.so.0 => /usr/local/apr/lib/libapr-1.so.0 (0x00288000)
        librt.so.1 => /lib/i686/nosegneg/librt.so.1 (0x00c83000)
        libcrypt.so.1 => /lib/libcrypt.so.1 (0x00456000)
        libpthread.so.0 => /lib/i686/nosegneg/libpthread.so.0 (0x00ec1000)
        libdl.so.2 => /lib/libdl.so.2 (0x00bb6000)
        libc.so.6 => /lib/i686/nosegneg/libc.so.6 (0x00110000)
        /lib/ld-linux.so.2 (0x00941000)

Can I still go-ahead and "make clean" then re-install the native?

Thank you.

On Tue, Dec 6, 2011 at 6:32 AM, Daniel Mikusa <dm...@vmware.com> wrote:

> On Mon, 2011-12-05 at 23:51 -0800, Oladapo Moshood wrote:
> > Dan,
> >
> > This is what I actually have in my Oracle EL5. The other information I
> sent
> > on apache-tomcat-7 was done on my redhat 6 to see if the error i'm
> getting
> > is a bug in apache-tomcat-6, but got the same error.
> >
> > Here is how i installed it on Oracle EL5:
> > I have the native libraries in
> > /usr/share/apache-tomcat-6.0.20/bin/tomcat-native-1.1.22-src/jni/native
> to
> > install tomcat native.
> >
>
> Please run "ldd .libs/libtcnative-1.so" and paste the output in here.
> Do you see "libssl" listed in the output?
>
> > I Installed with "./configure --with-apr=/usr/local/apr-httpd/
> > --with-java-home=/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/"
>
> You might want to try the following:
>
> 1.) make clean
> 2.) ./configure --with-apr=/usr/local/apr-httpd/
> --with-java-home=/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/ --with-ssl
> 3.) make
>
> That will rebuild and while making sure that SSL is enabled.
>
> I'm not guaranteeing that will resolve the problem, but it's worth
> verifying.
>
> Dan
>
>
>
> >
> > Thank you
> >
> > On Mon, Dec 5, 2011 at 11:44 PM, Oladapo Moshood <mo...@gmail.com>
> wrote:
> >
> > > Dear Dan,
> > >
> > > I have the native libraries in
> > >
> /usr/share/apache-tomcat-7.0.23/bin/tomcat-native-1.1.22-src/jni/native to
> > > install tomcat native.
> > >
> > > I Installed with "./configure --with-apr=/usr/local/apr-httpd/
> > > --with-java-home=/usr/java/jdk1.7.0/"
> > >
> > > Thank you
> > >
> > >
> > >
> > >
> > > On Mon, Dec 5, 2011 at 2:23 PM, Daniel Mikusa <dm...@vmware.com>
> wrote:
> > >
> > >> On Mon, 2011-12-05 at 13:20 -0800, Oladapo Moshood wrote:
> > >> > Dear all,
> > >> >
> > >> > I have a very serious problem in making SSL work on apache tomcat 6
> on
> > >> my
> > >> > oracle EL5. I have been able to configure everything. If I access
> > >> > http://localhost:8443 it works but if I change the http to https,
> it
> > >> > doesn't work. I check my catalina.out log to see with and I saw:
> > >> >
> > >> > 5-Dec-2011 18:05:55 org.apache.catalina.core.AprLifecycleListener
> > >> > lifecycleEvent
> > >> > INFO: Failed to initialize the SSLEngine.
> > >> >
> > >> > I see no other error apart from this error. What can I do? I need to
> > >> > replicate this at a client site tomorrow - I have to make it work.
> > >> >
> > >> >
> > >> > I WILL REALLY APPRECIATE ANY ASSISTANCE.
> > >> >
> > >> > Thank you
> > >>
> > >> Using the APR connector requires native libraries.
> > >>
> > >> 1.) Where did you get the native libraries?  distro package or compile
> > >> from source?
> > >>
> > >> 2.) What options were used to compile the libraries (i.e. if compiling
> > >> from src, please list your "./configure ..." command).
> > >>
> > >> Dan
> > >>
> > >>
> > >>
> > >
>

Re: SSL configuration on apache tomcat 6 - Oracle EL5

Posted by Daniel Mikusa <dm...@vmware.com>.
On Mon, 2011-12-05 at 23:51 -0800, Oladapo Moshood wrote:
> Dan,
> 
> This is what I actually have in my Oracle EL5. The other information I sent
> on apache-tomcat-7 was done on my redhat 6 to see if the error i'm getting
> is a bug in apache-tomcat-6, but got the same error.
> 
> Here is how i installed it on Oracle EL5:
> I have the native libraries in
> /usr/share/apache-tomcat-6.0.20/bin/tomcat-native-1.1.22-src/jni/native to
> install tomcat native.
> 

Please run "ldd .libs/libtcnative-1.so" and paste the output in here.
Do you see "libssl" listed in the output?

> I Installed with "./configure --with-apr=/usr/local/apr-httpd/
> --with-java-home=/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/"

You might want to try the following:

1.) make clean
2.) ./configure --with-apr=/usr/local/apr-httpd/
--with-java-home=/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/ --with-ssl
3.) make

That will rebuild and while making sure that SSL is enabled.  

I'm not guaranteeing that will resolve the problem, but it's worth
verifying.

Dan



> 
> Thank you
> 
> On Mon, Dec 5, 2011 at 11:44 PM, Oladapo Moshood <mo...@gmail.com> wrote:
> 
> > Dear Dan,
> >
> > I have the native libraries in
> > /usr/share/apache-tomcat-7.0.23/bin/tomcat-native-1.1.22-src/jni/native to
> > install tomcat native.
> >
> > I Installed with "./configure --with-apr=/usr/local/apr-httpd/
> > --with-java-home=/usr/java/jdk1.7.0/"
> >
> > Thank you
> >
> >
> >
> >
> > On Mon, Dec 5, 2011 at 2:23 PM, Daniel Mikusa <dm...@vmware.com> wrote:
> >
> >> On Mon, 2011-12-05 at 13:20 -0800, Oladapo Moshood wrote:
> >> > Dear all,
> >> >
> >> > I have a very serious problem in making SSL work on apache tomcat 6 on
> >> my
> >> > oracle EL5. I have been able to configure everything. If I access
> >> > http://localhost:8443 it works but if I change the http to https, it
> >> > doesn't work. I check my catalina.out log to see with and I saw:
> >> >
> >> > 5-Dec-2011 18:05:55 org.apache.catalina.core.AprLifecycleListener
> >> > lifecycleEvent
> >> > INFO: Failed to initialize the SSLEngine.
> >> >
> >> > I see no other error apart from this error. What can I do? I need to
> >> > replicate this at a client site tomorrow - I have to make it work.
> >> >
> >> >
> >> > I WILL REALLY APPRECIATE ANY ASSISTANCE.
> >> >
> >> > Thank you
> >>
> >> Using the APR connector requires native libraries.
> >>
> >> 1.) Where did you get the native libraries?  distro package or compile
> >> from source?
> >>
> >> 2.) What options were used to compile the libraries (i.e. if compiling
> >> from src, please list your "./configure ..." command).
> >>
> >> Dan
> >>
> >>
> >>
> >

Re: SSL configuration on apache tomcat 6 - Oracle EL5

Posted by Pid * <pi...@pidster.com>.
On 9 Dec 2011, at 07:54, Oladapo Moshood <mo...@gmail.com> wrote:



On Thu, Dec 8, 2011 at 8:41 AM, Daniel Mikusa <dm...@vmware.com> wrote:

> On Thu, 2011-12-08 at 08:22 -0800, Oladapo Moshood wrote:
> > After the re-installation of the whole Apache Tomcat Native Library, I
> > still get:
> >
>
> Ok, take a step back for a second...
>
> 1.) What were the results of "./configure ..."?  If you could paste them
> in here, that would be helpful.
>

Please attached is the config.log as requested. Also see below:

This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by configure, which was
generated by GNU Autoconf 2.59.  Invocation command line was

  $ ./configure --with-apr=/usr/local/apr-httpd/


You have an extra slash there, above.


--with-java-home=/usr/lib/jvm/java-1.6.0-openjdk --with-ssl=/usr/lib/openssl

## --------- ##
## Platform. ##
## --------- ##

hostname = opt01.petrodata.net
uname -m = i686
uname -r = 2.6.18-128.el5xen
uname -s = Linux
uname -v = #1 SMP Wed Jan 21 11:55:02 EST 2009

/usr/bin/uname -p = unknown
/bin/uname -X     = unknown

/bin/arch              = i686
/usr/bin/arch -k       = unknown
/usr/convex/getsysinfo = unknown
hostinfo               = unknown
/bin/machine           = unknown
/usr/bin/oslevel       = unknown
/bin/universe          = unknown

PATH: /usr/kerberos/sbin
PATH: /usr/kerberos/bin
PATH: /usr/local/sbin
PATH: /usr/local/bin
PATH: /sbin
PATH: /bin
PATH: /usr/sbin
PATH: /usr/bin
PATH: /root/bin


## ----------- ##
## Core tests. ##
## ----------- ##

configure:1491: checking build system type
configure:1509: result: i686-pc-linux-gnu
configure:1517: checking host system type
configure:1531: result: i686-pc-linux-gnu
configure:1539: checking target system type
configure:1553: result: i686-pc-linux-gnu
configure:1580: checking for a BSD-compatible install
configure:1635: result: /usr/bin/install -c
configure:1653: checking for working mkdir -p
configure:1669: result: yes
configure:1762: checking for chosen layout
configure:1764: result: tcnative
configure:1921: checking for APR
configure:2003: result: yes
configure:2072: checking for a BSD-compatible install
configure:2127: result: /usr/bin/install -c
configure:2142: checking for JDK location (please wait)
configure:2171: result: /usr/lib/jvm/java-1.6.0-openjdk
configure:2247: checking Java platform
configure:2273: checking Java platform
configure:2279: result:


The result field is empty... Not sure what that means.


configure:2289: checking for sablevm
configure:2320: result: NONE
configure:2397: checking os_type directory
configure:2518: checking for gcc
configure:2544: result: gcc
configure:2788: checking for C compiler version
configure:2791: gcc --version </dev/null >&5
gcc (GCC) 4.1.2 20080704 (Red Hat 4.1.2-44)
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:2794: $? = 0
configure:2796: gcc -v </dev/null >&5
Using built-in specs.
Target: i386-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
--infodir=/usr/share/info --enable-shared --enable-threads=posix
--enable-checking=release --with-system-zlib --enable-__cxa_atexit
--disable-libunwind-exceptions --enable-libgcj-multifile
--enable-languages=c,c++,objc,obj-c++,java,fortran,ada
--enable-java-awt=gtk --disable-dssi --enable-plugin
--with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre


That's not good though, above.



--with-cpu=generic --host=i386-redhat-linux
Thread model: posix
gcc version 4.1.2 20080704 (Red Hat 4.1.2-44)
configure:2799: $? = 0
configure:2801: gcc -V </dev/null >&5
gcc: '-V' option must have argument
configure:2804: $? = 1
configure:2827: checking for C compiler default output file name
configure:2830: gcc    conftest.c  >&5
configure:2833: $? = 0
configure:2879: result: a.out
configure:2884: checking whether the C compiler works
configure:2890: ./a.out
configure:2893: $? = 0
configure:2910: result: yes
configure:2917: checking whether we are cross compiling
configure:2919: result: no
configure:2922: checking for suffix of executables
configure:2924: gcc -o conftest    conftest.c  >&5
configure:2927: $? = 0
configure:2952: result:
configure:2958: checking for suffix of object files
configure:2979: gcc -c   conftest.c >&5
configure:2982: $? = 0
configure:3004: result: o
configure:3008: checking whether we are using the GNU C compiler
configure:3032: gcc -c   conftest.c >&5
configure:3038: $? = 0
configure:3042: test -z
             || test ! -s conftest.err
configure:3045: $? = 0
configure:3048: test -s conftest.o
configure:3051: $? = 0
configure:3064: result: yes
configure:3070: checking whether gcc accepts -g
configure:3091: gcc -c -g  conftest.c >&5
configure:3097: $? = 0
configure:3101: test -z
             || test ! -s conftest.err
configure:3104: $? = 0
configure:3107: test -s conftest.o
configure:3110: $? = 0
configure:3121: result: yes
configure:3138: checking for gcc option to accept ANSI C
configure:3208: gcc  -c -g -O2  conftest.c >&5
configure:3214: $? = 0
configure:3218: test -z
             || test ! -s conftest.err
configure:3221: $? = 0
configure:3224: test -s conftest.o
configure:3227: $? = 0
configure:3245: result: none needed
configure:3263: gcc -c -g -O2  conftest.c >&5
conftest.c:2: error: expected '=', ',', ';', 'asm' or '__attribute__'
before 'me'
configure:3269: $? = 1
configure: failed program was:
| #ifndef __cplusplus
|   choke me
| #endif
configure:3405: checking for OpenSSL library
configure:3485: result: using openssl from /usr/lib/openssl/lib and
/usr/lib/openssl/include
configure:3500: checking OpenSSL library version
configure:3529: gcc -o conftest -g -O2 -I/usr/lib/openssl/include
conftest.c  -L/usr/lib/openssl/lib -Wl,-rpath,/usr/lib/openssl/lib -lssl
-lcrypto >&5
configure:3532: $? = 0
configure:3534: ./conftest
configure:3537: $? = 0
configure:3539: result: ok
configure:3561: checking for OpenSSL DSA support
configure:3569: result: yes
configure:3943: creating ./config.status

## ---------------------- ##
## Running config.status. ##
## ---------------------- ##

This file was extended by config.status, which was
generated by GNU Autoconf 2.59.  Invocation command line was

  CONFIG_FILES    =
  CONFIG_HEADERS  =
  CONFIG_LINKS    =
  CONFIG_COMMANDS =
  $ ./config.status

on opt01.petrodata.net

config.status:683: creating tcnative.pc
config.status:683: creating Makefile
config.status:866: executing default commands

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_build=i686-pc-linux-gnu
ac_cv_build_alias=i686-pc-linux-gnu
ac_cv_c_compiler_gnu=yes
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_exeext=
ac_cv_host=i686-pc-linux-gnu
ac_cv_host_alias=i686-pc-linux-gnu
ac_cv_mkdir_p=yes
ac_cv_objext=o
ac_cv_path_SABLEVM=NONE
ac_cv_path_install='/usr/bin/install -c'
ac_cv_prog_ac_ct_CC=gcc
ac_cv_prog_cc_g=yes
ac_cv_prog_cc_stdc=
ac_cv_target=i686-pc-linux-gnu
ac_cv_target_alias=i686-pc-linux-gnu

## ----------------- ##
## Output variables. ##
## ----------------- ##

APR_BUILD_DIR='/usr/local/apr-httpd/build-1'
APR_INCLUDES=' -I/usr/local/apr-httpd//include/apr-1 '
APR_LIBS=' /usr/local/apr-httpd//lib/libapr-1.la -lrt -lcrypt  -lpthread
-ldl'
CC='gcc'
CFLAGS='-g -O2 -DHAVE_OPENSSL'
CPPFLAGS=''
DEFS='-DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\"
-DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DHAVE_OPENSSL_DSA=1 '
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EXEEXT=''
EXTRA_OS_LINK=''
INCLUDE_OUTPUTS='include
/home/oracle/apache-tomcat-6.0.20/bin/tomcat-native-1.1.16-


It might be better to use the latest 6.0.35 rather than the old version
you're using.





src/jni/native/build-outputs.mk'
INCLUDE_RULES='include
/home/oracle/apache-tomcat-6.0.20/bin/tomcat-native-1.1.16-src/jni/native/build/
rules.mk'
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
JAVA_HOME='/usr/lib/jvm/java-1.6.0-openjdk'


Back to 1.6 again...


p


JAVA_OS='linux'
JAVA_PLATFORM=''
LDFLAGS=''
LIBOBJS=''
LIBS=''
LTLIBOBJS=''
OBJEXT='o'
PACKAGE_BUGREPORT=''
PACKAGE_NAME=''
PACKAGE_STRING=''
PACKAGE_TARNAME=''
PACKAGE_VERSION=''
PATH_SEPARATOR=':'
SABLEVM='NONE'
SHELL='/bin/sh'
TCNATIVE_DOTTED_VERSION='1.1.16'
TCNATIVE_EXPORT_LIBS=''
TCNATIVE_INCLUDES=''
TCNATIVE_LDFLAGS='-L/usr/lib/openssl/lib -Wl,-rpath,/usr/lib/openssl/lib
-lssl -lcrypto'
TCNATIVE_LIBNAME='tcnative-${TCNATIVE_MAJOR_VERSION}'
TCNATIVE_LIBS=' /usr/local/apr-httpd//lib/libapr-1.la -lrt -lcrypt
-lpthread -ldl'
TCNATIVE_LIBTOOL_VERSION='1:16:1'
TCNATIVE_MAJOR_VERSION='1'
TCNATIVE_PRIV_INCLUDES='-I/home/oracle/apache-tomcat-6.0.20/bin/tomcat-native-1.1.16-src/jni/native/include
-I/usr/lib/jvm/java-1.6.0-openjdk/include
-I/usr/lib/jvm/java-1.6.0-openjdk/include/linux -I/usr/lib/openssl/include'
TCN_CONFIG_LOCATION='source'
abs_builddir='/home/oracle/apache-tomcat-6.0.20/bin/tomcat-native-1.1.16-src/jni/native'
abs_srcdir='/home/oracle/apache-tomcat-6.0.20/bin/tomcat-native-1.1.16-src/jni/native'
ac_ct_CC='gcc'
bindir='${exec_prefix}/bin'
build='i686-pc-linux-gnu'
build_alias=''
build_cpu='i686'
build_os='linux-gnu'
build_vendor='pc'
datadir='${prefix}'
exec_prefix='${prefix}'
host='i686-pc-linux-gnu'
host_alias='Linux'
host_cpu='i686'
host_os='linux-gnu'
host_vendor='pc'
includedir='${prefix}/include/apr-${TCNATIVE_MAJOR_VERSION}'
infodir='${prefix}/info'
lib_target='-rpath $(libdir) $(OBJECTS)'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/modules'
localstatedir='${prefix}'
mandir='${prefix}/man'
oldincludedir='/usr/include'
prefix='/usr/local/apr'
program_transform_name='s,x,x,'
sbindir='${exec_prefix}/bin'
sharedstatedir='${prefix}/com'
so_ext='lo'
sysconfdir='${prefix}/conf'
target='i686-pc-linux-gnu'
target_alias=''
target_cpu='i686'
target_os='linux-gnu'
target_vendor='pc'
top_builddir='/home/oracle/apache-tomcat-6.0.20/bin/tomcat-native-1.1.16-src/jni/native'

## ----------- ##
## confdefs.h. ##
## ----------- ##

#define HAVE_OPENSSL_DSA 1
#define PACKAGE_BUGREPORT ""
#define PACKAGE_NAME ""
#define PACKAGE_STRING ""
#define PACKAGE_TARNAME ""
#define PACKAGE_VERSION ""

configure: exit 0


>
> 2.) After you run "make" and it completes successfully, what do you see
> if you run "ldd .libs/libtcnative-1.so"?
>
> Also, see below the result of  "ldd .libs/libtcnative-1.so"

[root@opt01 native]# ldd .libs/libtcnative-1.so
        linux-gate.so.1 =>  (0x006fc000)
        libapr-1.so.0 => /usr/local/apr-httpd//lib/libapr-1.so.0
(0x0028f000)
        librt.so.1 => /lib/i686/nosegneg/librt.so.1 (0x00f64000)
        libcrypt.so.1 => /lib/libcrypt.so.1 (0x00e3f000)
        libpthread.so.0 => /lib/i686/nosegneg/libpthread.so.0 (0x00f41000)
        libdl.so.2 => /lib/libdl.so.2 (0x00f72000)
        libc.so.6 => /lib/i686/nosegneg/libc.so.6 (0x00110000)
        /lib/ld-linux.so.2 (0x00941000)
[root@opt01 native]#


Dan
>
> PS.  You're top posting and it is making it very difficult to follow
> this post.
>



>
>
> >
> > Dec 8, 2011 12:25:28 PM org.apache.catalina.core.AprLifecycleListener
> init
> > INFO: Loaded APR based Apache Tomcat Native library 1.1.16.
> > Dec 8, 2011 12:25:28 PM org.apache.catalina.core.AprLifecycleListener
> init
> > INFO: APR capabilities: IPv6 [true], sendfile [true], accept filters
> > [false], random [true].
> > Dec 8, 2011 12:25:28 PM org.apache.catalina.core.AprLifecycleListener
> > lifecycleEvent
> > INFO: Failed to initialize the SSLEngine.
> > Dec 8, 2011 12:25:28 PM org.apache.coyote.http11.Http11AprProtocol init
> > INFO: Initializing Coyote HTTP/1.1 on http-8080
> > Dec 8, 2011 12:25:28 PM org.apache.coyote.http11.Http11AprProtocol init
> > INFO: Initializing Coyote HTTP/1.1 on http-8443
> > Dec 8, 2011 12:25:28 PM org.apache.coyote.ajp.AjpAprProtocol init
> > INFO: Initializing Coyote AJP/1.3 on ajp-8009
> > Dec 8, 2011 12:25:28 PM org.apache.catalina.startup.Catalina load
> > INFO: Initialization processed in 534 ms
> > Dec 8, 2011 12:25:28 PM org.apache.catalina.core.StandardService start
> > INFO: Starting service Catalina
> > Dec 8, 2011 12:25:28 PM org.apache.catalina.core.StandardEngine start
> > INFO: Starting Servlet Engine: Apache Tomcat/6.0.20
> > Dec 8, 2011 12:25:29 PM org.apache.catalina.startup.HostConfig deployWAR
> > INFO: Deploying web application archive swt-web.war
> > Dec 8, 2011 12:25:30 PM org.apache.coyote.http11.Http11AprProtocol start
> > INFO: Starting Coyote HTTP/1.1 on http-8080
> > Dec 8, 2011 12:25:30 PM org.apache.coyote.http11.Http11AprProtocol start
> > INFO: Starting Coyote HTTP/1.1 on http-8443
> > Dec 8, 2011 12:25:30 PM org.apache.coyote.ajp.AjpAprProtocol start
> > INFO: Starting Coyote AJP/1.3 on ajp-8009
> > Dec 8, 2011 12:25:30 PM org.apache.catalina.startup.Catalina start
> > INFO: Server startup in 1411 ms
> >
> > Do I need to do the rest of configuration using http server virtual host:
> > 443 ?
> >
> > When I implemented SSL last on Redhat 4, all i did was to configure
> > ssl.conf and use proxy reverse to instruct http server to service any
> > service from my web application.
> >
> > Please assist to remind me on what to do.
> >
> >
> > Regards,
> >
> > Moshood
> >
> > On Tue, Dec 6, 2011 at 6:38 AM, Daniel Mikusa <dm...@vmware.com>
> wrote:
> >
> > > On Tue, 2011-12-06 at 01:10 -0800, Oladapo Moshood wrote:
> > > > I think yes because I specified the library path. Or how can I
> confirm
> > > your
> > > > question on my server. see below what I have in the path
> > > >
> > > > [root@opt01 apr-httpd]# ll
> > > > total 16
> > > > drwxr-xr-x 2 root root 4096 Dec  2 12:27 bin
> > > > drwxr-xr-x 2 root root 4096 Dec  2 12:27 build-1
> > > > drwxr-xr-x 3 root root 4096 Dec  2 12:27 include
> > > > drwxr-xr-x 3 root root 4096 Dec  5 04:02 lib
> > > >
> > > > [root@opt01 apr-httpd]# cd lib
> > > > [root@opt01 lib]# ll
> > > > total 2932
> > > > -rw-r--r-- 1 root root   8351 Dec  2 12:27 apr.exp
> > > > -rw-r--r-- 1 root root 873264 Dec  2 12:27 libapr-1.a
> > > > -rwxr-xr-x 1 root root    831 Dec  2 12:27 libapr-1.la
> > > > lrwxrwxrwx 1 root root     17 Dec  2 12:27 libapr-1.so ->
> > > libapr-1.so.0.4.5
> > > > lrwxrwxrwx 1 root root     17 Dec  2 12:27 libapr-1.so.0 ->
> > > > libapr-1.so.0.4.5
> > > > -rwxr-xr-x 1 root root 594639 Dec  2 12:27 libapr-1.so.0.4.5
> > > > -rw-r--r-- 1 root root 879016 Dec  5 04:02 libtcnative-1.a
> > > > -rwxr-xr-x 1 root root    899 Dec  5 04:02 libtcnative-1.la
> > > > lrwxrwxrwx 1 root root     23 Dec  5 04:02 libtcnative-1.so ->
> > > > libtcnative-1.so.0.1.16
> > > > lrwxrwxrwx 1 root root     23 Dec  5 04:02 libtcnative-1.so.0 ->
> > > > libtcnative-1.so.0.1.16
> > > > -rwxr-xr-x 1 root root 604439 Dec  5 04:02 libtcnative-1.so.0.1.16
> > > > drwxr-xr-x 2 root root   4096 Dec  5 04:02 pkgconfig
> > > >
> > > > I also have the native library in /usr/lib:
> > > >
> > > > [root@opt01 lib]# pwd
> > > > /usr/lib
> > > > [root@opt01 lib]# ls -l libtc*
> > > > -rwxr-xr-x 1 root root 785200 Jan 10  2007 libtcl8.4.so
> > > > lrwxrwxrwx 1 root root     23 Dec  5 04:07 libtcnative-1.so ->
> > > > libtcnative-1.so.0.1.16
> > > > -rwxr-xr-x 1 root root 604439 Dec  5 04:06 libtcnative-1.so.0.1.16
> > > > [root@opt01 lib]#
> > > >
> > > >
> > > >
> > > > My tomcat startup variables are:
> > > >
> > > > Using CATALINA_BASE:   /home/oracle/apache-tomcat-6.0.20
> > > > Using CATALINA_HOME:   /home/oracle/apache-tomcat-6.0.20
> > > > Using CATALINA_TMPDIR: /home/oracle/apache-tomcat-6.0.20/temp
> > > > Using JRE_HOME:       /usr/java/jre1.6.0_17
> > > >
> > > > THa
> > > >
> > > > On Tue, Dec 6, 2011 at 12:12 AM, Pid * <pi...@pidster.com> wrote:
> > > >
> > > > > On 6 Dec 2011, at 07:51, Oladapo Moshood <mo...@gmail.com>
> wrote:
> > > > >
> > > > > > Dan,
> > > > > >
> > > > > > This is what I actually have in my Oracle EL5. The other
> information
> > > I
> > > > > sent
> > > > > > on apache-tomcat-7 was done on my redhat 6 to see if the error
> i'm
> > > > > getting
> > > > > > is a bug in apache-tomcat-6, but got the same error.
> > > > > >
> > > > > > Here is how i installed it on Oracle EL5:
> > > > > > I have the native libraries in
> > > > > >
> > > /usr/share/apache-tomcat-6.0.20/bin/tomcat-native-1.1.22-src/jni/native
> > > > > to
> > > > > > install tomcat native.
> > > > > >
> > > > > > I Installed with "./configure --with-apr=/usr/local/apr-httpd/
> > > > >
> > > > > And is that location in the library path that Tomcat is looking in?
> > >
> > > This is an important question, what do you have set for
> > > "java.library.path"?
> > >
> > > If you don't know, run Tomcat and execute
> > >
> > >  jinfo <tomcat-pid> | grep java.library.path
> > >
> > > or look at the "VM Summary" tab in jconsole.
> > >
> > > Dan
> > >
> > >
> > >
> > > > >
> > > > > p
> > > > >
> > > > >
> > > > > > --with-java-home=/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/"
> > > > > >
> > > > > >
> > > > > > Thank you
> > > > > >
> > > > > > On Mon, Dec 5, 2011 at 11:44 PM, Oladapo Moshood <
> morechud@gmail.com
> > > >
> > > > > wrote:
> > > > > >
> > > > > >> Dear Dan,
> > > > > >>
> > > > > >> I have the native libraries in
> > > > > >>
> > > /usr/share/apache-tomcat-7.0.23/bin/tomcat-native-1.1.22-src/jni/native
> > > > > to
> > > > > >> install tomcat native.
> > > > > >>
> > > > > >> I Installed with "./configure --with-apr=/usr/local/apr-httpd/
> > > > > >> --with-java-home=/usr/java/jdk1.7.0/"
> > > > > >>
> > > > > >> Thank you
> > > > > >>
> > > > > >>
> > > > > >>
> > > > > >>
> > > > > >> On Mon, Dec 5, 2011 at 2:23 PM, Daniel Mikusa <
> dmikusa@vmware.com>
> > > > > wrote:
> > > > > >>
> > > > > >>> On Mon, 2011-12-05 at 13:20 -0800, Oladapo Moshood wrote:
> > > > > >>>> Dear all,
> > > > > >>>>
> > > > > >>>> I have a very serious problem in making SSL work on apache
> tomcat
> > > 6 on
> > > > > >>> my
> > > > > >>>> oracle EL5. I have been able to configure everything. If I
> access
> > > > > >>>> http://localhost:8443 it works but if I change the http to
> > > https, it
> > > > > >>>> doesn't work. I check my catalina.out log to see with and I
> saw:
> > > > > >>>>
> > > > > >>>> 5-Dec-2011 18:05:55
> org.apache.catalina.core.AprLifecycleListener
> > > > > >>>> lifecycleEvent
> > > > > >>>> INFO: Failed to initialize the SSLEngine.
> > > > > >>>>
> > > > > >>>> I see no other error apart from this error. What can I do? I
> need
> > > to
> > > > > >>>> replicate this at a client site tomorrow - I have to make it
> work.
> > > > > >>>>
> > > > > >>>>
> > > > > >>>> I WILL REALLY APPRECIATE ANY ASSISTANCE.
> > > > > >>>>
> > > > > >>>> Thank you
> > > > > >>>
> > > > > >>> Using the APR connector requires native libraries.
> > > > > >>>
> > > > > >>> 1.) Where did you get the native libraries?  distro package or
> > > compile
> > > > > >>> from source?
> > > > > >>>
> > > > > >>> 2.) What options were used to compile the libraries (i.e. if
> > > compiling
> > > > > >>> from src, please list your "./configure ..." command).
> > > > > >>>
> > > > > >>> Dan
> > > > > >>>
> > > > > >>>
> > > > > >>>
> > > > > >>
> > > > >
> > > > >
>  ---------------------------------------------------------------------
> > > > > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> > > > > For additional commands, e-mail: users-help@tomcat.apache.org
> > > > >
> > > > >
> > >
>



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org

Re: SSL configuration on apache tomcat 6 - Oracle EL5

Posted by Oladapo Moshood <mo...@gmail.com>.
On Thu, Dec 8, 2011 at 8:41 AM, Daniel Mikusa <dm...@vmware.com> wrote:

> On Thu, 2011-12-08 at 08:22 -0800, Oladapo Moshood wrote:
> > After the re-installation of the whole Apache Tomcat Native Library, I
> > still get:
> >
>
> Ok, take a step back for a second...
>
> 1.) What were the results of "./configure ..."?  If you could paste them
> in here, that would be helpful.
>

Please attached is the config.log as requested. Also see below:

This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by configure, which was
generated by GNU Autoconf 2.59.  Invocation command line was

  $ ./configure --with-apr=/usr/local/apr-httpd/
--with-java-home=/usr/lib/jvm/java-1.6.0-openjdk --with-ssl=/usr/lib/openssl

## --------- ##
## Platform. ##
## --------- ##

hostname = opt01.petrodata.net
uname -m = i686
uname -r = 2.6.18-128.el5xen
uname -s = Linux
uname -v = #1 SMP Wed Jan 21 11:55:02 EST 2009

/usr/bin/uname -p = unknown
/bin/uname -X     = unknown

/bin/arch              = i686
/usr/bin/arch -k       = unknown
/usr/convex/getsysinfo = unknown
hostinfo               = unknown
/bin/machine           = unknown
/usr/bin/oslevel       = unknown
/bin/universe          = unknown

PATH: /usr/kerberos/sbin
PATH: /usr/kerberos/bin
PATH: /usr/local/sbin
PATH: /usr/local/bin
PATH: /sbin
PATH: /bin
PATH: /usr/sbin
PATH: /usr/bin
PATH: /root/bin


## ----------- ##
## Core tests. ##
## ----------- ##

configure:1491: checking build system type
configure:1509: result: i686-pc-linux-gnu
configure:1517: checking host system type
configure:1531: result: i686-pc-linux-gnu
configure:1539: checking target system type
configure:1553: result: i686-pc-linux-gnu
configure:1580: checking for a BSD-compatible install
configure:1635: result: /usr/bin/install -c
configure:1653: checking for working mkdir -p
configure:1669: result: yes
configure:1762: checking for chosen layout
configure:1764: result: tcnative
configure:1921: checking for APR
configure:2003: result: yes
configure:2072: checking for a BSD-compatible install
configure:2127: result: /usr/bin/install -c
configure:2142: checking for JDK location (please wait)
configure:2171: result: /usr/lib/jvm/java-1.6.0-openjdk
configure:2247: checking Java platform
configure:2273: checking Java platform
configure:2279: result:
configure:2289: checking for sablevm
configure:2320: result: NONE
configure:2397: checking os_type directory
configure:2518: checking for gcc
configure:2544: result: gcc
configure:2788: checking for C compiler version
configure:2791: gcc --version </dev/null >&5
gcc (GCC) 4.1.2 20080704 (Red Hat 4.1.2-44)
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:2794: $? = 0
configure:2796: gcc -v </dev/null >&5
Using built-in specs.
Target: i386-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
--infodir=/usr/share/info --enable-shared --enable-threads=posix
--enable-checking=release --with-system-zlib --enable-__cxa_atexit
--disable-libunwind-exceptions --enable-libgcj-multifile
--enable-languages=c,c++,objc,obj-c++,java,fortran,ada
--enable-java-awt=gtk --disable-dssi --enable-plugin
--with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre --with-cpu=generic
--host=i386-redhat-linux
Thread model: posix
gcc version 4.1.2 20080704 (Red Hat 4.1.2-44)
configure:2799: $? = 0
configure:2801: gcc -V </dev/null >&5
gcc: '-V' option must have argument
configure:2804: $? = 1
configure:2827: checking for C compiler default output file name
configure:2830: gcc    conftest.c  >&5
configure:2833: $? = 0
configure:2879: result: a.out
configure:2884: checking whether the C compiler works
configure:2890: ./a.out
configure:2893: $? = 0
configure:2910: result: yes
configure:2917: checking whether we are cross compiling
configure:2919: result: no
configure:2922: checking for suffix of executables
configure:2924: gcc -o conftest    conftest.c  >&5
configure:2927: $? = 0
configure:2952: result:
configure:2958: checking for suffix of object files
configure:2979: gcc -c   conftest.c >&5
configure:2982: $? = 0
configure:3004: result: o
configure:3008: checking whether we are using the GNU C compiler
configure:3032: gcc -c   conftest.c >&5
configure:3038: $? = 0
configure:3042: test -z
             || test ! -s conftest.err
configure:3045: $? = 0
configure:3048: test -s conftest.o
configure:3051: $? = 0
configure:3064: result: yes
configure:3070: checking whether gcc accepts -g
configure:3091: gcc -c -g  conftest.c >&5
configure:3097: $? = 0
configure:3101: test -z
             || test ! -s conftest.err
configure:3104: $? = 0
configure:3107: test -s conftest.o
configure:3110: $? = 0
configure:3121: result: yes
configure:3138: checking for gcc option to accept ANSI C
configure:3208: gcc  -c -g -O2  conftest.c >&5
configure:3214: $? = 0
configure:3218: test -z
             || test ! -s conftest.err
configure:3221: $? = 0
configure:3224: test -s conftest.o
configure:3227: $? = 0
configure:3245: result: none needed
configure:3263: gcc -c -g -O2  conftest.c >&5
conftest.c:2: error: expected '=', ',', ';', 'asm' or '__attribute__'
before 'me'
configure:3269: $? = 1
configure: failed program was:
| #ifndef __cplusplus
|   choke me
| #endif
configure:3405: checking for OpenSSL library
configure:3485: result: using openssl from /usr/lib/openssl/lib and
/usr/lib/openssl/include
configure:3500: checking OpenSSL library version
configure:3529: gcc -o conftest -g -O2 -I/usr/lib/openssl/include
conftest.c  -L/usr/lib/openssl/lib -Wl,-rpath,/usr/lib/openssl/lib -lssl
-lcrypto >&5
configure:3532: $? = 0
configure:3534: ./conftest
configure:3537: $? = 0
configure:3539: result: ok
configure:3561: checking for OpenSSL DSA support
configure:3569: result: yes
configure:3943: creating ./config.status

## ---------------------- ##
## Running config.status. ##
## ---------------------- ##

This file was extended by config.status, which was
generated by GNU Autoconf 2.59.  Invocation command line was

  CONFIG_FILES    =
  CONFIG_HEADERS  =
  CONFIG_LINKS    =
  CONFIG_COMMANDS =
  $ ./config.status

on opt01.petrodata.net

config.status:683: creating tcnative.pc
config.status:683: creating Makefile
config.status:866: executing default commands

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_build=i686-pc-linux-gnu
ac_cv_build_alias=i686-pc-linux-gnu
ac_cv_c_compiler_gnu=yes
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_exeext=
ac_cv_host=i686-pc-linux-gnu
ac_cv_host_alias=i686-pc-linux-gnu
ac_cv_mkdir_p=yes
ac_cv_objext=o
ac_cv_path_SABLEVM=NONE
ac_cv_path_install='/usr/bin/install -c'
ac_cv_prog_ac_ct_CC=gcc
ac_cv_prog_cc_g=yes
ac_cv_prog_cc_stdc=
ac_cv_target=i686-pc-linux-gnu
ac_cv_target_alias=i686-pc-linux-gnu

## ----------------- ##
## Output variables. ##
## ----------------- ##

APR_BUILD_DIR='/usr/local/apr-httpd/build-1'
APR_INCLUDES=' -I/usr/local/apr-httpd//include/apr-1 '
APR_LIBS=' /usr/local/apr-httpd//lib/libapr-1.la -lrt -lcrypt  -lpthread
-ldl'
CC='gcc'
CFLAGS='-g -O2 -DHAVE_OPENSSL'
CPPFLAGS=''
DEFS='-DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\"
-DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DHAVE_OPENSSL_DSA=1 '
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EXEEXT=''
EXTRA_OS_LINK=''
INCLUDE_OUTPUTS='include
/home/oracle/apache-tomcat-6.0.20/bin/tomcat-native-1.1.16-src/jni/native/
build-outputs.mk'
INCLUDE_RULES='include
/home/oracle/apache-tomcat-6.0.20/bin/tomcat-native-1.1.16-src/jni/native/build/
rules.mk'
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
JAVA_HOME='/usr/lib/jvm/java-1.6.0-openjdk'
JAVA_OS='linux'
JAVA_PLATFORM=''
LDFLAGS=''
LIBOBJS=''
LIBS=''
LTLIBOBJS=''
OBJEXT='o'
PACKAGE_BUGREPORT=''
PACKAGE_NAME=''
PACKAGE_STRING=''
PACKAGE_TARNAME=''
PACKAGE_VERSION=''
PATH_SEPARATOR=':'
SABLEVM='NONE'
SHELL='/bin/sh'
TCNATIVE_DOTTED_VERSION='1.1.16'
TCNATIVE_EXPORT_LIBS=''
TCNATIVE_INCLUDES=''
TCNATIVE_LDFLAGS='-L/usr/lib/openssl/lib -Wl,-rpath,/usr/lib/openssl/lib
-lssl -lcrypto'
TCNATIVE_LIBNAME='tcnative-${TCNATIVE_MAJOR_VERSION}'
TCNATIVE_LIBS=' /usr/local/apr-httpd//lib/libapr-1.la -lrt -lcrypt
-lpthread -ldl'
TCNATIVE_LIBTOOL_VERSION='1:16:1'
TCNATIVE_MAJOR_VERSION='1'
TCNATIVE_PRIV_INCLUDES='-I/home/oracle/apache-tomcat-6.0.20/bin/tomcat-native-1.1.16-src/jni/native/include
-I/usr/lib/jvm/java-1.6.0-openjdk/include
-I/usr/lib/jvm/java-1.6.0-openjdk/include/linux -I/usr/lib/openssl/include'
TCN_CONFIG_LOCATION='source'
abs_builddir='/home/oracle/apache-tomcat-6.0.20/bin/tomcat-native-1.1.16-src/jni/native'
abs_srcdir='/home/oracle/apache-tomcat-6.0.20/bin/tomcat-native-1.1.16-src/jni/native'
ac_ct_CC='gcc'
bindir='${exec_prefix}/bin'
build='i686-pc-linux-gnu'
build_alias=''
build_cpu='i686'
build_os='linux-gnu'
build_vendor='pc'
datadir='${prefix}'
exec_prefix='${prefix}'
host='i686-pc-linux-gnu'
host_alias='Linux'
host_cpu='i686'
host_os='linux-gnu'
host_vendor='pc'
includedir='${prefix}/include/apr-${TCNATIVE_MAJOR_VERSION}'
infodir='${prefix}/info'
lib_target='-rpath $(libdir) $(OBJECTS)'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/modules'
localstatedir='${prefix}'
mandir='${prefix}/man'
oldincludedir='/usr/include'
prefix='/usr/local/apr'
program_transform_name='s,x,x,'
sbindir='${exec_prefix}/bin'
sharedstatedir='${prefix}/com'
so_ext='lo'
sysconfdir='${prefix}/conf'
target='i686-pc-linux-gnu'
target_alias=''
target_cpu='i686'
target_os='linux-gnu'
target_vendor='pc'
top_builddir='/home/oracle/apache-tomcat-6.0.20/bin/tomcat-native-1.1.16-src/jni/native'

## ----------- ##
## confdefs.h. ##
## ----------- ##

#define HAVE_OPENSSL_DSA 1
#define PACKAGE_BUGREPORT ""
#define PACKAGE_NAME ""
#define PACKAGE_STRING ""
#define PACKAGE_TARNAME ""
#define PACKAGE_VERSION ""

configure: exit 0


>
> 2.) After you run "make" and it completes successfully, what do you see
> if you run "ldd .libs/libtcnative-1.so"?
>
> Also, see below the result of  "ldd .libs/libtcnative-1.so"

[root@opt01 native]# ldd .libs/libtcnative-1.so
        linux-gate.so.1 =>  (0x006fc000)
        libapr-1.so.0 => /usr/local/apr-httpd//lib/libapr-1.so.0
(0x0028f000)
        librt.so.1 => /lib/i686/nosegneg/librt.so.1 (0x00f64000)
        libcrypt.so.1 => /lib/libcrypt.so.1 (0x00e3f000)
        libpthread.so.0 => /lib/i686/nosegneg/libpthread.so.0 (0x00f41000)
        libdl.so.2 => /lib/libdl.so.2 (0x00f72000)
        libc.so.6 => /lib/i686/nosegneg/libc.so.6 (0x00110000)
        /lib/ld-linux.so.2 (0x00941000)
[root@opt01 native]#


Dan
>
> PS.  You're top posting and it is making it very difficult to follow
> this post.
>



>
>
> >
> > Dec 8, 2011 12:25:28 PM org.apache.catalina.core.AprLifecycleListener
> init
> > INFO: Loaded APR based Apache Tomcat Native library 1.1.16.
> > Dec 8, 2011 12:25:28 PM org.apache.catalina.core.AprLifecycleListener
> init
> > INFO: APR capabilities: IPv6 [true], sendfile [true], accept filters
> > [false], random [true].
> > Dec 8, 2011 12:25:28 PM org.apache.catalina.core.AprLifecycleListener
> > lifecycleEvent
> > INFO: Failed to initialize the SSLEngine.
> > Dec 8, 2011 12:25:28 PM org.apache.coyote.http11.Http11AprProtocol init
> > INFO: Initializing Coyote HTTP/1.1 on http-8080
> > Dec 8, 2011 12:25:28 PM org.apache.coyote.http11.Http11AprProtocol init
> > INFO: Initializing Coyote HTTP/1.1 on http-8443
> > Dec 8, 2011 12:25:28 PM org.apache.coyote.ajp.AjpAprProtocol init
> > INFO: Initializing Coyote AJP/1.3 on ajp-8009
> > Dec 8, 2011 12:25:28 PM org.apache.catalina.startup.Catalina load
> > INFO: Initialization processed in 534 ms
> > Dec 8, 2011 12:25:28 PM org.apache.catalina.core.StandardService start
> > INFO: Starting service Catalina
> > Dec 8, 2011 12:25:28 PM org.apache.catalina.core.StandardEngine start
> > INFO: Starting Servlet Engine: Apache Tomcat/6.0.20
> > Dec 8, 2011 12:25:29 PM org.apache.catalina.startup.HostConfig deployWAR
> > INFO: Deploying web application archive swt-web.war
> > Dec 8, 2011 12:25:30 PM org.apache.coyote.http11.Http11AprProtocol start
> > INFO: Starting Coyote HTTP/1.1 on http-8080
> > Dec 8, 2011 12:25:30 PM org.apache.coyote.http11.Http11AprProtocol start
> > INFO: Starting Coyote HTTP/1.1 on http-8443
> > Dec 8, 2011 12:25:30 PM org.apache.coyote.ajp.AjpAprProtocol start
> > INFO: Starting Coyote AJP/1.3 on ajp-8009
> > Dec 8, 2011 12:25:30 PM org.apache.catalina.startup.Catalina start
> > INFO: Server startup in 1411 ms
> >
> > Do I need to do the rest of configuration using http server virtual host:
> > 443 ?
> >
> > When I implemented SSL last on Redhat 4, all i did was to configure
> > ssl.conf and use proxy reverse to instruct http server to service any
> > service from my web application.
> >
> > Please assist to remind me on what to do.
> >
> >
> > Regards,
> >
> > Moshood
> >
> > On Tue, Dec 6, 2011 at 6:38 AM, Daniel Mikusa <dm...@vmware.com>
> wrote:
> >
> > > On Tue, 2011-12-06 at 01:10 -0800, Oladapo Moshood wrote:
> > > > I think yes because I specified the library path. Or how can I
> confirm
> > > your
> > > > question on my server. see below what I have in the path
> > > >
> > > > [root@opt01 apr-httpd]# ll
> > > > total 16
> > > > drwxr-xr-x 2 root root 4096 Dec  2 12:27 bin
> > > > drwxr-xr-x 2 root root 4096 Dec  2 12:27 build-1
> > > > drwxr-xr-x 3 root root 4096 Dec  2 12:27 include
> > > > drwxr-xr-x 3 root root 4096 Dec  5 04:02 lib
> > > >
> > > > [root@opt01 apr-httpd]# cd lib
> > > > [root@opt01 lib]# ll
> > > > total 2932
> > > > -rw-r--r-- 1 root root   8351 Dec  2 12:27 apr.exp
> > > > -rw-r--r-- 1 root root 873264 Dec  2 12:27 libapr-1.a
> > > > -rwxr-xr-x 1 root root    831 Dec  2 12:27 libapr-1.la
> > > > lrwxrwxrwx 1 root root     17 Dec  2 12:27 libapr-1.so ->
> > > libapr-1.so.0.4.5
> > > > lrwxrwxrwx 1 root root     17 Dec  2 12:27 libapr-1.so.0 ->
> > > > libapr-1.so.0.4.5
> > > > -rwxr-xr-x 1 root root 594639 Dec  2 12:27 libapr-1.so.0.4.5
> > > > -rw-r--r-- 1 root root 879016 Dec  5 04:02 libtcnative-1.a
> > > > -rwxr-xr-x 1 root root    899 Dec  5 04:02 libtcnative-1.la
> > > > lrwxrwxrwx 1 root root     23 Dec  5 04:02 libtcnative-1.so ->
> > > > libtcnative-1.so.0.1.16
> > > > lrwxrwxrwx 1 root root     23 Dec  5 04:02 libtcnative-1.so.0 ->
> > > > libtcnative-1.so.0.1.16
> > > > -rwxr-xr-x 1 root root 604439 Dec  5 04:02 libtcnative-1.so.0.1.16
> > > > drwxr-xr-x 2 root root   4096 Dec  5 04:02 pkgconfig
> > > >
> > > > I also have the native library in /usr/lib:
> > > >
> > > > [root@opt01 lib]# pwd
> > > > /usr/lib
> > > > [root@opt01 lib]# ls -l libtc*
> > > > -rwxr-xr-x 1 root root 785200 Jan 10  2007 libtcl8.4.so
> > > > lrwxrwxrwx 1 root root     23 Dec  5 04:07 libtcnative-1.so ->
> > > > libtcnative-1.so.0.1.16
> > > > -rwxr-xr-x 1 root root 604439 Dec  5 04:06 libtcnative-1.so.0.1.16
> > > > [root@opt01 lib]#
> > > >
> > > >
> > > >
> > > > My tomcat startup variables are:
> > > >
> > > > Using CATALINA_BASE:   /home/oracle/apache-tomcat-6.0.20
> > > > Using CATALINA_HOME:   /home/oracle/apache-tomcat-6.0.20
> > > > Using CATALINA_TMPDIR: /home/oracle/apache-tomcat-6.0.20/temp
> > > > Using JRE_HOME:       /usr/java/jre1.6.0_17
> > > >
> > > > THa
> > > >
> > > > On Tue, Dec 6, 2011 at 12:12 AM, Pid * <pi...@pidster.com> wrote:
> > > >
> > > > > On 6 Dec 2011, at 07:51, Oladapo Moshood <mo...@gmail.com>
> wrote:
> > > > >
> > > > > > Dan,
> > > > > >
> > > > > > This is what I actually have in my Oracle EL5. The other
> information
> > > I
> > > > > sent
> > > > > > on apache-tomcat-7 was done on my redhat 6 to see if the error
> i'm
> > > > > getting
> > > > > > is a bug in apache-tomcat-6, but got the same error.
> > > > > >
> > > > > > Here is how i installed it on Oracle EL5:
> > > > > > I have the native libraries in
> > > > > >
> > > /usr/share/apache-tomcat-6.0.20/bin/tomcat-native-1.1.22-src/jni/native
> > > > > to
> > > > > > install tomcat native.
> > > > > >
> > > > > > I Installed with "./configure --with-apr=/usr/local/apr-httpd/
> > > > >
> > > > > And is that location in the library path that Tomcat is looking in?
> > >
> > > This is an important question, what do you have set for
> > > "java.library.path"?
> > >
> > > If you don't know, run Tomcat and execute
> > >
> > >  jinfo <tomcat-pid> | grep java.library.path
> > >
> > > or look at the "VM Summary" tab in jconsole.
> > >
> > > Dan
> > >
> > >
> > >
> > > > >
> > > > > p
> > > > >
> > > > >
> > > > > > --with-java-home=/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/"
> > > > > >
> > > > > >
> > > > > > Thank you
> > > > > >
> > > > > > On Mon, Dec 5, 2011 at 11:44 PM, Oladapo Moshood <
> morechud@gmail.com
> > > >
> > > > > wrote:
> > > > > >
> > > > > >> Dear Dan,
> > > > > >>
> > > > > >> I have the native libraries in
> > > > > >>
> > > /usr/share/apache-tomcat-7.0.23/bin/tomcat-native-1.1.22-src/jni/native
> > > > > to
> > > > > >> install tomcat native.
> > > > > >>
> > > > > >> I Installed with "./configure --with-apr=/usr/local/apr-httpd/
> > > > > >> --with-java-home=/usr/java/jdk1.7.0/"
> > > > > >>
> > > > > >> Thank you
> > > > > >>
> > > > > >>
> > > > > >>
> > > > > >>
> > > > > >> On Mon, Dec 5, 2011 at 2:23 PM, Daniel Mikusa <
> dmikusa@vmware.com>
> > > > > wrote:
> > > > > >>
> > > > > >>> On Mon, 2011-12-05 at 13:20 -0800, Oladapo Moshood wrote:
> > > > > >>>> Dear all,
> > > > > >>>>
> > > > > >>>> I have a very serious problem in making SSL work on apache
> tomcat
> > > 6 on
> > > > > >>> my
> > > > > >>>> oracle EL5. I have been able to configure everything. If I
> access
> > > > > >>>> http://localhost:8443 it works but if I change the http to
> > > https, it
> > > > > >>>> doesn't work. I check my catalina.out log to see with and I
> saw:
> > > > > >>>>
> > > > > >>>> 5-Dec-2011 18:05:55
> org.apache.catalina.core.AprLifecycleListener
> > > > > >>>> lifecycleEvent
> > > > > >>>> INFO: Failed to initialize the SSLEngine.
> > > > > >>>>
> > > > > >>>> I see no other error apart from this error. What can I do? I
> need
> > > to
> > > > > >>>> replicate this at a client site tomorrow - I have to make it
> work.
> > > > > >>>>
> > > > > >>>>
> > > > > >>>> I WILL REALLY APPRECIATE ANY ASSISTANCE.
> > > > > >>>>
> > > > > >>>> Thank you
> > > > > >>>
> > > > > >>> Using the APR connector requires native libraries.
> > > > > >>>
> > > > > >>> 1.) Where did you get the native libraries?  distro package or
> > > compile
> > > > > >>> from source?
> > > > > >>>
> > > > > >>> 2.) What options were used to compile the libraries (i.e. if
> > > compiling
> > > > > >>> from src, please list your "./configure ..." command).
> > > > > >>>
> > > > > >>> Dan
> > > > > >>>
> > > > > >>>
> > > > > >>>
> > > > > >>
> > > > >
> > > > >
>  ---------------------------------------------------------------------
> > > > > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> > > > > For additional commands, e-mail: users-help@tomcat.apache.org
> > > > >
> > > > >
> > >
>

Re: SSL configuration on apache tomcat 6 - Oracle EL5

Posted by Daniel Mikusa <dm...@vmware.com>.
On Thu, 2011-12-08 at 08:22 -0800, Oladapo Moshood wrote:
> After the re-installation of the whole Apache Tomcat Native Library, I
> still get:
> 

Ok, take a step back for a second...

1.) What were the results of "./configure ..."?  If you could paste them
in here, that would be helpful.

2.) After you run "make" and it completes successfully, what do you see
if you run "ldd .libs/libtcnative-1.so"? 

Dan

PS.  You're top posting and it is making it very difficult to follow
this post.


> 
> Dec 8, 2011 12:25:28 PM org.apache.catalina.core.AprLifecycleListener init
> INFO: Loaded APR based Apache Tomcat Native library 1.1.16.
> Dec 8, 2011 12:25:28 PM org.apache.catalina.core.AprLifecycleListener init
> INFO: APR capabilities: IPv6 [true], sendfile [true], accept filters
> [false], random [true].
> Dec 8, 2011 12:25:28 PM org.apache.catalina.core.AprLifecycleListener
> lifecycleEvent
> INFO: Failed to initialize the SSLEngine.
> Dec 8, 2011 12:25:28 PM org.apache.coyote.http11.Http11AprProtocol init
> INFO: Initializing Coyote HTTP/1.1 on http-8080
> Dec 8, 2011 12:25:28 PM org.apache.coyote.http11.Http11AprProtocol init
> INFO: Initializing Coyote HTTP/1.1 on http-8443
> Dec 8, 2011 12:25:28 PM org.apache.coyote.ajp.AjpAprProtocol init
> INFO: Initializing Coyote AJP/1.3 on ajp-8009
> Dec 8, 2011 12:25:28 PM org.apache.catalina.startup.Catalina load
> INFO: Initialization processed in 534 ms
> Dec 8, 2011 12:25:28 PM org.apache.catalina.core.StandardService start
> INFO: Starting service Catalina
> Dec 8, 2011 12:25:28 PM org.apache.catalina.core.StandardEngine start
> INFO: Starting Servlet Engine: Apache Tomcat/6.0.20
> Dec 8, 2011 12:25:29 PM org.apache.catalina.startup.HostConfig deployWAR
> INFO: Deploying web application archive swt-web.war
> Dec 8, 2011 12:25:30 PM org.apache.coyote.http11.Http11AprProtocol start
> INFO: Starting Coyote HTTP/1.1 on http-8080
> Dec 8, 2011 12:25:30 PM org.apache.coyote.http11.Http11AprProtocol start
> INFO: Starting Coyote HTTP/1.1 on http-8443
> Dec 8, 2011 12:25:30 PM org.apache.coyote.ajp.AjpAprProtocol start
> INFO: Starting Coyote AJP/1.3 on ajp-8009
> Dec 8, 2011 12:25:30 PM org.apache.catalina.startup.Catalina start
> INFO: Server startup in 1411 ms
> 
> Do I need to do the rest of configuration using http server virtual host:
> 443 ?
> 
> When I implemented SSL last on Redhat 4, all i did was to configure
> ssl.conf and use proxy reverse to instruct http server to service any
> service from my web application.
> 
> Please assist to remind me on what to do.
> 
> 
> Regards,
> 
> Moshood
> 
> On Tue, Dec 6, 2011 at 6:38 AM, Daniel Mikusa <dm...@vmware.com> wrote:
> 
> > On Tue, 2011-12-06 at 01:10 -0800, Oladapo Moshood wrote:
> > > I think yes because I specified the library path. Or how can I confirm
> > your
> > > question on my server. see below what I have in the path
> > >
> > > [root@opt01 apr-httpd]# ll
> > > total 16
> > > drwxr-xr-x 2 root root 4096 Dec  2 12:27 bin
> > > drwxr-xr-x 2 root root 4096 Dec  2 12:27 build-1
> > > drwxr-xr-x 3 root root 4096 Dec  2 12:27 include
> > > drwxr-xr-x 3 root root 4096 Dec  5 04:02 lib
> > >
> > > [root@opt01 apr-httpd]# cd lib
> > > [root@opt01 lib]# ll
> > > total 2932
> > > -rw-r--r-- 1 root root   8351 Dec  2 12:27 apr.exp
> > > -rw-r--r-- 1 root root 873264 Dec  2 12:27 libapr-1.a
> > > -rwxr-xr-x 1 root root    831 Dec  2 12:27 libapr-1.la
> > > lrwxrwxrwx 1 root root     17 Dec  2 12:27 libapr-1.so ->
> > libapr-1.so.0.4.5
> > > lrwxrwxrwx 1 root root     17 Dec  2 12:27 libapr-1.so.0 ->
> > > libapr-1.so.0.4.5
> > > -rwxr-xr-x 1 root root 594639 Dec  2 12:27 libapr-1.so.0.4.5
> > > -rw-r--r-- 1 root root 879016 Dec  5 04:02 libtcnative-1.a
> > > -rwxr-xr-x 1 root root    899 Dec  5 04:02 libtcnative-1.la
> > > lrwxrwxrwx 1 root root     23 Dec  5 04:02 libtcnative-1.so ->
> > > libtcnative-1.so.0.1.16
> > > lrwxrwxrwx 1 root root     23 Dec  5 04:02 libtcnative-1.so.0 ->
> > > libtcnative-1.so.0.1.16
> > > -rwxr-xr-x 1 root root 604439 Dec  5 04:02 libtcnative-1.so.0.1.16
> > > drwxr-xr-x 2 root root   4096 Dec  5 04:02 pkgconfig
> > >
> > > I also have the native library in /usr/lib:
> > >
> > > [root@opt01 lib]# pwd
> > > /usr/lib
> > > [root@opt01 lib]# ls -l libtc*
> > > -rwxr-xr-x 1 root root 785200 Jan 10  2007 libtcl8.4.so
> > > lrwxrwxrwx 1 root root     23 Dec  5 04:07 libtcnative-1.so ->
> > > libtcnative-1.so.0.1.16
> > > -rwxr-xr-x 1 root root 604439 Dec  5 04:06 libtcnative-1.so.0.1.16
> > > [root@opt01 lib]#
> > >
> > >
> > >
> > > My tomcat startup variables are:
> > >
> > > Using CATALINA_BASE:   /home/oracle/apache-tomcat-6.0.20
> > > Using CATALINA_HOME:   /home/oracle/apache-tomcat-6.0.20
> > > Using CATALINA_TMPDIR: /home/oracle/apache-tomcat-6.0.20/temp
> > > Using JRE_HOME:       /usr/java/jre1.6.0_17
> > >
> > > THa
> > >
> > > On Tue, Dec 6, 2011 at 12:12 AM, Pid * <pi...@pidster.com> wrote:
> > >
> > > > On 6 Dec 2011, at 07:51, Oladapo Moshood <mo...@gmail.com> wrote:
> > > >
> > > > > Dan,
> > > > >
> > > > > This is what I actually have in my Oracle EL5. The other information
> > I
> > > > sent
> > > > > on apache-tomcat-7 was done on my redhat 6 to see if the error i'm
> > > > getting
> > > > > is a bug in apache-tomcat-6, but got the same error.
> > > > >
> > > > > Here is how i installed it on Oracle EL5:
> > > > > I have the native libraries in
> > > > >
> > /usr/share/apache-tomcat-6.0.20/bin/tomcat-native-1.1.22-src/jni/native
> > > > to
> > > > > install tomcat native.
> > > > >
> > > > > I Installed with "./configure --with-apr=/usr/local/apr-httpd/
> > > >
> > > > And is that location in the library path that Tomcat is looking in?
> >
> > This is an important question, what do you have set for
> > "java.library.path"?
> >
> > If you don't know, run Tomcat and execute
> >
> >  jinfo <tomcat-pid> | grep java.library.path
> >
> > or look at the "VM Summary" tab in jconsole.
> >
> > Dan
> >
> >
> >
> > > >
> > > > p
> > > >
> > > >
> > > > > --with-java-home=/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/"
> > > > >
> > > > >
> > > > > Thank you
> > > > >
> > > > > On Mon, Dec 5, 2011 at 11:44 PM, Oladapo Moshood <morechud@gmail.com
> > >
> > > > wrote:
> > > > >
> > > > >> Dear Dan,
> > > > >>
> > > > >> I have the native libraries in
> > > > >>
> > /usr/share/apache-tomcat-7.0.23/bin/tomcat-native-1.1.22-src/jni/native
> > > > to
> > > > >> install tomcat native.
> > > > >>
> > > > >> I Installed with "./configure --with-apr=/usr/local/apr-httpd/
> > > > >> --with-java-home=/usr/java/jdk1.7.0/"
> > > > >>
> > > > >> Thank you
> > > > >>
> > > > >>
> > > > >>
> > > > >>
> > > > >> On Mon, Dec 5, 2011 at 2:23 PM, Daniel Mikusa <dm...@vmware.com>
> > > > wrote:
> > > > >>
> > > > >>> On Mon, 2011-12-05 at 13:20 -0800, Oladapo Moshood wrote:
> > > > >>>> Dear all,
> > > > >>>>
> > > > >>>> I have a very serious problem in making SSL work on apache tomcat
> > 6 on
> > > > >>> my
> > > > >>>> oracle EL5. I have been able to configure everything. If I access
> > > > >>>> http://localhost:8443 it works but if I change the http to
> > https, it
> > > > >>>> doesn't work. I check my catalina.out log to see with and I saw:
> > > > >>>>
> > > > >>>> 5-Dec-2011 18:05:55 org.apache.catalina.core.AprLifecycleListener
> > > > >>>> lifecycleEvent
> > > > >>>> INFO: Failed to initialize the SSLEngine.
> > > > >>>>
> > > > >>>> I see no other error apart from this error. What can I do? I need
> > to
> > > > >>>> replicate this at a client site tomorrow - I have to make it work.
> > > > >>>>
> > > > >>>>
> > > > >>>> I WILL REALLY APPRECIATE ANY ASSISTANCE.
> > > > >>>>
> > > > >>>> Thank you
> > > > >>>
> > > > >>> Using the APR connector requires native libraries.
> > > > >>>
> > > > >>> 1.) Where did you get the native libraries?  distro package or
> > compile
> > > > >>> from source?
> > > > >>>
> > > > >>> 2.) What options were used to compile the libraries (i.e. if
> > compiling
> > > > >>> from src, please list your "./configure ..." command).
> > > > >>>
> > > > >>> Dan
> > > > >>>
> > > > >>>
> > > > >>>
> > > > >>
> > > >
> > > >  ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> > > > For additional commands, e-mail: users-help@tomcat.apache.org
> > > >
> > > >
> >

Re: SSL configuration on apache tomcat 6 - Oracle EL5

Posted by Oladapo Moshood <mo...@gmail.com>.
After the re-installation of the whole Apache Tomcat Native Library, I
still get:


Dec 8, 2011 12:25:28 PM org.apache.catalina.core.AprLifecycleListener init
INFO: Loaded APR based Apache Tomcat Native library 1.1.16.
Dec 8, 2011 12:25:28 PM org.apache.catalina.core.AprLifecycleListener init
INFO: APR capabilities: IPv6 [true], sendfile [true], accept filters
[false], random [true].
Dec 8, 2011 12:25:28 PM org.apache.catalina.core.AprLifecycleListener
lifecycleEvent
INFO: Failed to initialize the SSLEngine.
Dec 8, 2011 12:25:28 PM org.apache.coyote.http11.Http11AprProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Dec 8, 2011 12:25:28 PM org.apache.coyote.http11.Http11AprProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8443
Dec 8, 2011 12:25:28 PM org.apache.coyote.ajp.AjpAprProtocol init
INFO: Initializing Coyote AJP/1.3 on ajp-8009
Dec 8, 2011 12:25:28 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 534 ms
Dec 8, 2011 12:25:28 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Dec 8, 2011 12:25:28 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.20
Dec 8, 2011 12:25:29 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive swt-web.war
Dec 8, 2011 12:25:30 PM org.apache.coyote.http11.Http11AprProtocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Dec 8, 2011 12:25:30 PM org.apache.coyote.http11.Http11AprProtocol start
INFO: Starting Coyote HTTP/1.1 on http-8443
Dec 8, 2011 12:25:30 PM org.apache.coyote.ajp.AjpAprProtocol start
INFO: Starting Coyote AJP/1.3 on ajp-8009
Dec 8, 2011 12:25:30 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 1411 ms

Do I need to do the rest of configuration using http server virtual host:
443 ?

When I implemented SSL last on Redhat 4, all i did was to configure
ssl.conf and use proxy reverse to instruct http server to service any
service from my web application.

Please assist to remind me on what to do.


Regards,

Moshood

On Tue, Dec 6, 2011 at 6:38 AM, Daniel Mikusa <dm...@vmware.com> wrote:

> On Tue, 2011-12-06 at 01:10 -0800, Oladapo Moshood wrote:
> > I think yes because I specified the library path. Or how can I confirm
> your
> > question on my server. see below what I have in the path
> >
> > [root@opt01 apr-httpd]# ll
> > total 16
> > drwxr-xr-x 2 root root 4096 Dec  2 12:27 bin
> > drwxr-xr-x 2 root root 4096 Dec  2 12:27 build-1
> > drwxr-xr-x 3 root root 4096 Dec  2 12:27 include
> > drwxr-xr-x 3 root root 4096 Dec  5 04:02 lib
> >
> > [root@opt01 apr-httpd]# cd lib
> > [root@opt01 lib]# ll
> > total 2932
> > -rw-r--r-- 1 root root   8351 Dec  2 12:27 apr.exp
> > -rw-r--r-- 1 root root 873264 Dec  2 12:27 libapr-1.a
> > -rwxr-xr-x 1 root root    831 Dec  2 12:27 libapr-1.la
> > lrwxrwxrwx 1 root root     17 Dec  2 12:27 libapr-1.so ->
> libapr-1.so.0.4.5
> > lrwxrwxrwx 1 root root     17 Dec  2 12:27 libapr-1.so.0 ->
> > libapr-1.so.0.4.5
> > -rwxr-xr-x 1 root root 594639 Dec  2 12:27 libapr-1.so.0.4.5
> > -rw-r--r-- 1 root root 879016 Dec  5 04:02 libtcnative-1.a
> > -rwxr-xr-x 1 root root    899 Dec  5 04:02 libtcnative-1.la
> > lrwxrwxrwx 1 root root     23 Dec  5 04:02 libtcnative-1.so ->
> > libtcnative-1.so.0.1.16
> > lrwxrwxrwx 1 root root     23 Dec  5 04:02 libtcnative-1.so.0 ->
> > libtcnative-1.so.0.1.16
> > -rwxr-xr-x 1 root root 604439 Dec  5 04:02 libtcnative-1.so.0.1.16
> > drwxr-xr-x 2 root root   4096 Dec  5 04:02 pkgconfig
> >
> > I also have the native library in /usr/lib:
> >
> > [root@opt01 lib]# pwd
> > /usr/lib
> > [root@opt01 lib]# ls -l libtc*
> > -rwxr-xr-x 1 root root 785200 Jan 10  2007 libtcl8.4.so
> > lrwxrwxrwx 1 root root     23 Dec  5 04:07 libtcnative-1.so ->
> > libtcnative-1.so.0.1.16
> > -rwxr-xr-x 1 root root 604439 Dec  5 04:06 libtcnative-1.so.0.1.16
> > [root@opt01 lib]#
> >
> >
> >
> > My tomcat startup variables are:
> >
> > Using CATALINA_BASE:   /home/oracle/apache-tomcat-6.0.20
> > Using CATALINA_HOME:   /home/oracle/apache-tomcat-6.0.20
> > Using CATALINA_TMPDIR: /home/oracle/apache-tomcat-6.0.20/temp
> > Using JRE_HOME:       /usr/java/jre1.6.0_17
> >
> > THa
> >
> > On Tue, Dec 6, 2011 at 12:12 AM, Pid * <pi...@pidster.com> wrote:
> >
> > > On 6 Dec 2011, at 07:51, Oladapo Moshood <mo...@gmail.com> wrote:
> > >
> > > > Dan,
> > > >
> > > > This is what I actually have in my Oracle EL5. The other information
> I
> > > sent
> > > > on apache-tomcat-7 was done on my redhat 6 to see if the error i'm
> > > getting
> > > > is a bug in apache-tomcat-6, but got the same error.
> > > >
> > > > Here is how i installed it on Oracle EL5:
> > > > I have the native libraries in
> > > >
> /usr/share/apache-tomcat-6.0.20/bin/tomcat-native-1.1.22-src/jni/native
> > > to
> > > > install tomcat native.
> > > >
> > > > I Installed with "./configure --with-apr=/usr/local/apr-httpd/
> > >
> > > And is that location in the library path that Tomcat is looking in?
>
> This is an important question, what do you have set for
> "java.library.path"?
>
> If you don't know, run Tomcat and execute
>
>  jinfo <tomcat-pid> | grep java.library.path
>
> or look at the "VM Summary" tab in jconsole.
>
> Dan
>
>
>
> > >
> > > p
> > >
> > >
> > > > --with-java-home=/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/"
> > > >
> > > >
> > > > Thank you
> > > >
> > > > On Mon, Dec 5, 2011 at 11:44 PM, Oladapo Moshood <morechud@gmail.com
> >
> > > wrote:
> > > >
> > > >> Dear Dan,
> > > >>
> > > >> I have the native libraries in
> > > >>
> /usr/share/apache-tomcat-7.0.23/bin/tomcat-native-1.1.22-src/jni/native
> > > to
> > > >> install tomcat native.
> > > >>
> > > >> I Installed with "./configure --with-apr=/usr/local/apr-httpd/
> > > >> --with-java-home=/usr/java/jdk1.7.0/"
> > > >>
> > > >> Thank you
> > > >>
> > > >>
> > > >>
> > > >>
> > > >> On Mon, Dec 5, 2011 at 2:23 PM, Daniel Mikusa <dm...@vmware.com>
> > > wrote:
> > > >>
> > > >>> On Mon, 2011-12-05 at 13:20 -0800, Oladapo Moshood wrote:
> > > >>>> Dear all,
> > > >>>>
> > > >>>> I have a very serious problem in making SSL work on apache tomcat
> 6 on
> > > >>> my
> > > >>>> oracle EL5. I have been able to configure everything. If I access
> > > >>>> http://localhost:8443 it works but if I change the http to
> https, it
> > > >>>> doesn't work. I check my catalina.out log to see with and I saw:
> > > >>>>
> > > >>>> 5-Dec-2011 18:05:55 org.apache.catalina.core.AprLifecycleListener
> > > >>>> lifecycleEvent
> > > >>>> INFO: Failed to initialize the SSLEngine.
> > > >>>>
> > > >>>> I see no other error apart from this error. What can I do? I need
> to
> > > >>>> replicate this at a client site tomorrow - I have to make it work.
> > > >>>>
> > > >>>>
> > > >>>> I WILL REALLY APPRECIATE ANY ASSISTANCE.
> > > >>>>
> > > >>>> Thank you
> > > >>>
> > > >>> Using the APR connector requires native libraries.
> > > >>>
> > > >>> 1.) Where did you get the native libraries?  distro package or
> compile
> > > >>> from source?
> > > >>>
> > > >>> 2.) What options were used to compile the libraries (i.e. if
> compiling
> > > >>> from src, please list your "./configure ..." command).
> > > >>>
> > > >>> Dan
> > > >>>
> > > >>>
> > > >>>
> > > >>
> > >
> > >  ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> > > For additional commands, e-mail: users-help@tomcat.apache.org
> > >
> > >
>

Re: SSL configuration on apache tomcat 6 - Oracle EL5

Posted by Daniel Mikusa <dm...@vmware.com>.
On Tue, 2011-12-06 at 01:10 -0800, Oladapo Moshood wrote:
> I think yes because I specified the library path. Or how can I confirm your
> question on my server. see below what I have in the path
> 
> [root@opt01 apr-httpd]# ll
> total 16
> drwxr-xr-x 2 root root 4096 Dec  2 12:27 bin
> drwxr-xr-x 2 root root 4096 Dec  2 12:27 build-1
> drwxr-xr-x 3 root root 4096 Dec  2 12:27 include
> drwxr-xr-x 3 root root 4096 Dec  5 04:02 lib
> 
> [root@opt01 apr-httpd]# cd lib
> [root@opt01 lib]# ll
> total 2932
> -rw-r--r-- 1 root root   8351 Dec  2 12:27 apr.exp
> -rw-r--r-- 1 root root 873264 Dec  2 12:27 libapr-1.a
> -rwxr-xr-x 1 root root    831 Dec  2 12:27 libapr-1.la
> lrwxrwxrwx 1 root root     17 Dec  2 12:27 libapr-1.so -> libapr-1.so.0.4.5
> lrwxrwxrwx 1 root root     17 Dec  2 12:27 libapr-1.so.0 ->
> libapr-1.so.0.4.5
> -rwxr-xr-x 1 root root 594639 Dec  2 12:27 libapr-1.so.0.4.5
> -rw-r--r-- 1 root root 879016 Dec  5 04:02 libtcnative-1.a
> -rwxr-xr-x 1 root root    899 Dec  5 04:02 libtcnative-1.la
> lrwxrwxrwx 1 root root     23 Dec  5 04:02 libtcnative-1.so ->
> libtcnative-1.so.0.1.16
> lrwxrwxrwx 1 root root     23 Dec  5 04:02 libtcnative-1.so.0 ->
> libtcnative-1.so.0.1.16
> -rwxr-xr-x 1 root root 604439 Dec  5 04:02 libtcnative-1.so.0.1.16
> drwxr-xr-x 2 root root   4096 Dec  5 04:02 pkgconfig
> 
> I also have the native library in /usr/lib:
> 
> [root@opt01 lib]# pwd
> /usr/lib
> [root@opt01 lib]# ls -l libtc*
> -rwxr-xr-x 1 root root 785200 Jan 10  2007 libtcl8.4.so
> lrwxrwxrwx 1 root root     23 Dec  5 04:07 libtcnative-1.so ->
> libtcnative-1.so.0.1.16
> -rwxr-xr-x 1 root root 604439 Dec  5 04:06 libtcnative-1.so.0.1.16
> [root@opt01 lib]#
> 
> 
> 
> My tomcat startup variables are:
> 
> Using CATALINA_BASE:   /home/oracle/apache-tomcat-6.0.20
> Using CATALINA_HOME:   /home/oracle/apache-tomcat-6.0.20
> Using CATALINA_TMPDIR: /home/oracle/apache-tomcat-6.0.20/temp
> Using JRE_HOME:       /usr/java/jre1.6.0_17
> 
> THa
> 
> On Tue, Dec 6, 2011 at 12:12 AM, Pid * <pi...@pidster.com> wrote:
> 
> > On 6 Dec 2011, at 07:51, Oladapo Moshood <mo...@gmail.com> wrote:
> >
> > > Dan,
> > >
> > > This is what I actually have in my Oracle EL5. The other information I
> > sent
> > > on apache-tomcat-7 was done on my redhat 6 to see if the error i'm
> > getting
> > > is a bug in apache-tomcat-6, but got the same error.
> > >
> > > Here is how i installed it on Oracle EL5:
> > > I have the native libraries in
> > > /usr/share/apache-tomcat-6.0.20/bin/tomcat-native-1.1.22-src/jni/native
> > to
> > > install tomcat native.
> > >
> > > I Installed with "./configure --with-apr=/usr/local/apr-httpd/
> >
> > And is that location in the library path that Tomcat is looking in?

This is an important question, what do you have set for
"java.library.path"?

If you don't know, run Tomcat and execute 

 jinfo <tomcat-pid> | grep java.library.path

or look at the "VM Summary" tab in jconsole.

Dan



> >
> > p
> >
> >
> > > --with-java-home=/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/"
> > >
> > >
> > > Thank you
> > >
> > > On Mon, Dec 5, 2011 at 11:44 PM, Oladapo Moshood <mo...@gmail.com>
> > wrote:
> > >
> > >> Dear Dan,
> > >>
> > >> I have the native libraries in
> > >> /usr/share/apache-tomcat-7.0.23/bin/tomcat-native-1.1.22-src/jni/native
> > to
> > >> install tomcat native.
> > >>
> > >> I Installed with "./configure --with-apr=/usr/local/apr-httpd/
> > >> --with-java-home=/usr/java/jdk1.7.0/"
> > >>
> > >> Thank you
> > >>
> > >>
> > >>
> > >>
> > >> On Mon, Dec 5, 2011 at 2:23 PM, Daniel Mikusa <dm...@vmware.com>
> > wrote:
> > >>
> > >>> On Mon, 2011-12-05 at 13:20 -0800, Oladapo Moshood wrote:
> > >>>> Dear all,
> > >>>>
> > >>>> I have a very serious problem in making SSL work on apache tomcat 6 on
> > >>> my
> > >>>> oracle EL5. I have been able to configure everything. If I access
> > >>>> http://localhost:8443 it works but if I change the http to https, it
> > >>>> doesn't work. I check my catalina.out log to see with and I saw:
> > >>>>
> > >>>> 5-Dec-2011 18:05:55 org.apache.catalina.core.AprLifecycleListener
> > >>>> lifecycleEvent
> > >>>> INFO: Failed to initialize the SSLEngine.
> > >>>>
> > >>>> I see no other error apart from this error. What can I do? I need to
> > >>>> replicate this at a client site tomorrow - I have to make it work.
> > >>>>
> > >>>>
> > >>>> I WILL REALLY APPRECIATE ANY ASSISTANCE.
> > >>>>
> > >>>> Thank you
> > >>>
> > >>> Using the APR connector requires native libraries.
> > >>>
> > >>> 1.) Where did you get the native libraries?  distro package or compile
> > >>> from source?
> > >>>
> > >>> 2.) What options were used to compile the libraries (i.e. if compiling
> > >>> from src, please list your "./configure ..." command).
> > >>>
> > >>> Dan
> > >>>
> > >>>
> > >>>
> > >>
> >
> >  ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> > For additional commands, e-mail: users-help@tomcat.apache.org
> >
> >

Re: SSL configuration on apache tomcat 6 - Oracle EL5

Posted by Oladapo Moshood <mo...@gmail.com>.
I think yes because I specified the library path. Or how can I confirm your
question on my server. see below what I have in the path

[root@opt01 apr-httpd]# ll
total 16
drwxr-xr-x 2 root root 4096 Dec  2 12:27 bin
drwxr-xr-x 2 root root 4096 Dec  2 12:27 build-1
drwxr-xr-x 3 root root 4096 Dec  2 12:27 include
drwxr-xr-x 3 root root 4096 Dec  5 04:02 lib

[root@opt01 apr-httpd]# cd lib
[root@opt01 lib]# ll
total 2932
-rw-r--r-- 1 root root   8351 Dec  2 12:27 apr.exp
-rw-r--r-- 1 root root 873264 Dec  2 12:27 libapr-1.a
-rwxr-xr-x 1 root root    831 Dec  2 12:27 libapr-1.la
lrwxrwxrwx 1 root root     17 Dec  2 12:27 libapr-1.so -> libapr-1.so.0.4.5
lrwxrwxrwx 1 root root     17 Dec  2 12:27 libapr-1.so.0 ->
libapr-1.so.0.4.5
-rwxr-xr-x 1 root root 594639 Dec  2 12:27 libapr-1.so.0.4.5
-rw-r--r-- 1 root root 879016 Dec  5 04:02 libtcnative-1.a
-rwxr-xr-x 1 root root    899 Dec  5 04:02 libtcnative-1.la
lrwxrwxrwx 1 root root     23 Dec  5 04:02 libtcnative-1.so ->
libtcnative-1.so.0.1.16
lrwxrwxrwx 1 root root     23 Dec  5 04:02 libtcnative-1.so.0 ->
libtcnative-1.so.0.1.16
-rwxr-xr-x 1 root root 604439 Dec  5 04:02 libtcnative-1.so.0.1.16
drwxr-xr-x 2 root root   4096 Dec  5 04:02 pkgconfig

I also have the native library in /usr/lib:

[root@opt01 lib]# pwd
/usr/lib
[root@opt01 lib]# ls -l libtc*
-rwxr-xr-x 1 root root 785200 Jan 10  2007 libtcl8.4.so
lrwxrwxrwx 1 root root     23 Dec  5 04:07 libtcnative-1.so ->
libtcnative-1.so.0.1.16
-rwxr-xr-x 1 root root 604439 Dec  5 04:06 libtcnative-1.so.0.1.16
[root@opt01 lib]#



My tomcat startup variables are:

Using CATALINA_BASE:   /home/oracle/apache-tomcat-6.0.20
Using CATALINA_HOME:   /home/oracle/apache-tomcat-6.0.20
Using CATALINA_TMPDIR: /home/oracle/apache-tomcat-6.0.20/temp
Using JRE_HOME:       /usr/java/jre1.6.0_17

THa

On Tue, Dec 6, 2011 at 12:12 AM, Pid * <pi...@pidster.com> wrote:

> On 6 Dec 2011, at 07:51, Oladapo Moshood <mo...@gmail.com> wrote:
>
> > Dan,
> >
> > This is what I actually have in my Oracle EL5. The other information I
> sent
> > on apache-tomcat-7 was done on my redhat 6 to see if the error i'm
> getting
> > is a bug in apache-tomcat-6, but got the same error.
> >
> > Here is how i installed it on Oracle EL5:
> > I have the native libraries in
> > /usr/share/apache-tomcat-6.0.20/bin/tomcat-native-1.1.22-src/jni/native
> to
> > install tomcat native.
> >
> > I Installed with "./configure --with-apr=/usr/local/apr-httpd/
>
> And is that location in the library path that Tomcat is looking in?
>
>
> p
>
>
> > --with-java-home=/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/"
> >
> >
> > Thank you
> >
> > On Mon, Dec 5, 2011 at 11:44 PM, Oladapo Moshood <mo...@gmail.com>
> wrote:
> >
> >> Dear Dan,
> >>
> >> I have the native libraries in
> >> /usr/share/apache-tomcat-7.0.23/bin/tomcat-native-1.1.22-src/jni/native
> to
> >> install tomcat native.
> >>
> >> I Installed with "./configure --with-apr=/usr/local/apr-httpd/
> >> --with-java-home=/usr/java/jdk1.7.0/"
> >>
> >> Thank you
> >>
> >>
> >>
> >>
> >> On Mon, Dec 5, 2011 at 2:23 PM, Daniel Mikusa <dm...@vmware.com>
> wrote:
> >>
> >>> On Mon, 2011-12-05 at 13:20 -0800, Oladapo Moshood wrote:
> >>>> Dear all,
> >>>>
> >>>> I have a very serious problem in making SSL work on apache tomcat 6 on
> >>> my
> >>>> oracle EL5. I have been able to configure everything. If I access
> >>>> http://localhost:8443 it works but if I change the http to https, it
> >>>> doesn't work. I check my catalina.out log to see with and I saw:
> >>>>
> >>>> 5-Dec-2011 18:05:55 org.apache.catalina.core.AprLifecycleListener
> >>>> lifecycleEvent
> >>>> INFO: Failed to initialize the SSLEngine.
> >>>>
> >>>> I see no other error apart from this error. What can I do? I need to
> >>>> replicate this at a client site tomorrow - I have to make it work.
> >>>>
> >>>>
> >>>> I WILL REALLY APPRECIATE ANY ASSISTANCE.
> >>>>
> >>>> Thank you
> >>>
> >>> Using the APR connector requires native libraries.
> >>>
> >>> 1.) Where did you get the native libraries?  distro package or compile
> >>> from source?
> >>>
> >>> 2.) What options were used to compile the libraries (i.e. if compiling
> >>> from src, please list your "./configure ..." command).
> >>>
> >>> Dan
> >>>
> >>>
> >>>
> >>
>
>  ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

Re: SSL configuration on apache tomcat 6 - Oracle EL5

Posted by Pid * <pi...@pidster.com>.
On 6 Dec 2011, at 07:51, Oladapo Moshood <mo...@gmail.com> wrote:

> Dan,
>
> This is what I actually have in my Oracle EL5. The other information I sent
> on apache-tomcat-7 was done on my redhat 6 to see if the error i'm getting
> is a bug in apache-tomcat-6, but got the same error.
>
> Here is how i installed it on Oracle EL5:
> I have the native libraries in
> /usr/share/apache-tomcat-6.0.20/bin/tomcat-native-1.1.22-src/jni/native to
> install tomcat native.
>
> I Installed with "./configure --with-apr=/usr/local/apr-httpd/

And is that location in the library path that Tomcat is looking in?


p


> --with-java-home=/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/"
>
>
> Thank you
>
> On Mon, Dec 5, 2011 at 11:44 PM, Oladapo Moshood <mo...@gmail.com> wrote:
>
>> Dear Dan,
>>
>> I have the native libraries in
>> /usr/share/apache-tomcat-7.0.23/bin/tomcat-native-1.1.22-src/jni/native to
>> install tomcat native.
>>
>> I Installed with "./configure --with-apr=/usr/local/apr-httpd/
>> --with-java-home=/usr/java/jdk1.7.0/"
>>
>> Thank you
>>
>>
>>
>>
>> On Mon, Dec 5, 2011 at 2:23 PM, Daniel Mikusa <dm...@vmware.com> wrote:
>>
>>> On Mon, 2011-12-05 at 13:20 -0800, Oladapo Moshood wrote:
>>>> Dear all,
>>>>
>>>> I have a very serious problem in making SSL work on apache tomcat 6 on
>>> my
>>>> oracle EL5. I have been able to configure everything. If I access
>>>> http://localhost:8443 it works but if I change the http to https, it
>>>> doesn't work. I check my catalina.out log to see with and I saw:
>>>>
>>>> 5-Dec-2011 18:05:55 org.apache.catalina.core.AprLifecycleListener
>>>> lifecycleEvent
>>>> INFO: Failed to initialize the SSLEngine.
>>>>
>>>> I see no other error apart from this error. What can I do? I need to
>>>> replicate this at a client site tomorrow - I have to make it work.
>>>>
>>>>
>>>> I WILL REALLY APPRECIATE ANY ASSISTANCE.
>>>>
>>>> Thank you
>>>
>>> Using the APR connector requires native libraries.
>>>
>>> 1.) Where did you get the native libraries?  distro package or compile
>>> from source?
>>>
>>> 2.) What options were used to compile the libraries (i.e. if compiling
>>> from src, please list your "./configure ..." command).
>>>
>>> Dan
>>>
>>>
>>>
>>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: SSL configuration on apache tomcat 6 - Oracle EL5

Posted by Oladapo Moshood <mo...@gmail.com>.
Dan,

This is what I actually have in my Oracle EL5. The other information I sent
on apache-tomcat-7 was done on my redhat 6 to see if the error i'm getting
is a bug in apache-tomcat-6, but got the same error.

Here is how i installed it on Oracle EL5:
I have the native libraries in
/usr/share/apache-tomcat-6.0.20/bin/tomcat-native-1.1.22-src/jni/native to
install tomcat native.

I Installed with "./configure --with-apr=/usr/local/apr-httpd/
--with-java-home=/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/"


Thank you

On Mon, Dec 5, 2011 at 11:44 PM, Oladapo Moshood <mo...@gmail.com> wrote:

> Dear Dan,
>
> I have the native libraries in
> /usr/share/apache-tomcat-7.0.23/bin/tomcat-native-1.1.22-src/jni/native to
> install tomcat native.
>
> I Installed with "./configure --with-apr=/usr/local/apr-httpd/
> --with-java-home=/usr/java/jdk1.7.0/"
>
> Thank you
>
>
>
>
> On Mon, Dec 5, 2011 at 2:23 PM, Daniel Mikusa <dm...@vmware.com> wrote:
>
>> On Mon, 2011-12-05 at 13:20 -0800, Oladapo Moshood wrote:
>> > Dear all,
>> >
>> > I have a very serious problem in making SSL work on apache tomcat 6 on
>> my
>> > oracle EL5. I have been able to configure everything. If I access
>> > http://localhost:8443 it works but if I change the http to https, it
>> > doesn't work. I check my catalina.out log to see with and I saw:
>> >
>> > 5-Dec-2011 18:05:55 org.apache.catalina.core.AprLifecycleListener
>> > lifecycleEvent
>> > INFO: Failed to initialize the SSLEngine.
>> >
>> > I see no other error apart from this error. What can I do? I need to
>> > replicate this at a client site tomorrow - I have to make it work.
>> >
>> >
>> > I WILL REALLY APPRECIATE ANY ASSISTANCE.
>> >
>> > Thank you
>>
>> Using the APR connector requires native libraries.
>>
>> 1.) Where did you get the native libraries?  distro package or compile
>> from source?
>>
>> 2.) What options were used to compile the libraries (i.e. if compiling
>> from src, please list your "./configure ..." command).
>>
>> Dan
>>
>>
>>
>

Re: SSL configuration on apache tomcat 6 - Oracle EL5

Posted by Oladapo Moshood <mo...@gmail.com>.
Dear Dan,

I have the native libraries in
/usr/share/apache-tomcat-7.0.23/bin/tomcat-native-1.1.22-src/jni/native to
install tomcat native.

I Installed with "./configure --with-apr=/usr/local/apr-httpd/
--with-java-home=/usr/java/jdk1.7.0/"

Thank you



On Mon, Dec 5, 2011 at 2:23 PM, Daniel Mikusa <dm...@vmware.com> wrote:

> On Mon, 2011-12-05 at 13:20 -0800, Oladapo Moshood wrote:
> > Dear all,
> >
> > I have a very serious problem in making SSL work on apache tomcat 6 on my
> > oracle EL5. I have been able to configure everything. If I access
> > http://localhost:8443 it works but if I change the http to https, it
> > doesn't work. I check my catalina.out log to see with and I saw:
> >
> > 5-Dec-2011 18:05:55 org.apache.catalina.core.AprLifecycleListener
> > lifecycleEvent
> > INFO: Failed to initialize the SSLEngine.
> >
> > I see no other error apart from this error. What can I do? I need to
> > replicate this at a client site tomorrow - I have to make it work.
> >
> >
> > I WILL REALLY APPRECIATE ANY ASSISTANCE.
> >
> > Thank you
>
> Using the APR connector requires native libraries.
>
> 1.) Where did you get the native libraries?  distro package or compile
> from source?
>
> 2.) What options were used to compile the libraries (i.e. if compiling
> from src, please list your "./configure ..." command).
>
> Dan
>
>
>

Re: SSL configuration on apache tomcat 6 - Oracle EL5

Posted by Daniel Mikusa <dm...@vmware.com>.
On Mon, 2011-12-05 at 13:20 -0800, Oladapo Moshood wrote:
> Dear all,
> 
> I have a very serious problem in making SSL work on apache tomcat 6 on my
> oracle EL5. I have been able to configure everything. If I access
> http://localhost:8443 it works but if I change the http to https, it
> doesn't work. I check my catalina.out log to see with and I saw:
> 
> 5-Dec-2011 18:05:55 org.apache.catalina.core.AprLifecycleListener
> lifecycleEvent
> INFO: Failed to initialize the SSLEngine.
> 
> I see no other error apart from this error. What can I do? I need to
> replicate this at a client site tomorrow - I have to make it work.
> 
> 
> I WILL REALLY APPRECIATE ANY ASSISTANCE.
> 
> Thank you

Using the APR connector requires native libraries.  

1.) Where did you get the native libraries?  distro package or compile
from source?

2.) What options were used to compile the libraries (i.e. if compiling
from src, please list your "./configure ..." command).

Dan