Topic
  • 7 replies
  • Latest Post - ‏2015-02-25T15:21:10Z by XM40_Hozefa_Rupawala
SystemAdmin
SystemAdmin
64 Posts

Pinned topic Websphere 8 on AIX 7.1 missing swt libraries when starting pmt.sh

‏2012-05-03T15:05:45Z |
Hello,

i have installed the IBM WebSphere 8 60-days-trial on my AIX 7.1 machine.
I have also testet the Websphere 8 on Windows 7 and it works perfect.
On AIX there are problems when I want to create a serverprofile.
I have started the /opt/IBM/WebSphere/AppServer/bin/ProfileManagement/pmt.sh
But I received:
Eclipse:
An error has occurred. See the log file
/.ibm/WebSphere/AppServer/workspaces/WCT8/metadata/.log

In this log I found the following:

!SESSION 2012-05-02 14:42:51.833
eclipse.buildId=unknown
java.fullversion=JRE 1.6.0 IBM J9 2.6 AIX ppc64-64 20120308_104898 (JIT enabled, AOT enabled)
J9VM - R26_Java626_SR1_FP1_20120308_1511_B104898
JIT - r11_20111028_21230ifx5
GC - R26_Java626_SR1_FP1_20120308_1511_B104898
J9CL - 20120308_104898
BootLoader constants: OS=aix, ARCH=ppc64, WS=gtk, NL=en_US
Framework arguments: -perspective com.ibm.ws.pmt.views.standalone.perspectives.standAlonePerspective
Command-line arguments: -os aix -ws gtk -arch ppc64 -clean -perspective com.ibm.ws.pmt.views.standalone.perspectives.standAlonePerspective

!ENTRY org.eclipse.osgi 4 0 2012-05-02 14:43:01.287
!MESSAGE Application error
!STACK 1
java.lang.UnsatisfiedLinkError: Could not load SWT library. Reasons:
/.ibm/WebSphere/AppServer/configurations/WCT8/org.eclipse.osgi/bundles/51/1/.cp/libswt-pi-gtk-3659.a (A file or directory in the path name does not exist.)
swt-pi-gtk (Not found in java.library.path)
/tmp/swtlib-64/libswt-pi-gtk-3659.a (A file or directory in the path name does not exist.)
/tmp/swtlib-64/libswt-pi-gtk.a (A file or directory in the path name does not exist.)
/tmp/swtlib-64/libswt-pi-gtk-3659.a (A file or directory in the path name does not exist.)

at org.eclipse.swt.internal.Library.loadLibrary(Library.java:267)
at org.eclipse.swt.internal.Library.loadLibrary(Library.java:174)
at org.eclipse.swt.internal.gtk.OS.<clinit>(OS.java:22)
at java.lang.J9VMInternals.initializeImpl(Native Method)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:233)
at org.eclipse.swt.internal.Converter.wcsToMbcs(Converter.java:63)
at org.eclipse.swt.internal.Converter.wcsToMbcs(Converter.java:54)
at org.eclipse.swt.widgets.Display.<clinit>(Display.java:132)
at java.lang.J9VMInternals.initializeImpl(Native Method)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:233)
at org.eclipse.ui.internal.Workbench.createDisplay(Workbench.java:687)
at org.eclipse.ui.PlatformUI.createDisplay(PlatformUI.java:161)
at com.ibm.ws.pmt.tools.WasToolApplication.run(WasToolApplication.java:190)
at com.ibm.ws.pmt.views.standalone.StandAloneToolApplication.run(StandAloneToolApplication.java:70)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:611)
at org.eclipse.equinox.internal.app.EclipseAppContainer.callMethodWithException(EclipseAppContainer.java:587)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:198)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:611)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:620)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:575)
at org.eclipse.equinox.launcher.Main.run(Main.java:1408)
at org.eclipse.equinox.launcher.Main.main(Main.java:1384)
!SESSION 2012-05-02 15:02:26.362
eclipse.buildId=unknown
java.fullversion=JRE 1.6.0 IBM J9 2.6 AIX ppc64-64 20120308_104898 (JIT enabled, AOT enabled)
J9VM - R26_Java626_SR1_FP1_20120308_1511_B104898
JIT - r11_20111028_21230ifx5
GC - R26_Java626_SR1_FP1_20120308_1511_B104898
J9CL - 20120308_104898
In my filesystem I have found the:
libswt-gtk-3659.a
libswt-pi-gtk-3659.a
in /.ibm/WebSphere/AppServer/configurations/WCT8/org.eclipse.osgi/bundles/51/1/.cp

and in /tmp/swtlib-64
I have found libswt-pi-gtk-3659.a

What I haven´t found is:
swt-pi-gtk (Not found in java.library.path)
and
/tmp/swtlib-64/libswt-pi-gtk.a

