LINUX排除cicstg 配置工具ctgcfg启动时的报错

晚上,在虚拟机设置好ibm jdk的运行环境后,尝试启动ctg的配置工具,在shell命令符执行ctgcfg命令报错,提示找不到相关的so文件,循着报错信息,一路排查,一路尝试,最后终于解决问题,终于成功启动ctgcfg配置工具窗口,下面为排障过程,重点地方,会用红色字体标注。。

[root@ibmtest ~]# cd /opt/ibm/cicstg
[root@ibmtest cicstg]# ls
bin deployable installlogs lib msgs readme.html sdk wlp
classes icons installResponseSamp.txt lib64 product.xml readme.txt uninstall91
copybook include jvm170 license properties samples uninstallResponseSamp.txt

[root@ibmtest bin]# ./ctgcfg
CTG8801I CTGCFG – CICS Transaction Gateway 配置工具启动程序
CCL0002I (C) Copyright IBM Corporation 2002, 2014. All rights reserved.
java.lang.reflect.InvocationTargetException
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:95)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:56)
at java.lang.reflect.Method.invoke(Method.java:620)
at com.ibm.ctg.util.CTGLaunch.loadClass(Unknown Source)
at com.ibm.ctg.util.CTGLaunch.main(Unknown Source)
Caused by: java.awt.HeadlessException:
No X11 DISPLAY variable was set, but this program performed an operation which requires it.
at java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:222)
at java.awt.Window.<init>(Window.java:547)
at java.awt.Frame.<init>(Frame.java:432)
at javax.swing.JFrame.<init>(JFrame.java:236)
at com.ibm.ccl.iface.ConfigTool.main(Unknown Source)
… 6 more
CTG6121E 找不到 Java 运行时类


[root@ibmtest bin]# export DISPLAY=192.168.217.1:0.0
[root@ibmtest bin]# ./ctgcfg
CTG8801I CTGCFG – CICS Transaction Gateway 配置工具启动程序
CCL0002I (C) Copyright IBM Corporation 2002, 2014. All rights reserved.
java.lang.reflect.InvocationTargetException
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:95)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:56)
at java.lang.reflect.Method.invoke(Method.java:620)
at com.ibm.ctg.util.CTGLaunch.loadClass(Unknown Source)
at com.ibm.ctg.util.CTGLaunch.main(Unknown Source)
Caused by: java.lang.UnsatisfiedLinkError: /opt/ibm/cicstg/jvm170/lib/i386/xawt/libmawt.so (libXext.so.6: 无法打开共享对象文件: 没有那个文件或目录)
at java.lang.ClassLoader.loadLibraryWithPath(ClassLoader.java:1256)
at java.lang.System.load(System.java:524)
at java.lang.ClassLoader.loadLibraryWithPath(Native Method)
at java.lang.ClassLoader.loadLibraryWithPath(ClassLoader.java:1248)
at java.lang.ClassLoader.loadLibraryWithClassLoader(ClassLoader.java:1220)
at java.lang.System.loadLibrary(System.java:537)
at sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:80)
at sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:60)
at java.security.AccessController.doPrivileged(AccessController.java:360)
at java.awt.Toolkit.loadLibraries(Toolkit.java:1668)
at java.awt.Toolkit.<clinit>(Toolkit.java:1697)
at java.awt.Component.<clinit>(Component.java:607)
at com.ibm.ccl.iface.ConfigTool.main(Unknown Source)
… 6 more
CTG6121E 找不到 Java 运行时类

[root@ibmtest ~]# yum search libxtst
已加载插件:fastestmirror
Loading mirror speeds from cached hostfile
* epel: mirror01.idc.hinet.net
============================================================== N/S matched: libxtst ===============================================================
libXtst.x86_64 : X.Org X11 libXtst runtime library
libXtst.i686 : X.Org X11 libXtst runtime library
libXtst-devel.i686 : X.Org X11 libXtst development package
libXtst-devel.x86_64 : X.Org X11 libXtst development package

名称和简介匹配 only,使用“search all”试试。
[root@ibmtest ~]# find / -name libXext.so.6
/usr/lib64/libXext.so.6
[root@ibmtest ~]# yum install libXtst.i686
……………………………………………………………….

保护多库版本:libXtst-1.2.3-1.el7.i686 != libXtst-1.2.2-2.1.el7.x86_64
[root@ibmtest ~]# yum install libXtst-devel.i686
……………………………………………………………………………………………..
已安装:
libXtst-devel.i686 0:1.2.3-1.el7

作为依赖被安装:
libX11.i686 0:1.6.5-1.el7 libX11-devel.x86_64 0:1.6.5-1.el7 libXau.i686 0:1.0.8-2.1.el7 libXau-devel.x86_64 0:1.0.8-2.1.el7
libXext.i686 0:1.3.3-3.el7 libXext-devel.x86_64 0:1.3.3-3.el7 libXfixes-devel.x86_64 0:5.0.3-1.el7 libXi.i686 0:1.7.9-1.el7
libXi-devel.i686 0:1.7.9-1.el7 libXi-devel.x86_64 0:1.7.9-1.el7 libXtst.i686 0:1.2.3-1.el7 libxcb.i686 0:1.12-1.el7
libxcb-devel.x86_64 0:1.12-1.el7 xorg-x11-proto-devel.noarch 0:7.7-20.el7

作为依赖被升级:
libX11.x86_64 0:1.6.5-1.el7 libX11-common.noarch 0:1.6.5-1.el7 libXfixes.x86_64 0:5.0.3-1.el7 libXi.x86_64 0:1.7.9-1.el7
libXtst.x86_64 0:1.2.3-1.el7 libxcb.x86_64 0:1.12-1.el7

