Load Balancing-wrong ELF class: ELFCLASS64
GlassFish 3.1.1
Apache Webserver 2.2.x
To configure the loadbalancing I followed the following link
http://docs.oracle.com/cd/E18930_01/html/821-2426/abdhg.html
However Although the linux machine I am using is 32bit version I am having the following error.
After google search, I have found many points referencing 64compile, but I have properly assigned the corrent flags and compiled it.
+[root@bin]# ./apachectl start+
httpd: Syntax error on line 419 of /usr/local/apacheHttpServer/conf/httpd.conf: Cannot load /usr/local/apacheHttpServer/modules/mod_loadbalancer.so into server: /usr/local/apacheHttpServer/modules/mod_loadbalancer.so: wrong ELF class: ELFCLASS64
+[[email protected]]# file /usr/bin/file+
+/usr/bin/file: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.18, stripped+
+[root@]# export+
declare -x AS_HOME="/usr/local/glassfish-3.1.1/glassfish"
declare -x CFLAGS="-m32"
Besides that do I need the enable mod_jk for loadbalancing for glassfish App Serv, where mod_jk enabling is not mentioned in the link given above.
Thanks in advance.
I have installed jk-connector module following the instruction in link http://tomcat.apache.org/connectors-doc/
In this link there is a src file should be complied pointing the <web_server>/bin/apxs, there will be created a mod_jk.so file which has to be reperenced in httpd.conf file web server before starting the web server.
If you do not want to spend installing and compling jk-connector module, you can download compiled version of jk-module: http://archive.apache.org/dist/tomcat/tomcat-connectors/jk/binaries/linux/jk-1.2.31/i386/
Thanks all for motivating me to find the real solution.
-Istanbul-
Similar Messages
-
Wrong ELF class: ELFCLASS64 when trying to start HTTP Server
Oracle11gR1 Database on OEL 5 64bit with Oracle10gR3 (10.1.3.3.0) Application Server
I have finished installing Oracle Application Server and in the end it fails to bring up HTTP Server. I checked the logs and saw the following:
/opt/app/oracle/product/11.1.0/http_1/ohs/bin/apachectl startssl: execing httpd
/opt/app/oracle/product/11.1.0/http_1/ohs/bin/httpd: error while loading shared libraries: libgdbm.so.2: wrong ELF class: ELFCLASS64
I am thinking that it could be a 32bit vs. 64bit libraries. I have tried to create some links but still no luck. Below are the current links that I have in the /usr/lib and /usr/lib64 directories.
1. /usr/lib
# ls -al libgdbm*
lrwxrwxrwx 1 root root 16 Sep 3 09:47 libgdbm.so.2 -> libgdbm.so.2.0.0
-rwxr-xr-x 1 root root 26792 Sep 3 09:41 libgdbm.so.2.0.0
2. /usr/lib64
# ls -al libgdbm*
lrwxrwxrwx 1 root root 16 Sep 3 10:17 libgdbm.so -> libgdbm.so.2.0.0
lrwxrwxrwx 1 root root 16 Jul 18 04:34 libgdbm.so.2 -> libgdbm.so.2.0.0
-rwxr-xr-x 1 root root 26792 Jun 5 2007 libgdbm.so.2.0.0
lrwxrwxrwx 1 root root 23 Sep 3 10:19 libgdbm.so.3 -> /usr/lib64/libgdbm.so.2
Thank you.My OEL 5 also had the gdbm package installed, but only the 64bit version.
I've installed the i386 version also and now it works.
To check to which dynamic libraries a binary will use you issue the command ldd <binary>
Then you could check to which he will be linked.
Be aware that library resolving could be influenced by environment variables which will sometime also be set(overwritten) by the calling script.
ldd /u01/app/oracle/product/admin/web10g/ohs/bin/httpd
linux-gate.so.1 => (0xffffe000)
libaprutil-0.so.0 => not found
libgdbm.so.2 => /usr/lib/libgdbm.so.2 (0xf7f04000)
libdb-3.3.so => /lib/libdb-3.3.so (0xf7e0d000)
libexpat.so.0 => /lib/libexpat.so.0 (0x00b64000)
libapr-0.so.0 => not found
libpthread.so.0 => /lib/libpthread.so.0 (0x00707000)
librt.so.1 => /lib/librt.so.1 (0x007ef000)
libm.so.6 => /lib/libm.so.6 (0x00726000)
libcrypt.so.1 => /lib/libcrypt.so.1 (0xf7dda000)
libnsl.so.1 => /lib/libnsl.so.1 (0xf7dc3000)
libdl.so.2 => /lib/libdl.so.2 (0x00720000)
libc.so.6 => /lib/libc.so.6 (0x005c1000)
/lib/ld-linux.so.2 (0x005a3000)
Two libraries still not found but they are resolved by a env. variable setting by opmn.
To get to your issue, check if the httpd is resolving to the correct ( the 32bit ) libraries.
Hope this helps. -
X86_64 smokin-guns - libXxf86dga.so.1: wrong ELF class: ELFCLASS64
Hi.
I have all of lib32 installed.
I can run most games, however I am trying to run smokin-guns via the phoronix-test-suite.
I get the following error :-
./smokinguns.x86: error while loading shared libraries: libXxf86dga.so.1: wrong ELF class: ELFCLASS64
I notice there is no libXxf86dga file in lib32
# sudo locate libXxf86dga.so
/usr/lib/libXxf86dga.so
/usr/lib/libXxf86dga.so.1
/usr/lib/libXxf86dga.so.1.0.0
Anyone know how to sort this ?
Last edited by yossarianuk (2009-02-27 20:00:52)It looks as if you'll need to create a lib32 package, or have someone do it for you. libxxf86dga also requires xf86dgaproto which doesn't have a lib32 counterpart in community.
-
Kmines: don't start | wrong ELF class: ELFCLASS64
i have installed kmines but when open i get:
kmines: error while loading shared libraries: libopenal.so.1: wrong ELF class: ELFCLASS64
$ ~ ls -l /usr/lib/libopenal*
-rwxr-xr-x 1 root root 356849 ago 6 19:18 /usr/lib/libopenal.so.1.14.0
lrwxrwxrwx 1 root root 14 ago 6 21:18 /usr/lib/libopenal.so.1 -> libopenal64.so
-rw-r--r-- 1 root root 395431 ago 6 19:18 /usr/lib/libopenal64.so
lrwxrwxrwx 1 root root 14 abr 1 2012 /usr/lib/libopenal.so -> libopenal.so.1
I have arch linux 32bits with kde...
Last edited by fpilee (2012-11-26 16:43:06)$ ~ ls -l /usr/lib/libopenal*
-rwxr-xr-x 1 root root 338188 abr 1 2012 /usr/lib/libopenal.so.1.14.0
lrwxrwxrwx 1 root root 14 nov 23 00:57 /usr/lib/libopenal.so.1 -> libopenal64.so
-rw-r--r-- 1 root root 395431 ago 6 19:18 /usr/lib/libopenal64.so
lrwxrwxrwx 1 root root 14 abr 1 2012 /usr/lib/libopenal.so -> libopenal.so.1
i will modify the soft links to follow your format.
is better replace libopenal64.so with Libopenal.so.1.14.0
#mv /usr/lib/libopenal.so.1 /usr/lib/libopenal.so.1.bak
#ln -s /usr/lib/libopenal.so.1.14.0 /usr/lib/libopenal.so.1
#ls -l /usr/lib/libopenal*
-rw-r--r-- 1 root root 395431 ago 6 19:18 /usr/lib/libopenal64.so
lrwxrwxrwx 1 root root 14 abr 1 2012 /usr/lib/libopenal.so -> libopenal.so.1
lrwxrwxrwx 1 root root 28 nov 23 21:49 /usr/lib/libopenal.so.1 -> /usr/lib/libopenal.so.1.14.0
-rwxr-xr-x 1 root root 338188 abr 1 2012 /usr/lib/libopenal.so.1.14.0
lrwxrwxrwx 1 root root 14 nov 23 00:57 /usr/lib/libopenal.so.1.bak -> libopenal64.so
Last edited by fpilee (2012-11-26 16:47:45) -
PLL/FMB compilation - wrong ELF class: ELFCLASS64 error
Hi,
i try to compile PLL/FMB sources in unix server, i am getting the below issue
Processing File {PLL_NAMES}.PLL\c
{ORACLE_APP_SERVER_HOME_PATH}/bin/frmcmp: error while loading shared libraries: libjvm.so: wrong ELF class: ELFCLASS64
-Failed
kindly help to resove this issue.
Thanks in advance.Please use forum {forum:id=82}
-
Libclntsh.so.10.1: wrong ELF class: ELFCLASS64
Hello experts.
I getting the follow error when I start the application Remedy
./arserverd: error while loading shared libraries: libclntsh.so.10.1: wrong ELF class: ELFCLASS64
I SO is linux x86-64
My client version is 11.2.0.3.0 for 64bits.
Can You help -me ?as my experience
it's the .o file and library file mismatch in ELF
use
file *.o to check those .o file is 32 bit or 64 bit
then use
gcc -m64 or
g++ -m64
to force conpile and link in 64 bit to comform with library -
Hi All,
we have OBIEE installed on RedHat Linux (64-bit) and getting bellow errore while trying to update row count from RPD.
we are using OCI to connect to oracle database(installed oracle 10g 10.2.0.1 64 bit) and our OBIEE is 32 bit. I have followed all the instructions from old posts like.
setting environmental variables in user.sh file but still its throwing error.
Environmental variables:
ORACLE_HOME=/Oracle/10.2.0.1/client
export ORACLE_HOME
TNS_ADMIN=$ORACLE_HOME/network/admin
export TNS_ADMIN
PATH=$ORACLE_HOME/bin:/opt/bin:$PATH
export PATH
LD_LIBRARY_PATH=$ORACLE_HOME/lib32:$ORACLE_HOME/lib:$LD_LIBRARY_PATH
and client is using ldap to resovle database connection.
ERROR:
State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. libclntsh.so.10.1: wrong ELF class: ELFCLASS64 [nQSError: 46029] Failed to load the DLL OBIEE_HOME/OracleBI/server/Bin/libnqsdbgatewayoci10g.so. Check if 'Oracle OCI 10G' database client is installed. (HY000
Thanks
VenkatVenkat,
I'm not sure if you are using OBIEE 11g or OBIEE 10g.
If you are using OBIEE 11g then your #1 problem is that you must install the 64-bit version of OBIEE 11g in on a 64bit OS for all to perform properly.
You must also make sure to conduct the Software Only installation.
Let me know if that is case that you are using oBIEE 11g or not?
Cheers,
Christian
http://www.artofbi.com -
Hello,
I'm installing Application Dependency and Performance (ADP, also call CAMM) in OEM 11g. The steps is as follows:
1) go to the directory ../oms11g/ocamm and extract ocamm.zip file
2) then go to the directory ../oms11g/ocamm/Disk1/InstData/Linux/VM
3) run ./install.bin to perform the installation
However, I got following error message immediately:
Preparing to install...
Extracting the JRE from the installer archive...
Unpacking the JRE...
Extracting the installation resources from the installer archive...
Configuring the installer for this system's environment...
awk: error while loading shared libraries: libdl.so.2: wrong ELF class: ELFCLASS32
dirname: error while loading shared libraries: libc.so.6: wrong ELF class: ELFCLASS32
/bin/ls: error while loading shared libraries: librt.so.1: wrong ELF class: ELFCLASS32
basename: error while loading shared libraries: libc.so.6: wrong ELF class: ELFCLASS32
dirname: error while loading shared libraries: libc.so.6: wrong ELF class: ELFCLASS32
basename: error while loading shared libraries: libc.so.6: wrong ELF class: ELFCLASS32
Launching installer...
grep: error while loading shared libraries: libc.so.6: wrong ELF class: ELFCLASS32
/tmp/install.dir.5356/Linux/resource/jre/bin/java: error while loading shared libraries: libpthread.so.0: cannot open shared object file: No such file or directory
Can anybody advise me how to resolve this issue? Also more info regarding our environment:
Product: Oracle Enterprise Manager Grid Control 11g
Operating System: Red Hat Enterprise Linux Server release 5.5 (Tikanga) 2.6.18 194.el5 (64-bit)
Hardware Platform: x86_64
Thanks,
Neddy
Edited by: user622199 on Mar 29, 2011 3:37 AMexecute below and check
cat install.bin |sed "s/export LD_ASSUME_KERNEL/#xport LD_ASSUME_KERNEL/" > install.fixed
chmod +x install.fixed
./install.fixed -
Cannot run loadjava on Solaris 10 64-bit server - wrong ELF class error
We are running into a problem when trying to run loadjava on a 10.2.0.3 database running on a Solaris 10 64-bit server.
loadjava -user xxxxx/xxxxx -verbose -resolve -force my.jar
creating : resource pea.properties
loading : resource pea.properties
ld.so.1: oracle: fatal: /var/db/10.2.0/lib32/libskgxp10.so: wrong ELF class: ELFCLASS32
The LD_LIBRARY_PATH does not have the lib32 directory on it, it has /var/db/10.2.0/lib instead.
Any idea on what to do?Hi,
Correct. The note specify general recommendations for setting the environment. The utility loadjava is not an exception.
Regards, -
Wrong ELF class error when trying to run the emulator
Hello, I've downloaded and installed both the JDK 6 Update 2 (Linux 64) and WTK 2.5.1 as described in the website and everything seems to be fine. However, whenever I try to run an examples, I get the following error:
java.lang.UnsatisfiedLinkError: /home/myuser/WTK2.5.1/bin/sublime.so: /home/myuser/WTK2.5.1/bin/sublime.so: wrong ELF class: ELFCLASS32 (Possible cause: architecture word width mismatch)
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1751)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1647)
at java.lang.Runtime.load0(Runtime.java:770)
at java.lang.System.load(System.java:1005)
at com.sun.kvem.Sublime.<init>(Unknown Source)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at java.lang.Class.newInstance0(Class.java:355)
at java.lang.Class.newInstance(Class.java:308)
at com.sun.kvem.Lime.createLime(Unknown Source)
at com.sun.kvem.KVMBridge.<init>(Unknown Source)
at com.sun.kvem.KVMBridge.getBridge(Unknown Source)
at com.sun.kvem.midp.MIDP.run(Unknown Source)
at com.sun.kvem.environment.EmulatorInvoker.runEmulatorImpl(Unknown Source)
at com.sun.kvem.environment.EmulatorInvoker.main(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.sun.kvem.environment.JVM.main(Unknown Source)
I'm running Fedora 7 x86_64
My Java environment is:
java version "1.6.0_02"
Java(TM) SE Runtime Environment (build 1.6.0_02-b05)
Java HotSpot(TM) 64-Bit Server VM (build 1.6.0_02-b05, mixed mode)
My jre is a 64-bit version but the ktoolbar seems to be compatible with 32-bit versions only. is there a way to fix this?
Any help is appreciated.Hi there,
I'm having the same problem when running the emulator. I've tried changing the emulator file as suggested but have had no luck! I'm using Ubuntu and the java version im using is
java version "1.6.0_03"
Java(TM) SE Runtime Environment (build 1.6.0_03-b05)
Java HotSpot(TM) 64-Bit Server VM (build 1.6.0_03-b05, mixed mode)
I have the latest version of the WTK also. The error message I get is
ava.lang.UnsatisfiedLinkError: /home/john/Progs/WTK2.5.2/bin/sublime.so: /home/john/Progs/WTK2.5.2/bin/sublime.so: wrong ELF class: ELFCLASS32 (Possible cause: architecture word width mismatch)
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1751)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1647)
at java.lang.Runtime.load0(Runtime.java:770)
at java.lang.System.load(System.java:1005)
at com.sun.kvem.Sublime.<init>(Unknown Source)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at java.lang.Class.newInstance0(Class.java:355)
at java.lang.Class.newInstance(Class.java:308)
at com.sun.kvem.Lime.createLime(Unknown Source)
at com.sun.kvem.KVMBridge.<init>(Unknown Source)
at com.sun.kvem.KVMBridge.getBridge(Unknown Source)
at com.sun.kvem.midp.MIDP.run(Unknown Source)
at com.sun.kvem.environment.EmulatorInvoker.runEmulatorImpl(Unknown Source)
at com.sun.kvem.environment.EmulatorInvoker.main(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.sun.kvem.environment.JVM.main(Unknown Source)
Any help with this would be much appreciated!
John -
Hi all,
While compiling in solaris 2.9 with Libraries from 2.6 I am getting this error .
ld: elf error: file /export/home/vkatakam/lib/tk2_sol.a: elf_begin: Format error: archive member truncated
ld: fatal: file /export/home/vkatakam/lib/libdbt0d_osi.so: Format error: shdr table truncated
ld: fatal: File processing errors. No output written to /export/home/vkatakam/Agt
I am using this compiler options like -xildoff -compat=4 -Dfiles -g -o and compiler version is :CC: Forte Developer 7 C++ 5.4
Regards,
VivekI am trying to install Time::HiRes 1.74 on the sun solaris sparc machine. This is prequiste to install swatch 3.1.1. But I am running make test, I am getting following error. Please help me out in resolving:
PERL_DL_NONLAZY=1 /export/home/local/bin/perl "-MExtUtils::Command::MM" "-e" "te
st_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/HiRes....Can't load '/export/home/nagios/Time-HiRes-1.74/blib/arch/auto/Time/H
iRes/HiRes.so' for module Time::HiRes: ld.so.1: /export/home/local/bin/perl: fat
al: /export/home/nagios/Time-HiRes-1.74/blib/arch/auto/Time/HiRes/HiRes.so: wron
g ELF class: ELFCLASS64 at /usr/local/lib/perl5/5.8.5/sun4-solaris/DynaLoader.pm
line 230.
at t/HiRes.t line 19
Compilation failed in require at t/HiRes.t line 19.
BEGIN failed--compilation aborted at t/HiRes.t line 19.
t/HiRes....dubious
Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 1-28
Failed 28/28 tests, 0.00% okay
Failed Test Stat Wstat Total Fail Failed List of Failed
t/HiRes.t 255 65280 28 55 196.43% 1-28
Failed 1/1 test scripts, 0.00% okay. 28/28 subtests failed, 0.00% okay.
*** Error code 2
make: Fatal error: Command failed for target `test_dynamic'
bash-2.05# /usr/ccs/bin/make install
Installing /usr/local/lib/perl5/5.8.5/sun4-solaris/auto/Time/HiRes/HiRes.so
Files found in blib/arch: installing files in blib/lib into architecture depende
nt library tree
Writing /usr/local/lib/perl5/5.8.5/sun4-solaris/auto/Time/HiRes/.packlist
Appending installation info to /usr/local/lib/perl5/5.8.5/sun4-solaris/perllocal
.pod
I am not using the perl 5.6.1 comes along with 2.9 version, instead I am using perl 5.8.5 precompiled version with gcc available in the sunfreeware.com. I am not using perl 5.6.1 because of 5.6.1 is precompiled with cc which is missing with some of the functions. -
I installed Oracle 9011 EE on Solaris 8, using silent repsonseFile mode.
The log showed problems in all link targets and trying to relink all
I got:
"ld: fatal: dlopen() of support library (libmakestate.so.1) failed with error: ld.so.1: /usr/ccs/bin/sparcv9/ld: fatal: /lib/libmakestate.so.1: wrong ELF class: ELFCLASS32"
It seems a target is 64 bit but the linker finds only the 32 bit library.
Anyone with similar problem or solution?
How can I get a 64 bit version of the lib?
Or should I dig into the makefiles?On my system it says:
ld: fatal: dlopen() of support library (libmakestate.so.1) failed with error: ld.so.1: /usr/ccs/bin/sparcv9/ld: fatal: libmakestate.so.1: open failed: No such file or directory
You had the same problem befor ?
frank -
...wrong ELF class: ELFCLASS32
Does anyone knows what does that means? I�ve installed the J2RE 1.4 and i began to happen when I compile and try to run
Exception in thread "main" java.lang.UnsatisfiedLinkError: /usr/lib/libTesteParse.so: ld.so.1: java: fatal: /usr/lib/libTesteParse.so: wrong ELF class: ELFCLASS32What do you mean? I'm using Solaris and i've installed the 32 bits version and than upgraded to 64.. is that?
-
Error building project using kXML2 - "Class loading error: Wrong name"
Hi,
I'm testing the XML-Parser KXML2 and downloaded the latest package, but the minimal version (kxml2-min.zip). I put this file into the directory "%j2mewtk%\apps\KxmlTest\lib" and wrote the lines
import org.kxml2.io.*;
import org.xmlpull.v1.*;
When I try to build the project with the Wireless Toolkit (v1.04) it spits out the following error:
Error preverifying class kxml2.io.KXmlParser
Class loading error: Wrong name
com.sun.kvem.ktools.ExecutionException: Preverifier returned 1
Build failed
I also tried the full package "kxml2.zip" but the same error occurs.
How can I get rid of this? Thanks in advance!Okay, finally worked it out (hopefully). I unpacked the archive to a directory (say "%J2MEWTK%\apps\KxmlTest\tmpclasses") and then preverified them "manually":
%J2SDK%\bin\preverify.exe -classpath "%J2MEWTK%\apps\KxmlTest\tmpclasses";"%J2MEWTK%\lib\midpapi.zip" org.kxml2.io.KXmlParser
%J2SDK%\bin\preverify.exe -classpath "%J2MEWTK%\apps\KxmlTest\tmpclasses";"%J2MEWTK%\lib\midpapi.zip" org.xmlpull.v1.XmlPullParser
%J2SDK%\bin\preverify.exe -classpath "%J2MEWTK%\apps\KxmlTest\tmpclasses";"%J2MEWTK%\lib\midpapi.zip" org.xmlpull.v1.XmlPullParserException
Then I packed them again to a jar-file:
%J2SDK%\bin\jar.exe -cvf kxml2-min.jar %J2MEWTK%\apps\KxmlTest\tmpclasses\output\.
That was all! -
How to make IIS plug-in do STICKY load balancing
There are two classes of scalable services: pure and sticky. A pure service
is one where any instance of the application can respond to client requests.
A sticky service is one where a client sends its requests to the same
instance; those requests are not redirected to other instances.
It seems to me that weblogic IIS proxy plug-in does not support the sticky
load balancing.
Could someone give me some information on how to make the proxy sticky?
Is there configuration parameters for this?
Thanks,
-LeiI set the cluster.
It seems to me that there is some problem with the Set-Cookie mechanism of
the plug-in.
Sometime it set the cookie in my browser, sometime it is not.
Even from the wlproxy.log, I could set something like
Fri Aug 03 17:56:12 2001 Hdrs to
client:[Set-Cookie]=[AribaNode=O2tII92qHlP2tpZjUV0m5ued1s6X028cUPu24QcGj1Q25
AE5VXOd!1782877802312707887!ltang.ariba.com!8001!7002; domain=ariba.com;
path=/]
But the cookie is not set in my browser, what might be wrong here?
Thanks,
-Lei
"Eric Gross" <[email protected]> wrote in message
news:[email protected]...
I do believe that this will not work since if clustering is not enabled, a
cookie will not be set on the browser that contains the primary and
secondary server.
You are specifying two different ports in your servers. You need to use
clustering in order to get this functionality with the plugin.Furthermore,
you will achieve fail-over.
Regards,
Eric
"Lei Tang" <[email protected]> wrote in message
news:[email protected]...
Here is what I did for the examples under the bea sample directory.
I put the following in test1/WEB-INF/weblogic.xml
<session-descriptor>
<session-param>
<param-name> CookieDomain </param-name>
<param-value> *.ariba.com </param-value>
</session-param>
<session-param>
<param-name> CookieName </param-name>
<param-value> AribaNode </param-value>
</session-param>
<session-param>
<param-name> CookiePath </param-name>
<param-value> /test1 </param-value>
</session-param>
</session-descriptor>
</weblogic-web-app>
I add the following in iisproxy.ini
# This file contains initialization name/value pairs
# for the IIS/WebLogic plug-in.
WebLogicCluster=ltang.ariba.com:8001,achu.ariba.com:7001
ConnectTimeoutSecs=20
ConnectRetrySecs=2
Debug=ALL
WLLogFile=c:\tmp\wlproxy.log
WlForwardPath=/test1
DynamicServerList=OFF
CookieName=AribaNode
I use SesssionServlet.java as an example
When I involk http://proxy/test1/SessionServlet, I always get 1
if I use
http://proxy/test1/SessionServlet:AribaNode=................................
I could see the session becomes sticky.
If I do not want to use URL rewriting, what should I do in order to makethe
session STICKY
for this example.
Thanks,
-Lei
"Eric Gross" <[email protected]> wrote in message
news:[email protected]...
If you leave the CookieName untouched on the WebLogic side, then there
should be no reason to make the change in the plug-in.
But yes, you need to make sure the cookie names are the same.
Regards,
Eric
"Mark Vaughn" <[email protected]> wrote in message
news:[email protected]...
Actually, you also need to make sure you set the "CookieName" in theplugin.
That let's the plugin read the cookie set by WebLogic to determine
who
the
primary and secondary servers are for that session. Otherwise, theplugin
has no
way of knowing if you are establishing a new session or returning to
an
existing
one. The cookie will tell it if you have a current session and who
it
should
send you to for continuing that session, or failing that session
over.
>>>>
Eric Gross wrote:
Without having clustering enabled, you will not get Sticky load
balancing.
You need to have clustering so that a cookie is sent back to the
client
that
contains information about where it's session is located.
Otherwise,
you
are just going to get round-robin each time.
You can refer to the following page for more information:
http://e-docs.beasys.com/wls/docs61/cluster/servlet.html
Regards,
Eric
"Lei Tang" <[email protected]> wrote in message
news:[email protected]...
WebLogicCluster=machine1:7001,machine2:7001
ConnectTimeoutSecs=20
ConnectRetrySecs=2
Debug=ALL
WLLogFile=c:\tmp\wlproxy.log
WlForwardPath=/test,/test1
DynamicServerList=OFF
I run two standone (Admin server) weblogic servers on machine1
machine2.
Then I deploy application test.war on machine1 first, then onmachine2.
Should I make machine2 as a managed server and machine1 as an
admi
n
server?
Will this make the session sticky?
Thanks,
-Lei
"Eric Gross" <[email protected]> wrote in message
news:[email protected]...
It would help us to know how you have iisproxy.ini configured.
Sticky
load
balancing should work fine if you have the plug-in and
WebLogic
Server
setup
correctly.
How have you setup the plug-in?
Thanks,
Eric
"Lei Tang" <[email protected]> wrote in message
news:[email protected]...
There are two classes of scalable services: pure and sticky.
A
pure
service
is one where any instance of the application can respond to
client
requests.
A sticky service is one where a client sends its requests to
the
same
instance; those requests are not redirected to other
instances.
It seems to me that weblogic IIS proxy plug-in does notsupport
the
sticky
load balancing.
Could someone give me some information on how to make the
proxy
sticky?
Is there configuration parameters for this?
Thanks,
-Lei
.-. Mark Vaughn
/V\ 7024 Corona Dr.
// \\ North Richland Hills, TX 76180
/( )\ [email protected]
^^-^^
"Give a man a fish and you feed him for a day;
teach him to use the Net and he won't bother you for weeks."
Ben Woodbridge
Maybe you are looking for
-
How to create one master table and two detail for it
I have one table , imagine it like mastertable( empid,deptid ); and two different tables like employeetable(empid ) , departmenttable ( deptid ).... I dont have any relation on database side. I need to create view link and ı need to use only one mast
-
Flash vs. Fireworks for Animation Map
Quick "flash" question. I need to supply a flash animation map of the US, where the user clicks on individual states... afterwhich the state color changes to a 2nd color and the data is ported to a website/dbase. Based on that info, can this be done
-
QM Inspection Type for SD Delivery in Returned Goods
hi experts, Any ideas on how to do stock postings in Iinspection Lots that are automatically created upon return delivery I want to post to inspection stock once the Delivery has been completed. The standard SAP automatic Inspection Lot that is creat
-
Desktop.browse() won't show URI fragments on Windows
Hi. I'd like to use the Desktop API in my application when the user clicks on various 'help' buttons. My reference manual for the application is one large HTML file, and so if the user clicks on a 'help' button when he's in the 'configuration' menu,
-
I am considering using adobe Lightroom to organize and manage about 15,000 photos in a way that all of my employees can access, search, and easily attach photos to e-mails and use in other projects. Is it possible to network Lightroom in such a way