In the internet i did not find anything helpful.
It would be great if you could help me.
Thanks in advance.
Updated on 2012-05-08T13:37:12Z at 2012-05-08T13:37:12Z by Scott Johnston
  • samw@ca.ibm.com
    samw@ca.ibm.com
    4 Posts

    Re: Websphere 8 on AIX 7.1 missing swt libraries when starting pmt.sh

    ‏2012-05-03T15:21:38Z  
    This is most likely because you are using the 64 bit version of WAS and the GTK prereqs are not installed. The GUI infrastructure requires the same prereqs as Firefox so a good sniff test would be to launch a browser.

    For more info see: http://publib.boulder.ibm.com/infocenter/wasinfo/v8r0/index.jsp?topic=%2Fcom.ibm.websphere.installation.nd.doc%2Finfo%2Fae%2Fae%2Ftins_aixsetup.html

    Sam Wong
    samw@ca.ibm.com
  • Scott Johnston
    Scott Johnston
    101 Posts

    Re: Websphere 8 on AIX 7.1 missing swt libraries when starting pmt.sh

    ‏2012-05-03T15:46:18Z  
    The Profile Management Tool is build on Eclipse, which requires a number of GTK rpms which are not on many AIX systems by default. Based on the information provided, it appears your system has some, but maybe not all of the packages.

    There is an article in the WAS 8 Information Center that describes preparing an AIX system.
    http://publib.boulder.ibm.com/infocenter/wasinfo/v8r0/topic/com.ibm.websphere.installation.nd.doc/info/ae/ae/tins_aixsetup.html

    The article recommends using the AIX Toolbox for Linux Applications to install the necessary packages. The AIX Toolbox is freely available, and can be download from the following website:
    http://www.ibm.com/systems/power/software/aix/linux/

    Another alternative is to use a secondary, non-AIX, Unix-based machine for viewing the display output from the AIX machine. In this scenario, add the AIX machine to the xhost access control list of the non-AIX machine. Then, connect to the AIX machine via ssh and export the display to the VNC port of the non-AIX machine.

    Something like this...

    xterm window 1 (add AIX machine to xhost access control list of non-AIX machine running VNC)
    # xhost myaix.machine.com
    myaix.machine.com is being added to the access control list.
    The authenticity of host 'myaix.machine.com' can't be established.
    Are you sure you want to connect (yes/no)? yes
    myaix.machine.com has been added to the list of known hosts.

    xterm window 2 (ssh to AIX machine and export display to non-AIX machine)
    # ssh gscottj@myaix.machine.com
    # password: *******
    #
    # Connected to AIX 7.1
    $
    $ export DISPLAY=nonaix.machine.com:1.0
    $ /opt/IBM/WebSphere/AppServer/bin/ProfileManagement/pmt.sh &
    At that point, the display from the AIX machine should be passed to and displayed on the non-AIX machine.

    Let me know how these options work out for you.

    Regards,
    Scott Johnston
    WebSphere Application Server
    Install & Configuration User Experience Lead
  • SystemAdmin
    SystemAdmin
    64 Posts

    Re: Websphere 8 on AIX 7.1 missing swt libraries when starting pmt.sh

    ‏2012-05-04T10:04:36Z  
    Hello,

    thanks for your fast replies.

    Due to your answers it seems that the problem is with the GTK rpms.
    Before I started to install WebSphere I wanted to start firefox, but it didn´t start.
    1. firefox
    exec(): 0509-036 Cannot load program /usr/mozilla/firefox/firefox-bin because of the following errors:
    0509-022 Cannot load module /usr/lib/libfontconfig.a(libfontconfig.so.1).
    0509-150 Dependent module /usr/lib/libexpat.a(libexpat.so.1) could not be loaded.
    0509-103 The module has an invalid magic number.
    0509-022 Cannot load module firefox-bin.
    0509-150 Dependent module /usr/lib/libfontconfig.a(libfontconfig.so.1) could not be loaded.
    0509-022 Cannot load module .
    Ignoring this, I downloaded the InstallManger from another machine, transfered it through the network
    and installed WebSphere. But pmt.sh did not start.

    Regarding to your replies i have checked the installed GTK rpms and most of them are already installed.
    But here is the problem:
    Some of them are installed with a higher version or conflicts occured when i tried to install them with "rpm -ihv"

    (i) = installed
    atk-1.12.3-2.aix5.2.ppc.rpm (i)
    cairo-1.8.8-1.aix5.2.ppc.rpm (i)

    expat-2.0.1-1.aix5.2.ppc.rpm (conflicts)
    package expat-2.0.1-1 is already installed
    file /opt/freeware/bin/xmlwf from install of expat-2.0.1-1 conflicts with file from package expat-2.0.1-1
    file /opt/freeware/lib/libexpat.a from install of expat-2.0.1-1 conflicts with file from package expat-2.0.1-1

    fontconfig-2.4.2-1.aix5.2.ppc.rpm (2.8.0-2 i conflicts)
    package fontconfig-2.8.0-2 (which is newer than fontconfig-2.4.2-1) is already installed
    file /opt/freeware/bin/fc-list from install of fontconfig-2.4.2-1 conflicts with file from package fontconfig-2.8.0-2
    file /opt/freeware/etc/fonts/conf.avail/10-autohint.conf from install of fontconfig-2.4.2-1 conflicts with file from package fontconfig-2.8.0-2
    file /opt/freeware/etc/fonts/conf.avail/10-no-sub-pixel.conf from install of fontconfig-2.4.2-1 conflicts with file from package fontconfig-2.8.0-2
    file /opt/freeware/etc/fonts/conf.avail/10-sub-pixel-bgr.conf from install of fontconfig-2.4.2-1 conflicts with file from package fontconfig-2.8.0-2
    file /opt/freeware/etc/fonts/conf.avail/10-sub-pixel-rgb.conf from install of fontconfig-2.4.2-1 conflicts with file from package fontconfig-2.8.0-2
    file /opt/freeware/etc/fonts/conf.avail/10-sub-pixel-vbgr.conf from install of fontconfig-2.4.2-1 conflicts with file from package fontconfig-2.8.0-2
    file /opt/freeware/etc/fonts/conf.avail/10-sub-pixel-vrgb.conf from install of fontconfig-2.4.2-1 conflicts with file from package fontconfig-2.8.0-2
    file /opt/freeware/etc/fonts/conf.avail/10-unhinted.conf from install of fontconfig-2.4.2-1 conflicts with file from package fontconfig-2.8.0-2
    file /opt/freeware/etc/fonts/conf.avail/20-fix-globaladvance.conf from install of fontconfig-2.4.2-1 conflicts with file from package fontconfig-2.8.0-2
    file /opt/freeware/etc/fonts/conf.avail/20-unhint-small-vera.conf from install of fontconfig-2.4.2-1 conflicts with file from package fontconfig-2.8.0-2
    file /opt/freeware/etc/fonts/conf.avail/30-urw-aliases.conf from install of fontconfig-2.4.2-1 conflicts with file from package fontconfig-2.8.0-2
    file /opt/freeware/bin/fc-cache from install of fontconfig-2.4.2-1 conflicts with file from package fontconfig-2.8.0-2
    file /opt/freeware/etc/fonts/conf.avail/50-user.conf from install of fontconfig-2.4.2-1 conflicts with file from package fontconfig-2.8.0-2
    file /opt/freeware/etc/fonts/conf.avail/51-local.conf from install of fontconfig-2.4.2-1 conflicts with file from package fontconfig-2.8.0-2
    file /opt/freeware/etc/fonts/conf.avail/60-latin.conf from install of fontconfig-2.4.2-1 conflicts with file from package fontconfig-2.8.0-2
    file /opt/freeware/etc/fonts/conf.avail/65-fonts-persian.conf from install of fontconfig-2.4.2-1 conflicts with file from package fontconfig-2.8.0-2
    file /opt/freeware/etc/fonts/conf.avail/65-nonlatin.conf from install of fontconfig-2.4.2-1 conflicts with file from package fontconfig-2.8.0-2
    file /opt/freeware/etc/fonts/conf.avail/69-unifont.conf from install of fontconfig-2.4.2-1 conflicts with file from package fontconfig-2.8.0-2
    file /opt/freeware/etc/fonts/conf.avail/70-no-bitmaps.conf from install of fontconfig-2.4.2-1 conflicts with file from package fontconfig-2.8.0-2
    file /opt/freeware/etc/fonts/conf.avail/70-yes-bitmaps.conf from install of fontconfig-2.4.2-1 conflicts with file from package fontconfig-2.8.0-2
    file /opt/freeware/etc/fonts/conf.avail/80-delicious.conf from install of fontconfig-2.4.2-1 conflicts with file from package fontconfig-2.8.0-2
    file /opt/freeware/etc/fonts/conf.avail/90-synthetic.conf from install of fontconfig-2.4.2-1 conflicts with file from package fontconfig-2.8.0-2
    file /opt/freeware/etc/fonts/fonts.conf from install of fontconfig-2.4.2-1 conflicts with file from package fontconfig-2.8.0-2
    file /opt/freeware/etc/fonts/fonts.dtd from install of fontconfig-2.4.2-1 conflicts with file from package fontconfig-2.8.0-2
    file /opt/freeware/lib/libfontconfig.a from install of fontconfig-2.4.2-1 conflicts with file from package fontconfig-2.8.0-2

    freetype2-2.3.9-1.aix5.2.ppc.rpm (2-2.4.8-1 i conflicts)
    package freetype2-2.4.8-1 (which is newer than freetype2-2.3.9-1) is already installed
    file /opt/freeware/lib/libfreetype.a from install of freetype2-2.3.9-1 conflicts with file from package freetype2-2.4.8-1

    gettext-0.10.40-6.aix5.1.ppc.rpm (i)
    glib2-2.12.4-2.aix5.2.ppc.rpm (i)
    gtk2-2.10.6-4.aix5.2.ppc.rpm (i)
    libjpeg-6b-6.aix5.1.ppc.rpm (i)

    libpng-1.2.32-2.aix5.2.ppc.rpm (i conflicts)
    package libpng-1.2.32-2 is already installed
    file /opt/freeware/lib/libpng.a from install of libpng-1.2.32-2 conflicts with file from package libpng-1.2.32-2
    file /opt/freeware/lib/libpng12.a from install of libpng-1.2.32-2 conflicts with file from package libpng-1.2.32-2

    libtiff-3.8.2-1.aix5.2.ppc.rpm (i)
    pango-1.14.5-4.aix5.2.ppc.rpm (i)
    xcursor-1.1.7-3.aix5.2.ppc.rpm (i)
    xft-2.1.6-5.aix5.1.ppc.rpm (i)
    xrender-0.9.1-3.aix5.2.ppc.rpm (i)

    zlib-1.2.3-3.aix5.1.ppc.rpm (conflicts)
    file /opt/freeware/lib/libz.a from install of zlib-1.2.3-4 conflicts with file from package zlib-1.2.3-3
    pixman-0.12.0-3.aix5.2.ppc.rpm (i)

    Could it be that the problems depends on expat and fontconfig rpm conflicts?
    Is it correct that if i can start firefox the pmt.sh will work?

    Actually i am not going to use rpm --force to override the current versions due to other programms
    running on the AIX machine.
  • SystemAdmin
    SystemAdmin
    64 Posts

    Re: Websphere 8 on AIX 7.1 missing swt libraries when starting pmt.sh

    ‏2012-05-08T09:13:22Z  
    hi all,

    we solved the problem.

    The problem was that the package
    fontconfig-2.4.2-1.aix5.2.ppc.rpm
    was installed in the higher version 2.8.0-2
    We downgraded it with
    rpm -Uhv --oldpackage fontconfig-2.4.2-1.aix5.2.ppc.rpm

    Now firefox and the pmt.sh starts correct.

    Thanks for all your help
  • Scott Johnston
    Scott Johnston
    101 Posts

    Re: Websphere 8 on AIX 7.1 missing swt libraries when starting pmt.sh

    ‏2012-05-08T13:37:12Z  
    hi all,

    we solved the problem.

    The problem was that the package
    fontconfig-2.4.2-1.aix5.2.ppc.rpm
    was installed in the higher version 2.8.0-2
    We downgraded it with
    rpm -Uhv --oldpackage fontconfig-2.4.2-1.aix5.2.ppc.rpm

    Now firefox and the pmt.sh starts correct.

    Thanks for all your help
    Thank you for letting us know that you were able to resolve the issue and how you did it. Your post may help others as well.

    If you have additional comments or feedback, please post them.

    Regards,
    Scott Johnston
    WebSphere Application Server
    Install & Configuration User Experience Lead
  • IdealIvan
    IdealIvan
    1 Post

    Re: Websphere 8 on AIX 7.1 missing swt libraries when starting pmt.sh

    ‏2013-11-20T02:55:32Z  
    hi all,

    we solved the problem.

    The problem was that the package
    fontconfig-2.4.2-1.aix5.2.ppc.rpm
    was installed in the higher version 2.8.0-2
    We downgraded it with
    rpm -Uhv --oldpackage fontconfig-2.4.2-1.aix5.2.ppc.rpm

    Now firefox and the pmt.sh starts correct.

    Thanks for all your help

    We also had the problem, I followed "SystemAdmin", but the fontconfig installation did not fix the problem.

    We finally fixed that by installing the libxml2-2.6.21-4.aix5.2.ppc.rpm which is also downloaded from IBM site.

  • XM40_Hozefa_Rupawala
    1 Post

    Re: Websphere 8 on AIX 7.1 missing swt libraries when starting pmt.sh

    ‏2015-02-25T15:21:10Z  
    • IdealIvan
    • ‏2013-11-20T02:55:32Z

    We also had the problem, I followed "SystemAdmin", but the fontconfig installation did not fix the problem.

    We finally fixed that by installing the libxml2-2.6.21-4.aix5.2.ppc.rpm which is also downloaded from IBM site.

    you may follow this link and install all the required rpm's to resolve the issue.

    http://www-01.ibm.com/support/docview.wss?uid=swg21631478

    Updated on 2015-02-25T15:21:39Z at 2015-02-25T15:21:39Z by XM40_Hozefa_Rupawala