主节点:text2
副节点:hpvm4
通过在hpvm4上调用主节点程序,力求返回正确的字符串,结果失败:
$ simpcl abc
Tpinit failed
到服务器端查看日志文件:
$ cat ULOG.*
162028.text2!tlisten.20815.1.-2: 03-30-2009: Tuxedo Version 8.1, 64-bit
162028.text2!tlisten.20815.1.-2: CMDTUX_CAT:4343: ERROR: Could not establish listening endpoint //128.199.36.60:9977
162216.text2!?proc.20894.1.0: 03-30-2009: Tuxedo Version 8.1, 64-bit
162216.text2!?proc.20894.1.0: LIBWSC_CAT:1052: ERROR: Environment variable WSNADDR not set
162216.text2!?proc.20894.1.0: LIBWSC_CAT:1027: ERROR: Unable to connect to WSH
162216.text2!?proc.20894.1.0: LIBWSC_CAT:1020: ERROR: Unable to obtain authentication level
错误原因:
服务器端和客户端之间没有建立正常连接。
解决办法:
A, 查看服务器端的监听是否启动:
$ ps -ef |grep -i 9977
storm 20704 20701 0 16:16:20 pts/tb 0:00 WSH -c 3 -i 2 -s 196616 -p 9977 -P 9999
storm 20701 1 0 16:16:20 pts/tb 0:00 WSL -C dom=simpapp -g 1 -i 200 -u text2 -U /home/storm/simpapp/ULOG -m 0 -A -- -n //128.199.36.60:9977 -m 3 -M 10 -x 2 -p 9977
storm 20703 20701 0 16:16:20 pts/tb 0:00 WSH -c 3 -i 1 -s 196616 -p 9977 -P 9999
storm 20702 20701 0 16:16:20 pts/tb 0:00 WSH -c 3 -i 0 -s 196616 -p 9977 -P 9999
B, 查看客户端的监听是否启动:
$ ps -ef |grep -i 9977
如果没有启动,那么需要重新启动listen监听:
$ tlisten -l //128.199.36.54:9977
$ ps -ef |grep 9977
storm 7114 1 0 16:21:27 console 0:00 tlisten -l //128.199.36.54:9977
C, 检查副节点环境变量:
export TUXDIR=/home/mw/tuxedo/tuxedo8.1
export PATH=$PATH:$TUXDIR/bin
export LD_LIBRARY_PATH=LD_LIBRARY_PATH:$TUXDIR/lib
#export TUXCONFIG=/home/storm/simpapp/tuxconfig
export WSNADDR=//128.199.36.60:9977
export LANG=C
D, 重新调用服务器端程序:
$ simpcl abc
Returned string is: ABC
阅读(3270) | 评论(0) | 转发(1) |