cancel
Showing results for 
Search instead for 
Did you mean: 

How can we install Java Console on rhel 6.2

Zahid_Haseeb
Moderator
Moderator
Partner    VIP    Accredited

Environment

OS = rhel6.2

Java console version = 6.0 SP1

Problem

I am able to install the java console but getting error when running the hagui.

How do I installed. See below for reference:

rpm -ivh /home/zahid/Desktop/VCS_Cluster_Manager_Java_Console_6.0.SP1_for_Linux.rpm
Preparing...                ########################################### [100%]
   1:VRTScscm               ########################################### [100%]


Error when running hagui :

Java Console is installed on the cluster Node (Single cluster but took ssh session to run the hagui)

[root@cluster-pri ~]# /opt/VRTSvcs/bin/hagui
Exception in thread "main" java.awt.HeadlessException:
No X11 DISPLAY variable was set, but this program performed an operation which requires it.
    at sun.awt.HeadlessToolkit.getColorModel(Unknown Source)
    at VCSGui.getImage(VCSGui.java:59)
    at VCSGui.main(VCSGui.java:92)
 

Java Console is installed on the cluster Node (Single cluster Node and running hagui on the Desktop of Single Cluster Node)

[root@cluster-dr ~]# /opt/VRTSvcs/bin/hagui
VCS Single Cluster Manager (Java Console) is no longer packaged with VCS. Symantec recommends use of the Veritas Operations Manager (VOM) to manage, monitor and report on multi-cluster environments. You can download VOM at http://go.symantec.com/vom . If you wish to continue using the VCS Single Cluster Manager, you can get it at no charge at the http://go.symantec.com/vcsm_download website.
 

1 ACCEPTED SOLUTION

Accepted Solutions

mikebounds
Level 6
Partner Accredited

This should also exist in /usr/lib.  The java GUI is a 32-bit program so will be looking in /usr/lib (or maybe /usr/lib32). You probably need to install the 32bit package so probably named libXext-1.1-3.el6.i686

Mike

View solution in original post

27 REPLIES 27

Gaurav_S
Moderator
Moderator
   VIP    Certified

Hi Zahid,

As the error mentions, did you try setting up the DISPLAY variable pointing out to where should be console go ?

I understand you are running the hagui directly on server ... you need to redirect the console to some display machine

If you want the console to appear on your desktop or laptop, you have to use a X software like Xming or X manager & make it to listen to display requests ..

then on server, you need to set DISPLAY variable like  DISPLAY=<IP_ADDRESS_OF_LAPTOP>,0.0 

check out the display port what it is listening with your X software (it should appear in systray) ..

Once display is set, then re-trigger ... it should throw theGUI on laptop or desktop ...

 

G

joseph_dangelo
Level 6
Employee Accredited

Zahid,

You also want to make sure that your putty session (or other SSH Client) has the "X11 Forwarding" option selected.  See the attached screen capture from putty.

Joe D

Zahid_Haseeb
Moderator
Moderator
Partner    VIP    Accredited

Thanks Jdangelo and Gaur

@ Jdangelo yes I already the same but :(

mikebounds
Level 6
Partner Accredited

Why are you trying to run hagui on the cluster nodes.  The normal reasons for this, is you are logging on to the PHYSICAL VGA console (which is pretty rare these days as you mainly ssh to server remotely) or you do not have permissions to install client on you client computer.  If the reason is either of these, then you need to set DISPLAY variable.  However, it is better to install java console on your client (less network traffic between server and client so it is quicker and you can manage both clusters from the same client). Normally the client is Windows so you can download this or install the rpm you already have on you client if it is a Linux client with rpm package management - both of these can be downloaded from  http://go.symantec.com/vom as the DR nodes tells you on which presumebly you have not installed the Java console.

Mike

Marianne
Moderator
Moderator
Partner    VIP    Accredited Certified

Zahid_Haseeb
Moderator
Moderator
Partner    VIP    Accredited

@ Marianne I dont know what are you trying to say please. I have already downloaded this and installed but not able to run the hagui

Marianne
Moderator
Moderator
Partner    VIP    Accredited Certified

Download the Java GUI for your Windows desktop.

Much easier than trying to install and manage on cluster nodes....

Zahid_Haseeb
Moderator
Moderator
Partner    VIP    Accredited

I can install on windows machine and I feel that its much easier but the person who will administer the Cluster is a Linux OS person. This is actually the prob...

Gaurav_S
Moderator
Moderator
   VIP    Certified

OK, so you say you already did the same as we recommended above ..

1. X11 forwarding enabled

2. DISPLAY variable set correctly ..

3. X manager software installed

Do u see any GUI on laptop or not at all see anything ? any network security softwares in between which prevents X from coming ?

To eliminate the problem, can u simply try runnig xclock on your linux server with same display & X 11 forwarding enabled ? if there is an issue between network , you should NOT see the x clock also ...

atleast you would know where to go from here ..

 

G

Zahid_Haseeb
Moderator
Moderator
Partner    VIP    Accredited

No Gaurav The reply was specific to the words on Marianne. Doing the same which you suggessted but busy is some other things thats why late. I hope share with you today the update. Thanks all for kind follow-up ;)

