Video Screencast Help
Symantec to Separate Into Two Focused, Industry-Leading Technology Companies. Learn more.

How can we install Java Console on rhel 6.2

Created: 12 Jul 2012 • Updated: 21 Jul 2012 | 27 comments
Zahid.Haseeb's picture
This issue has been solved. See solution.

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.
 

Discussion Filed Under:

Comments 27 CommentsJump to latest comment

Gaurav Sangamnerkar's picture

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

PS: If you are happy with the answer provided, please mark the post as solution. You can do so by clicking link "Mark as Solution" below the answer provided.
 

jdangelo_symc's picture

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

x11.JPG
Zahid.Haseeb's picture

Thanks Jdangelo and Gaur

@ Jdangelo yes I already the same but :(

Any comment will be appreciated. Mark as Solution if your query is resolved
__________________
Thanks in Advance
Zahid Haseeb

zahidhaseeb.wordpress.com

mikebounds's picture

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

UK Symantec Consultant in VCS, GCO, SF, VVR, VxAT on Solaris, AIX, HP-ux, Linux & Windows

If this post has answered your question then please click on "Mark as solution" link below

Marianne's picture

If you use the VOM link in Mike's post, click on 'Other Resources', then 
'Download: Veritas Cluster Server Java Console, Veritas Cluster Server Simulator, Veritas Enterprise Administrator Console

Supporting Storage Foundation and VCS on Unix and Windows as well as NetBackup on Unix and Windows
Handy NBU Links

Zahid.Haseeb's picture

@ 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

Any comment will be appreciated. Mark as Solution if your query is resolved
__________________
Thanks in Advance
Zahid Haseeb

zahidhaseeb.wordpress.com

Marianne's picture

Download the Java GUI for your Windows desktop.

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

Supporting Storage Foundation and VCS on Unix and Windows as well as NetBackup on Unix and Windows
Handy NBU Links

Zahid.Haseeb's picture

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...

Any comment will be appreciated. Mark as Solution if your query is resolved
__________________
Thanks in Advance
Zahid Haseeb

zahidhaseeb.wordpress.com

Gaurav Sangamnerkar's picture

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

PS: If you are happy with the answer provided, please mark the post as solution. You can do so by clicking link "Mark as Solution" below the answer provided.
 

Zahid.Haseeb's picture

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 ;)

Any comment will be appreciated. Mark as Solution if your query is resolved
__________________
Thanks in Advance
Zahid Haseeb

zahidhaseeb.wordpress.com

Zahid.Haseeb's picture

@ gaurav

This problem also got fixed as per the below settings (Just for checking not parmament).

un hash the lines below and also replace no with yes under /etc/ssh/ssh_config and /etc/ssh/sshd_config file

X11Forwarding yes
ForwardX11 yes
ForwardX11Trusted yes
ForwardAgent yes

Any comment will be appreciated. Mark as Solution if your query is resolved
__________________
Thanks in Advance
Zahid Haseeb

zahidhaseeb.wordpress.com

mikebounds's picture

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

UK Symantec Consultant in VCS, GCO, SF, VVR, VxAT on Solaris, AIX, HP-ux, Linux & Windows

If this post has answered your question then please click on "Mark as solution" link below

Zahid.Haseeb's picture

@ 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)
 

Any comment will be appreciated. Mark as Solution if your query is resolved
__________________
Thanks in Advance
Zahid Haseeb

zahidhaseeb.wordpress.com

mikebounds's picture

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

Mike

UK Symantec Consultant in VCS, GCO, SF, VVR, VxAT on Solaris, AIX, HP-ux, Linux & Windows

If this post has answered your question then please click on "Mark as solution" link below

Zahid.Haseeb's picture

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

Any comment will be appreciated. Mark as Solution if your query is resolved
__________________
Thanks in Advance
Zahid Haseeb

zahidhaseeb.wordpress.com

mikebounds's picture

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
 
 

