load balancer

is it ok to use apache2 which is included in solaris 10 package for sun java system application server enterprise edition 8.1 2005q1 load balancer plug in? or do i need to download a new apache source?
[208 byte] By [mnio] at [2007-11-26 7:06:22]
# 1
pls help to have an answer to this question. i've already tried doing it several times but i'm messing up the application server.
mnio at 2007-7-6 15:53:23 > top of Java-index,Application & Integration Servers,Application Servers...
# 2
I will try this and let you know.Thanks for your patience.varun.
VarunRupela at 2007-7-6 15:53:24 > top of Java-index,Application & Integration Servers,Application Servers...
# 3
thanks for the reply, i'll be waiting
mnio at 2007-7-6 15:53:24 > top of Java-index,Application & Integration Servers,Application Servers...
# 4

i've tried using httpd 2.0.58 (source) in load balancer. the installation were fine, when i start apache it start's smoothly but when i try accessing the page i got an internal error page, when i look at apache's error log it show's the following:

[Thu May 11 09:03:33 2006] [alert] --Name Trans

[Thu May 11 09:03:33 2006] [alert] apache process id = 799 ; URI = /

[Thu May 11 09:03:33 2006] [alert] Within apachelbplugin_name_trans()

[Thu May 11 09:03:33 2006] [alert] LB Configuration XML file absent or not readable

[Thu May 11 09:03:33 2006] [alert] --Name Trans

[Thu May 11 09:03:33 2006] [alert] apache process id = 802 ; URI = /favicon.ico

[Thu May 11 09:03:33 2006] [alert] Within apachelbplugin_name_trans()

[Thu May 11 09:03:33 2006] [alert] LB Configuration XML file absent or not readable

[Thu May 11 09:03:34 2006] [alert] --Name Trans

[Thu May 11 09:03:34 2006] [alert] apache process id = 801 ; URI = /

[Thu May 11 09:03:34 2006] [alert] Within apachelbplugin_name_trans()

[Thu May 11 09:03:34 2006] [alert] LB Configuration XML file absent or not readable

[Thu May 11 09:03:34 2006] [alert] --Name Trans

[Thu May 11 09:03:34 2006] [alert] apache process id = 803 ; URI = /favicon.ico

[Thu May 11 09:03:34 2006] [alert] Within apachelbplugin_name_trans()

[Thu May 11 09:03:34 2006] [alert] LB Configuration XML file absent or not readable

[Thu May 11 09:03:36 2006] [alert] --Name Trans

[Thu May 11 09:03:36 2006] [alert] apache process id = 800 ; URI = /

[Thu May 11 09:03:36 2006] [alert] Within apachelbplugin_name_trans()

[Thu May 11 09:03:36 2006] [alert] LB Configuration XML file absent or not readable

[Thu May 11 09:03:36 2006] [alert] --Name Trans

[Thu May 11 09:03:36 2006] [alert] apache process id = 799 ; URI = /favicon.ico

[Thu May 11 09:03:36 2006] [alert] Within apachelbplugin_name_trans()

[Thu May 11 09:03:36 2006] [alert] LB Configuration XML file absent or not readable

i've put the load balancer at /usr/local/apache2/conf/loadbalancer.xml

i changed the file file permission 644 to 777 but still i've got the same error.

mnio at 2007-7-6 15:53:24 > top of Java-index,Application & Integration Servers,Application Servers...
# 5

We got it working with the apache2 that comes along with the Solaris 10 installation - version 2.0.52

- Did you try the appserver installer to install lb plugin? Did it work for you?

Please ensure that the following changes have been made (if not already done manually or by the installer):

(Replace <appserver_install> appropriately)

1. cp <appserver_install>/lib/webserver-plugin/solaris/apache2/mod_loadbalancer .so /usr/apache2/libexec/

2. mkdir /usr/apache2/modules; mkdir /usr/apache2/modules/errorpages; mkdir /usr/apache2/modules/resource.

3. cp <appserver_install>/lib/webserver-plugin/solaris/apache2/LBPlugin* /usr/apache2/modules/resource.

4. cp lib/webserver-plugin/solaris/iws/errorpages/* /usr/apache2/modules/errorpages.

5. export LD_LIBRARY_PATH=/usr/lib/mps:<appserver_install>/lib/libxerces-c.so:$LD_L IBRARY_PATH

6. Ensure that following changes have been made to the httpd-std.conf file:

- Change line "PidFile /var/run/apache2/httpd.pid" to "PidFile /var/apache2/httpd.pid"

- Uncomment line "#LockFile /var/apache2/logs/accept.lock"

- Change line "Group #-1" to "Group nogroup"

- Add following lines to the end of the file (replacing MACHINE_IP and MACHINE_NAME appropriately):

##Addition for EE lb-plugin

LoadFile /usr/lib/libCstd.so.1

LoadModule apachelbplugin_module libexec/mod_loadbalancer.so

#AddModule mod_apachelbplugin.cpp

<IfModule mod_apache2lbplugin.cpp>

config-file "/var/apache2/loadbalancer.xml"

locale en

</IfModule>

<VirtualHost MACHINE_IP>

DocumentRoot /var/apache2/htdocs

ServerName MACHINE_NAME

</VirtualHost>

##END EE LB Plugin ParametersVersion 7

7. mkdir /usr/apache2/sec_db_files; cp <appserver_install>/domains/<some_domain>/config/*.db /usr/apache2/sec_db_files;

8. Copy sun_loadbalancer_1_1.dtd to the "config-file" location mentioned in step 6. Copy it from <appserver_install>/lib/dtds/sun-loadbalancer_1_1.dtd

9. Create loadbalancer.xml at the "config-file" location mentioned in step 6.

10. Ensure that read permissions exist for loadbalancer.xml and sun_loadbalancer_1_1.dtd

Please let us know if this worked for you.

Varun.

VarunRupela at 2007-7-6 15:53:24 > top of Java-index,Application & Integration Servers,Application Servers...
# 6
yup i tried appserver installer to install lb plugin but it failed. i follow your insruction and it works but when it comes to step 5 i use envvars at /usr/apache2/bin/envvars and place there the library path needed. Varun thanks for your help! i really appreciate it.
mnio at 2007-7-6 15:53:24 > top of Java-index,Application & Integration Servers,Application Servers...
# 7
If you were trying to install only the LB plugin (and no other components selected) using the Appserver installer, then there is a bug associated with that: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6293344
VarunRupela at 2007-7-6 15:53:24 > top of Java-index,Application & Integration Servers,Application Servers...