完毕!
[root@ibmtest ~]# rpm -qa | grep libXtst
libXtst-1.2.3-1.el7.x86_64
libXtst-1.2.3-1.el7.i686
libXtst-devel-1.2.3-1.el7.i686

[root@ibmtest bin]# ./ctgcfg
CTG8801I CTGCFG – CICS Transaction Gateway 配置工具启动程序
CCL0002I (C) Copyright IBM Corporation 2002, 2014. All rights reserved.
java.lang.reflect.InvocationTargetException
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:95)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:56)
at java.lang.reflect.Method.invoke(Method.java:620)
at com.ibm.ctg.util.CTGLaunch.loadClass(Unknown Source)
at com.ibm.ctg.util.CTGLaunch.main(Unknown Source)
Caused by: java.lang.UnsatisfiedLinkError: /opt/ibm/cicstg/jvm170/lib/i386/xawt/libmawt.so (libXrender.so.1: 无法打开共享对象文件: 没有那个文件或目录)
at java.lang.ClassLoader.loadLibraryWithPath(ClassLoader.java:1256)
at java.lang.System.load(System.java:524)
at java.lang.ClassLoader.loadLibraryWithPath(Native Method)
at java.lang.ClassLoader.loadLibraryWithPath(ClassLoader.java:1248)
at java.lang.ClassLoader.loadLibraryWithClassLoader(ClassLoader.java:1220)
at java.lang.System.loadLibrary(System.java:537)
at sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:80)
at sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:60)
at java.security.AccessController.doPrivileged(AccessController.java:360)
at java.awt.Toolkit.loadLibraries(Toolkit.java:1668)
at java.awt.Toolkit.<clinit>(Toolkit.java:1697)
at java.awt.Component.<clinit>(Component.java:607)
at com.ibm.ccl.iface.ConfigTool.main(Unknown Source)
… 6 more
CTG6121E 找不到 Java 运行时类
[root@ibmtest bin]# yum search libXrender
已加载插件:fastestmirror
Loading mirror speeds from cached hostfile
* epel: mirror01.idc.hinet.net
============================================================== N/S matched: libXrender ===============================================================
libXrender.x86_64 : X.Org X11 libXrender runtime library
libXrender.i686 : X.Org X11 libXrender runtime library
libXrender-devel.i686 : X.Org X11 libXrender development package
libXrender-devel.x86_64 : X.Org X11 libXrender development package

…………………………………………………………………………………………………………………………………..
完毕!
[root@ibmtest bin]# ./ctgcfg
CTG8801I CTGCFG – CICS Transaction Gateway 配置工具启动程序
CCL0002I (C) Copyright IBM Corporation 2002, 2014. All rights reserved.
java.lang.reflect.InvocationTargetException
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:95)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:56)
at java.lang.reflect.Method.invoke(Method.java:620)
at com.ibm.ctg.util.CTGLaunch.loadClass(Unknown Source)
at com.ibm.ctg.util.CTGLaunch.main(Unknown Source)
Caused by: java.lang.UnsatisfiedLinkError: /opt/ibm/cicstg/jvm170/lib/i386/xawt/libmawt.so (libXft.so.2: 无法打开共享对象文件: 没有那个文件或目录)
at java.lang.ClassLoader.loadLibraryWithPath(ClassLoader.java:1256)
at java.lang.System.load(System.java:524)
at java.lang.ClassLoader.loadLibraryWithPath(Native Method)
at java.lang.ClassLoader.loadLibraryWithPath(ClassLoader.java:1248)
at java.lang.ClassLoader.loadLibraryWithClassLoader(ClassLoader.java:1220)
at java.lang.System.loadLibrary(System.java:537)
at sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:80)
at sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:60)
at java.security.AccessController.doPrivileged(AccessController.java:360)
at java.awt.Toolkit.loadLibraries(Toolkit.java:1668)
at java.awt.Toolkit.<clinit>(Toolkit.java:1697)
at java.awt.Component.<clinit>(Component.java:607)
at com.ibm.ccl.iface.ConfigTool.main(Unknown Source)
… 6 more
CTG6121E 找不到 Java 运行时类
[root@ibmtest bin]# yum search libXft
已加载插件:fastestmirror
Loading mirror speeds from cached hostfile
* epel: mirror01.idc.hinet.net
================================================================ N/S matched: libXft =================================================================
libXft.i686 : X.Org X11 libXft runtime library
libXft.x86_64 : X.Org X11 libXft runtime library
libXft-devel.i686 : X.Org X11 libXft development package
libXft-devel.x86_64 : X.Org X11 libXft development package
ghc-X11-xft.x86_64 : Haskell libXft binding

名称和简介匹配 only,使用“search all”试试。
[root@ibmtest bin]# yum install libXft-devel.i686
已加载插件:fastestmirror
Loading mirror speeds from cached hostfile
…………………………………………………………………………………………………………………………
已安装:
libXft-devel.i686 0:2.3.2-2.el7

作为依赖被安装:
expat.i686 0:2.1.0-10.el7_3 fontconfig.i686 0:2.10.95-11.el7 fontconfig-devel.x86_64 0:2.10.95-11.el7 freetype.i686 0:2.4.11-15.el7
libXft.i686 0:2.3.2-2.el7

作为依赖被升级:
fontconfig.x86_64 0:2.10.95-11.el7

完毕!
[root@ibmtest bin]# ./ctgcfg
CTG8801I CTGCFG – CICS Transaction Gateway 配置工具启动程序
CCL0002I (C) Copyright IBM Corporation 2002, 2014. All rights reserved.
ctgcfgbak

ctgcfgbak

以下文章点击率最高

Loading…

发表评论