mikebounds
Level 6
Partner Accredited

You said  "the person who will administer the Cluster is a Linux OS person" - this does not necessarily mean you should use Linux hagui, especially not on the cluster node - as in an earlier post, you should ONLY use hagui on the cluster node itself if:

  1. You are logging on to the PHYSICAL VGA console (which is pretty rare these days as you mainly ssh to server remotely and most computer rooms do not even have a VGA console connected to the server)
  2. You do not have permissions to install client on you client computer.

If neither of these appy, then the GUI you should use, should be for the client you use, so if your Linux OS person uses a Linux client, then they should use Linux hagui on their computer, not the cluster nodes`, but if the Linux client does not use rpm package management, then they will need to convert rpm to say debian if using Ubuntu.

I am a Linux guy, but unfortunately I still have to use Windows clients, so I have a dual boot and I use both Linux and Windows GUIs in my Linux and Windows partitions.

If you Linux OS person is using a Windows client, then I would not use hagui to X display back to X manager software on Windows as this is not very efficient and the Windows and Linux GUIs look the same, so there is no point doing this unless you already have X display software and have no permissions to install additional software

Mike

Zahid_Haseeb
Moderator
Moderator
Partner    VIP    Accredited

@ Gaurav

I can run other applications (after executing the command ssh -X user@IP) like gedit, system-config-network or system-config-users but when I run /opt/VRTSvcs/bin/hagui I faced the below messages

On a centos machine/User Machine

# /opt/VRTSvcs/bin/hagui
Exception in thread "main" java.lang.UnsatisfiedLinkError: /opt/VRTSvcs/gui/jre/lib/i386/xawt/libmawt.so: libXext.so.6: cannot open shared object file: No such file or directory
    at java.lang.ClassLoader$NativeLibrary.load(Native Method)
    at java.lang.ClassLoader.loadLibrary0(Unknown Source)
    at java.lang.ClassLoader.loadLibrary(Unknown Source)
    at java.lang.Runtime.load0(Unknown Source)
    at java.lang.System.load(Unknown Source)
    at java.lang.ClassLoader$NativeLibrary.load(Native Method)
    at java.lang.ClassLoader.loadLibrary0(Unknown Source)
    at java.lang.ClassLoader.loadLibrary(Unknown Source)
    at java.lang.Runtime.loadLibrary0(Unknown Source)
    at java.lang.System.loadLibrary(Unknown Source)
    at sun.security.action.LoadLibraryAction.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.awt.NativeLibLoader.loadLibraries(Unknown Source)
    at sun.awt.DebugHelper.<clinit>(Unknown Source)
    at java.awt.Component.<clinit>(Unknown Source)
    at VCSGui.main(VCSGui.java:92)
 

One more thing : On the Cluster Node when I ran the hagui I have to run it but got the below error. I think first I have to run the hagui on the cluster Node itself.

Exception in thread "main" java.lang.UnsatisfiedLinkError: /opt/VRTSvcs/gui/jre/lib/i386/xawt/libmawt.so: libXext.so.6: cannot open shared object file: No such file or directory
    at java.lang.ClassLoader$NativeLibrary.load(Native Method)
    at java.lang.ClassLoader.loadLibrary0(Unknown Source)
    at java.lang.ClassLoader.loadLibrary(Unknown Source)
    at java.lang.Runtime.load0(Unknown Source)
    at java.lang.System.load(Unknown Source)
    at java.lang.ClassLoader$NativeLibrary.load(Native Method)
    at java.lang.ClassLoader.loadLibrary0(Unknown Source)
    at java.lang.ClassLoader.loadLibrary(Unknown Source)
    at java.lang.Runtime.loadLibrary0(Unknown Source)
    at java.lang.System.loadLibrary(Unknown Source)
    at sun.security.action.LoadLibraryAction.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.awt.NativeLibLoader.loadLibraries(Unknown Source)
    at sun.awt.DebugHelper.<clinit>(Unknown Source)
    at java.awt.Component.<clinit>(Unknown Source)
    at VCSGui.main(VCSGui.java:92)
 

mikebounds
Level 6
Partner Accredited

libXext.so.6 should be in package libXext-1.1-3 - is this installed?

Mike

Zahid_Haseeb
Moderator
Moderator
Partner    VIP    Accredited

libXext.so.6 should be in package libXext-1.1-3 - is this installed?

How could I verify the existance of libXext.so.6 in the package libXext-1.1-3. Although I have the package libXext-1.1-3 is already installed.

# rpm -qa |grep libXext
libXext-1.1-3.el6.x86_64

mikebounds
Level 6
Partner Accredited

On my ubuntu client the file is in /usr/lib and /usr/lib32 and is a link to another file:

 

$ ls -l /usr/lib/libXext*
lrwxrwxrwx 1 root root    16 2011-01-10 19:48 /usr/lib/libXext.so.6 -> libXext.so.6.4.0
-rw-r--r-- 1 root root 73600 2010-07-13 17:11 /usr/lib/libXext.so.6.4.0
$ ls -l /usr/lib32/libXext*
lrwxrwxrwx 1 root root    12 2011-09-29 16:53 /usr/lib32/libXext.so -> libXext.so.6
lrwxrwxrwx 1 root root    16 2011-09-29 16:53 /usr/lib32/libXext.so.6 -> libXext.so.6.4.0
-rw-r--r-- 1 root root 60024 2010-07-13 15:51 /usr/lib32/libXext.so.6.4.0
It could be that you have source file, but not the link, so if you have a file that starts with libXext.so.6, then link this to libXext.so.6.  So suppose like me you have libXext.so.6.4.0, but link is not there then run:
cd /usr/lib
ln -s libXext.so.6.4.0 libXext.so.6
cd /usr/lib32
ln -s libXext.so.6.4.0 libXext.so.6
 
Mike
 
 

 

 

Zahid_Haseeb
Moderator
Moderator
Partner    VIP    Accredited

# pwd
/usr/lib64
[root@cluster lib64]# ls -l libXext*
lrwxrwxrwx. 1 root root    16 Apr 27 22:49 libXext.so.6 -> libXext.so.6.4.0
-rwxr-xr-x. 1 root root 76848 Jul 19  2010 libXext.so.6.4.0
 

mikebounds
Level 6
Partner Accredited

This should also exist in /usr/lib.  The java GUI is a 32-bit program so will be looking in /usr/lib (or maybe /usr/lib32). You probably need to install the 32bit package so probably named libXext-1.1-3.el6.i686

Mike

Zahid_Haseeb
Moderator
Moderator
Partner    VIP    Accredited

]# pwd
/usr/lib
[root@cluster-pri lib]# ls -l /usr/lib/libXext*
lrwxrwxrwx 1 root root    16 Jul 20 03:35 /usr/lib/libXext.so.6 -> libXext.so.6.4.0
-rwxr-xr-x 1 root root 68588 Nov 23  2010 /usr/lib/libXext.so.6.4.0

Huffffffff:

Now the result is changed

# /opt/VRTSvcs/bin/hagui
Exception in thread "main" java.lang.UnsatisfiedLinkError: /opt/VRTSvcs/gui/jre/lib/i386/xawt/libmawt.so: libXtst.so.6: cannot open shared object file: No such file or directory


 

mikebounds
Level 6
Partner Accredited

Need to install libXtst-1.0.99.2-3.el6.i686.rpm now and then run hagui again to find out the next missing library :)

Mike