VERITAS Volume Manager Storage Administrator (VMSA) or VERITAS Enterprise Administrator (VEA) GUI fails to start if DISPLAY environment variable is incorrect.

Article:TECH21418  |  Created: 2002-01-30  |  Updated: 2004-01-21  |  Article URL http://www.symantec.com/docs/TECH21418
Article Type
Technical Solution

Product(s)

Environment

Issue



VERITAS Volume Manager Storage Administrator (VMSA) or VERITAS Enterprise Administrator (VEA) GUI fails to start if DISPLAY environment variable is incorrect.

Error



java.lang.InternalError: Can't connect to X11 window server using 'losad069' as the value of the DISPLAY variable.

Solution



The following error messages are reported if the DISPLAY environment variable is incorrect.

Trying to start VMSA will report:
java.lang.InternalError: Can't connect to X11 window server using 'losad069' as the value of the DISPLAY variable.

Trying to start VEA will report:
Problem creating javax.swing.plaf.metal.MetalLookAndFeel with method getUserTextFont and args { : java.lang.reflect.InvocationTargetException

Make sure the DISPLAY environment variable is set correctly. The DISPLAY variable needs to be the host name of the server where the X application will be displayed.
In Bourne or shell (sh or ksh), the command is:

# DISPLAY=losad069:0.0
Where losad069 is the host name of the system where the GUI is being displayed. The IP address for the server can also be used instead of the host name.
# export DISPLAY

In C shell (csh or tcsh), the command is:
# setenv DISPLAY losad069:0.0

The setting can be checked using the following command:
# echo $DISPLAY
losad069:0.0


If the DISPLAY variable is already set correctly but VMSA or VEA still cannot connect to the server, then make sure that the client that is running X application (VMSA or VEA) has access to the server. Running "xhost +" on the server will give access to the server from all clients. Refer to the xhost(1) man page for more information.




Legacy ID



249546


Article URL http://www.symantec.com/docs/TECH21418


Terms of use for this information are found in Legal Notices