eclipse-ee4j / glassfish

Eclipse GlassFish
https://eclipse-ee4j.github.io/glassfish/
385 stars 143 forks source link

[UB]Need update Documentaion for helping using to build and configure Apache with openssl for GlassFish 3.1 HA scenario #15602

Closed glassfishrobot closed 13 years ago

glassfishrobot commented 13 years ago

Need to provide update documentation information for user to build and configure Apache with Openssl for GlassFish 3.1 HA scenario.

Currently, I have tested with SuSE and it seems to be working. However, when try to build on Solaris Sparc and Solaris x86 using Apache http2.2.17 and openssl-1.0.0a and it failed during "make".

We need update documentation to help user to build apache with ssl support for lbconfigurator to install LBplugin for GlassFish 3.1 to have HA scenario.

Here is the error after ./configure and ./make.

bash-3.00# ./configure --with-ssl=/usr/local/openssl --prefix=/export/ha/apache2.2 --enable-ssl --enable-so --with-included-apr ......

bash-3.00# make Making all in srclib Making all in apr Making all in apr-util Making all in pcre Making all in os Making all in unix Making all in server Making all in mpm Making all in prefork Making all in modules Making all in aaa Making all in filters Making all in loggers Making all in metadata Making all in ssl Making all in http Making all in generators Making all in mappers Making all in support /export/ha/downloads/APACHE_STUFF/httpd-2.2.17/srclib/apr/libtool --silent --mode=link gcc -m32 -L/usr/local/openssl/lib -R/usr/local/openssl/lib -L/usr/sfw/lib -L/usr/lib -o ab ab.lo -lm /export/ha/downloads/APACHE_STUFF/httpd-2.2.17/srclib/pcre/libpcre.la /export/ha/downloads/APACHE_STUFF/httpd-2.2.17/srclib/apr-util/libaprutil-1.la -lexpat /export/ha/downloads/APACHE_STUFF/httpd-2.2.17/srclib/apr/libapr-1.la -luuid -lsendfile -lrt -lsocket -lnsl -lpthread -lssl -lcrypto -lsocket -lnsl -ldl Undefined first referenced symbol in file BIO_set_callback .libs/ab.o BIO_set_callback_arg .libs/ab.o BIO_get_callback_arg .libs/ab.o SSL_CTX_set_info_callback .libs/ab.o ld: fatal: Symbol referencing errors. No output written to .libs/ab collect2: ld returned 1 exit status

glassfishrobot commented 6 years ago
glassfishrobot commented 13 years ago

@glassfishrobot Commented hyau said: For compile openssl-1.0.0a or openssl-1.0.0c

For Solaris Sparc build:

[1] solaris-sparcv9-gcc

Use the above option when compiling openssl on sparc

You need run for openssl - ./Configure [--prefix=DIR] [--openssldir=OPENSSLDIR] -m32 [1] make make install

Here are my steps for Linux distribution:

Build Apache and OpenSSL

rm -rf openssl-1.0.0c httpd-2.2.17 gzip -dc openssl-1.0.0c.tar.gz | tar -xvof - gzip -dc httpd-2.2.17.tar.gz | tar -xvof -

I am taking default location to build both Apache and OpenSSL.

1) Build OpenSSL cd openssl-1.0.0c ./Configure linux-generic32 -m32 make make install

2) Build Apache export CFLAGS="-m32" ./configure --prefix=/export/ha/apache2.2 --enable-ssl --with-ssl=/usr/local/ssl --enable-so --with-included-apr make make install

Create SelfSign Certificate ( only for testing or internal use)

openssl genrsa -des3 -out server.key 1024 openssl req -new -key server.key -out server.csr cp server.key server.key.org openssl rsa -in server.key.org -out server.key openssl x509 -req -days 3650 -in server.csr -signkey server.key -out server.crt

cp server.crt /export/ha/apache2.2/conf/. cp server.key /export/ha/apache2.2/conf/.

Edit /conf/httpd.conf (if require for the ServerName) Edit /conf/extra/httpd-ssl.conf (if require for the ServerName)

Check the information in /conf/extra/httpd-vhosts.conf (if require)

Export DAS certificate

Prepare for LBPlugin installation use. keytool -export -rfc -alias s1as -keystore keystore.jks -file s1as.rfc

Load Balancer Configurator installation

java -jar glassfish-lbconfigurator-3_1-b05.jar

Both openssl and httpd are "ELF 32-bit LSB executable".

[root@dragonfish downloads]# file /usr/local/ssl/bin/openssl /usr/local/ssl/bin/openssl: ELF 32-bit LSB executable, Intel 80386, version 1 (S YSV), for GNU/Linux 2.6.9, dynamically linked (uses shared libs), for GNU/Linux 2.6.9, not stripped

[root@dragonfish downloads]# file /export/ha/apache2.2/bin/httpd /export/ha/apache2.2/bin/httpd: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.6.9, dynamically linked (uses shared libs), for GNU/Linux 2.6.9, not stripped

glassfishrobot commented 13 years ago

@glassfishrobot Commented sfordin said: Instructions added to 3.1 HA Admin Guide.

glassfishrobot commented 13 years ago

@glassfishrobot Commented sfordin said: Topic was added to HA Admin Guide, so I've removed the release notes tag.

glassfishrobot commented 13 years ago

@glassfishrobot Commented Was assigned to sfordin

glassfishrobot commented 7 years ago

@glassfishrobot Commented This issue was imported from java.net JIRA GLASSFISH-15602

glassfishrobot commented 13 years ago

@glassfishrobot Commented Reported by hyau

glassfishrobot commented 13 years ago

@glassfishrobot Commented Marked as fixed on Thursday, March 3rd 2011, 3:32:03 am