Skip to main content

How do I install the Glassfish plugin in Apache on RHEL ?

Please note these java.net forums are being decommissioned and use the new and improved forums at https://community.oracle.com/community/java.
1 reply [Last post]
DaveFTech
Offline
Joined: 2013-03-20

I have downloaded the latest version of the Load Balancer plugin, but I am unable to install it.

When I step through the wizard, I select the webserver install dir as /usr/sbin (the location where apachectl and httpd are installed) and continue. When I do so, I get the following message:

INFO: Started installation of Glassfish Load Balancer Plugin
WARNING: Command /usr/sbin/bin/apachectl execution failed.  Please refer to logs for more details.
SEVERE: glassfish load-balancer plugin installation failed. : Unable to get web server version.  The supported version is Apache HTTP server 2.2.x.

The install.log file reads as follows:

Apr 12, 2013 1:31:28 PM LBConfigurator
INFO: Started installation of GlassFish Load Balancer Plugin
Apr 12, 2013 1:31:28 PM LBConfigurator
FINE: DUMPSTACK : null
Apr 12, 2013 1:31:28 PM LBConfigurator
FINE: Exception :
java.lang.Exception
at lb.ApacheConfigurator.install(ApacheConfigurator.java)
at lb.Installer.install(Installer.java)
at lb.Installer.runInstaller(Installer.java)
at lb.Installer.main(Installer.java)
Apr 12, 2013 1:31:28 PM LBConfigurator
WARNING: Command /usr/sbin/bin/apachectl execution failed. Please refer to logs for more details.
Apr 12, 2013 1:31:28 PM LBConfigurator
FINE: Command executed : /usr/sbin/bin/apachectl -v
Apr 12, 2013 1:31:28 PM LBConfigurator
FINE: Command exit code : -1
Apr 12, 2013 1:31:28 PM LBConfigurator
FINE: Command output :
Apr 12, 2013 1:31:28 PM LBConfigurator
FINE: Command error output :
Apr 12, 2013 1:31:28 PM LBConfigurator
FINE: Command exception trace :  : Cannot run program "/usr/sbin/bin/apachectl": java.io.IOException: error=2, No such file or directory
Apr 12, 2013 1:31:28 PM LBConfigurator
FINE: Exception :
lb.ExecException: Cannot run program "/usr/sbin/bin/apachectl": java.io.IOException: error=2, No such file or directory
at lb.ProcessExecutor.execute(ProcessExecutor.java)
at lb.ProcessExecutor.execute(ProcessExecutor.java)
at lb.ProcessExecutor.execute(ProcessExecutor.java)
at lb.Configurator.executeCmdAndReturnOutput(Configurator.java)
at lb.ApacheConfigurator.getApacheVersion(ApacheConfigurator.java)
at lb.ApacheConfigurator.install(ApacheConfigurator.java)
at lb.Installer.install(Installer.java)
at lb.Installer.runInstaller(Installer.java)
at lb.Installer.main(Installer.java)
Apr 12, 2013 1:31:28 PM LBConfigurator
SEVERE: GlassFish load-balancer plugin installation failed. : Unable to get web server version. The supported version is Apache HTTP Server 2.2.x.
Apr 12, 2013 1:31:28 PM LBConfigurator
FINE: Exception :
java.lang.Exception: Unable to get web server version. The supported version is Apache HTTP Server 2.2.x.
at lb.ApacheConfigurator.getApacheVersion(ApacheConfigurator.java)
at lb.ApacheConfigurator.install(ApacheConfigurator.java)
at lb.Installer.install(Installer.java)
at lb.Installer.runInstaller(Installer.java)
at lb.Installer.main(Installer.java)
Caused by: java.lang.Exception: This version of web server is not supported. The installation will not continue. The supported version is Apache HTTP Server 2.2.x.
... 5 more

I would appreciate any advice or suggestions. Thanks

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
DaveFTech
Offline
Joined: 2013-03-20

Just for some additional information, Apache has been installed on Cent)S 6 via the yum repositories. The currently installed version of Apache is 2.2.15

It looks to me that the Load Balancer plugin is looking for a very specific folder structure. Even if I get pass the current error (say by creating a simlink to apachectl in it's actual location) I get errors modifying a series of httpd-*.conf files that don't exist in my installation.