LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-06-2012, 01:20 AM   #1
figure20012
Member
 
Registered: Apr 2012
Posts: 75

Rep: Reputation: Disabled
installing weblogic on CentOS


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:159)
at java.awt.Window.<init>(Window.java:432)
at java.awt.Frame.<init>(Frame.java:403)
at java.awt.Frame.<init>(Frame.java:368)
at javax.swing.JFrame.<init>(JFrame.java:158)
at com.bea.quickstart.gui.QuickStartFrame.<init>(QuickStartFrame.java:24)
at com.bea.quickstart.QuickStartController.display(QuickStartController.java:128)
at com.bea.quickstart.QuickStartController.displayQuickStart(QuickStartController.java:422)
at com.bea.quickstart.QuickStartController.main(QuickStartController.java:444)

No X11 DISPLAY variable was set, but this program performed an operation which requires it.


I dont have graphical interface
i am connecting to the server through ssh.
Can anyone please tell me what should i do for weblogic to work.
thanks
 
Old 08-06-2012, 06:32 AM   #2
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
You need to redirect X via ssh to the machine you are connecting from, there are several steps to make this work:

In /etc/ssh/sshd_config:
Code:
X11Fowarding yes
Restart sshd if you had to change the file above:
Code:
service sshd restart
Make sure the xauth package is installed:
Code:
rpm -q xauth || yum -y install xauth
The next part depends on what OS you are connecting from, if it's Windows:

- Download Xming from sourceforge, install it and run it
- Download PuTTY and unzip it
- Open PuTTY, in the settings on the left hand side go to Connection >> SSH >> X11 and check "Enable X11 forwarding", type localhost:0 in the "X display location" box.
- click on Session at the top left, then click on Default settings on the right hand side, then click the save button.
- connect to the server and run your application again.

If you're in linux (or Mac?), then just run:
Code:
ssh -X user@host
 
1 members found this post helpful.
Old 08-07-2012, 02:25 AM   #3
figure20012
Member
 
Registered: Apr 2012
Posts: 75

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by kbp View Post
You need to redirect X via ssh to the machine you are connecting from, there are several steps to make this work:

In /etc/ssh/sshd_config:
Code:
X11Fowarding yes
Restart sshd if you had to change the file above:
Code:
service sshd restart
Make sure the xauth package is installed:
Code:
rpm -q xauth || yum -y install xauth
The next part depends on what OS you are connecting from, if it's Windows:

- Download Xming from sourceforge, install it and run it
- Download PuTTY and unzip it
- Open PuTTY, in the settings on the left hand side go to Connection >> SSH >> X11 and check "Enable X11 forwarding", type localhost:0 in the "X display location" box.
- click on Session at the top left, then click on Default settings on the right hand side, then click the save button.
- connect to the server and run your application again.

If you're in linux (or Mac?), then just run:
Code:
ssh -X user@host

thnx for helping kbp
 
  


Reply

Tags
java


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
WebLogic server brownie_cookie Linux - Newbie 18 05-12-2011 10:47 AM
Error while installing Weblogic on Redhat Linux mudasir.kabir Linux - Software 1 12-06-2007 08:37 AM
Problem-installing Weblogic 7.0 in Enterprise 3.0 sathakarni Linux - Newbie 2 07-10-2006 05:02 AM
Problem while installing WebLogic Portal on Linux mohan_mohan Linux - Software 0 11-15-2004 08:41 AM
Problem installing weblogic on linux system R0ss_here Linux - Software 1 11-15-2004 08:39 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:29 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration