用tux10的示例程序客户端,连接远程tux10的服务端,无法连接?
服务器(centos5.2 tuxedo10)tuxconfig:
DOMAINID simpapp
MASTER simple
MAXACCESSERS 50
MAXSERVERS 20
MAXSERVICES 20
MODEL SHM
LDBAL N
*MACHINES
tux1 LMID=simple
APPDIR="/home/oracle/simpapp"
TUXCONFIG="/home/oracle/simpapp/tuxconfig"
TUXDIR="/home/oracle/tux10"
MAXWSCLIENTS=5
#Example:
#beatux LMID=simple
*GROUPS
GROUP1
LMID=simple GRPNO=1 OPENINFO=NONE
*SERVERS
DEFAULT:
CLOPT="-A"
simpserv SRVGRP=GROUP1 SRVID=1
WSL SRVGRP=GROUP1 SRVID=20
CLOPT="-A -- -n //192.168.0.66:3200 -m 2 -M 5 -x 10 -p 4500 -P 5000"
.....
....
服务器启动:
$ tmboot -y
Booting all admin and server processes in /home/oracle/simpapp/tuxconfig
INFO: BEA Tuxedo, Version 10.0, 32-bit, Patch Level 005
INFO: Serial #: 454493271161-2664984303294, Expiration NONE, Maxusers 1000000
INFO: Licensed to: Customer
Booting admin processes ...
exec BBL -A :
process id=2673 ... Started.
Booting server processes ...
exec simpserv -A :
process id=2675 ... Started.
exec WSL -A -- -n //192.168.0.66:3200 -m 2 -M 5 -x 10 -p 4500 -P 5000 :
process id=2676 ... Started.
3 processes started.
客户端 tux.env:
TUXDIR=/home/bea/tux10/tux; export TUXDIR
JAVA_HOME=$TUXDIR/jre; export JAVA_HOME
JVMLIBS=$JAVA_HOME/lib/i386/serverJAVA_HOME/jre/bin
PATH=$TUXDIR/binJAVA_HOME/binPATH; export PATH
COBCPY=TUXDIR/cobinclude; export COBCPY
COBOPT="-C ANS85 -C ALIGN=8 -C NOIBMCOMP -C TRUNC=ANSI -C OSEXT=cbl"; export COBOPT
SHLIB_PATH=$TUXDIR/libJVMLIBSSHLIB_PATH; export SHLIB_PATH
LIBPATH=$TUXDIR/libJVMLIBSLIBPATH; export LIBPATH
LD_LIBRARY_PATH=$TUXDIR/libJVMLIBSLD_LIBRARY_PATH; export LD_LIBRARY_PATH
WEBJAVADIR=$TUXDIR/udataobj/webgui/java; export WEBJAVADIR
LANG=C; export LANG
WSNADDR=//192.168.0.66:3200;export WSNADDR
ping 服务器:
$ ping 192.168.0.66
PING 192.168.0.66 (192.168.0.66) 56(84) bytes of data.
64 bytes from 192.168.0.66: icmp_seq=0 ttl=64 time=0.253 ms
64 bytes from 192.168.0.66: icmp_seq=1 ttl=64 time=0.320 ms
64 bytes from 192.168.0.66: icmp_seq=2 ttl=64 time=1.45 ms
--- 192.168.0.66 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2002ms
rtt min/avg/max/mdev = 0.253/0.676/1.457/0.553 ms, pipe 2
一切正常(客户端和服务端程序编译也没有问题) ,但执行客户端程序时无法连接服务:
$ ./client hello
Tpinit failed
客户端日志:
185653.oracle11g!?proc.3657.3086976704.0: 11-10-2009: Tuxedo Version 10.0, 32-bit
185653.oracle11g!?proc.3657.3086976704.0: LIBWSC_CAT:1055: ERROR: Unable to establish WSL connection
185653.oracle11g!?proc.3657.3086976704.0: LIBWSC_CAT:1027: ERROR: Unable to connect to WSH
185653.oracle11g!?proc.3657.3086976704.0: LIBWSC_CAT:1020: ERROR: Unable to obtain authentication level
不知道什么地方不对,请多指教!
问题原因和解决方法:
是防火墙的问题(我在安装系统时已经关闭了防火墙,唉!大意了),关闭以后就可以了
--友情转载