EditHttpConf error during WebGate 11g Installation on IBM AIX

On WebGate 11g Installation (WebGate is Policy Enforcement Point installed with Web Server), as per Oracle documentation you must set LD_LIBRARAY_PATH to OHS ORACLE_HOME/lib and run EditHttpConf as shown below

export LD_LIBRARY_PATH=$MW_HOME/Oracle_WT1/lib

cd $WG_HOME/webgate/ohs/tools/setup/InstallTools
./EditHttpConf -w /oracle/Oracle_WT1/instances/instance1/config/OHS/ohs1

On IBM AIX , EditHttpConf throws error like

____
exec(): 0509-036 Cannot load program ./EditHttpConf because of the following errors:
0509-150   Dependent module libclntsh.so could not be loaded.
0509-022 Cannot load module libclntsh.so.
0509-026 System error: A file or directory in the path name does not exist.
____

set LIBPATH and NOT LD_LIBRARY_PATH

i.e.

export LIBPATH=$MW_HOME/Oracle_WT1/lib

Where $MW_HOME/Oracle_WT1 is directory in which Oracle HTTP Server is installed.

About the Author Atul Kumar

Oracle ACE, Author, Speaker and Founder of K21 Technologies & K21 Academy : Specialising in Design, Implement, and Trainings.

follow me on:

Leave a Comment:

8 comments
Kiran Pokuri says December 11, 2012

Hi Atul,

I am getting similar kind of error in Linux environment while configuring OHS webgate 11g . Error as below.

“./EditHttpConf: error while loading shared libraries: libclntsh.so.11.1: wrong ELF class: ELFCLASS64”

I set the environmental variable as “LD_LIBRARY_PATH”. But no luck
Could you please help me on this issue…

FYI, my OS is linux redhat 5 64-bit. I have DB also in same server.

Thanks
Kiran Pokuri

Reply
    Atul Kumar says December 11, 2012

    @Kiran Pokuri,
    What version of WebGate you are using ? use 64 bit version.

    What is LD_LIBRARY_PATH set to ?

    Reply
Kiran Pokuri says December 11, 2012

Atul,

Thanks for response..

I set the Environmental Variable as
export LD_LIBRARY_PATH=/home/oracle/Oracle/Middleware/Oracle_WT1/lib

Webate version is 11.1.2.0.0 Generic one.

Thanks
Kiran Pokuri

Reply
    Atul Kumar says December 11, 2012

    @ Kiran,
    EditHttpConf simply includes webgate.conf in httpd.conf so you can do same manually.

    include “/u02/oracle/mw/fmw_ohs/ohs/instances/instance1/config/OHS/ohs1/webgate.conf”

    Replace location as per your webgate.conf location

    Reply
Shekhar says December 20, 2012

I got this working using below methods Key is setting LD_LIBRARY_PATH and ORACLE_HOME to webgate home.

export LD_LIBRARY_PATH=/u00/ora/wt/lib
export ORACLE_HOME=/u00/ora/OAMWebgate –Webgate Home

/u00/ora/OAMWebgate/webgate/ohs/tools/setup/InstallTools/EditHttpConf -w /u00/ora/instance/config/OHS/ohs1 -oh /u00/ora/OAMWebgate -o webgate.conf

Reply
sravan says June 15, 2014

i dont see webgate.conf is created under webserver instance got same error Wrong ELF CLASS

Reply
sravan says June 17, 2014

Above is working fine after installing webgate version of 11.1.1.7 and deployed on OHS instance its working successfully. I think webgtae 11GR2 has some bug to deploy on OHS instance.

Reply
joe says October 17, 2014

I’ve installed webgate but when I start OHS with webgate the OHS bounces. Any ideas on why it bounced? The logs dont show anything meaningfull

Reply
Add Your Reply

Not found