UK Symantec Consultant in VCS, GCO, SF, VVR, VxAT on Solaris, AIX, HP-ux, Linux & Windows

If this post has answered your question then please click on "Mark as solution" link below

Zahid.Haseeb's picture

# 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
 

Any comment will be appreciated. Mark as Solution if your query is resolved
__________________
Thanks in Advance
Zahid Haseeb

zahidhaseeb.wordpress.com

mikebounds's picture

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

UK Symantec Consultant in VCS, GCO, SF, VVR, VxAT on Solaris, AIX, HP-ux, Linux & Windows

If this post has answered your question then please click on "Mark as solution" link below

SOLUTION
Zahid.Haseeb's picture

]# 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

Any comment will be appreciated. Mark as Solution if your query is resolved
__________________
Thanks in Advance
Zahid Haseeb

zahidhaseeb.wordpress.com

Zahid.Haseeb's picture

 The java GUI is a 32-bit program so will be looking in /usr/lib

Any way to know about he application is 32bit or 64bit ? (you may send the reply as private message as this current problem is solved)

Any comment will be appreciated. Mark as Solution if your query is resolved
__________________
Thanks in Advance
Zahid Haseeb

zahidhaseeb.wordpress.com

mikebounds's picture

The java GUI is intended for clients, not servers and I would say most clients are 32 bit and this client is java so ported between Windows and LInux and for Windows, even if you 64bit hardware, for clients you often have 32bit O/S, especially XP.  Also VCS is 32bit, it is only SF that is 64bit - you can see this in UNIX guides where you see System requirements for VCS.

Mike

UK Symantec Consultant in VCS, GCO, SF, VVR, VxAT on Solaris, AIX, HP-ux, Linux & Windows

If this post has answered your question then please click on "Mark as solution" link below

Zahid.Haseeb's picture

thanks Mike :)

Any comment will be appreciated. Mark as Solution if your query is resolved
__________________
Thanks in Advance
Zahid Haseeb

zahidhaseeb.wordpress.com

mikebounds's picture

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

UK Symantec Consultant in VCS, GCO, SF, VVR, VxAT on Solaris, AIX, HP-ux, Linux & Windows

If this post has answered your question then please click on "Mark as solution" link below

Zahid.Haseeb's picture

Doing the same I feel this may be not last :(  

... at this time I am missing Microsoft Windows just click next next to install java console :)

Any comment will be appreciated. Mark as Solution if your query is resolved
__________________
Thanks in Advance
Zahid Haseeb

zahidhaseeb.wordpress.com

Zahid.Haseeb's picture

Finally Done. Few below i686 libraries also required which I did installed. Now Thanks to all with plenty of help and bundle of thanks. Every post by every person helped my alot and need +thumb. But I dont understand whom marked as Solution as every post is helpful.

libXtst

libXi.so.6

libxcb.so.1

libXau.so.6

  • (Although I did install some packages with force and nodeps options)
  • Almost all packages I install of Centos 6.2 (My rhel is also 6.2)
  • All packages I got from the below Web Site:

          http://rpm.pbone.net

I also attached the packages for anyone's help as this tease me alot so these packages may saves anyones time.

AttachmentSize
packages.tar.gz 764.03 KB

Any comment will be appreciated. Mark as Solution if your query is resolved
__________________
Thanks in Advance
Zahid Haseeb

zahidhaseeb.wordpress.com

Gaurav Sangamnerkar's picture

Good to know its solved .... I would say solution would go to Mike, he the man for this solution .... sorry to got discontinued on this post in last two days ..

G

PS: If you are happy with the answer provided, please mark the post as solution. You can do so by clicking link "Mark as Solution" below the answer provided.
 

Zahid.Haseeb's picture

No problem gaurav. but still thanks for your kind comments and last suggestion. I am marking the mike post as solution.

 @ Mike ;)

Any comment will be appreciated. Mark as Solution if your query is resolved
__________________
Thanks in Advance
Zahid Haseeb

zahidhaseeb.wordpress.com