LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 03-23-2009, 03:20 AM   #1
GwenE
LQ Newbie
 
Registered: Mar 2009
Posts: 6

Rep: Reputation: 0
Deploying web based "information center"- 'Fail to connect Error'


I want to deploy an Eclipse standalone "InfoCenter". I don't use Eclipse, but I am a technical writer with some rudimentary Linux experience.

When I researched nice, slick and simple online Help systems that follow standards, the Eclipse system stood out. In fact I even found an IBM site where I could download, install and launch this system: http://www.alphaworks.ibm.com/tech/iehs

The help system code is a collection of Java Server Pages and servlets, along with an embedded Web application server, a search engine, and the Eclipse run-time environment.

I obtained a 'cloud hosted' Linux server--RHEL 5.1 64 bit, with Apache 2.2.
I can SSH into the 'box' as root. I have installed this 'InfoCenter server' in:
/usr/bin/ibm_help

I launched the InfoCenter server, editing the start command (within a shell script) to use port 8081.

I believe the InfoCenter server is running because I can see 2 java processes that weren't there before I launched it... and see it listening to port 8081:

command line output below
Code:
# ps -a
  PID TTY          TIME CMD
17133 pts/1    00:00:00 ps
17943 pts/0    00:00:00 bash
17944 pts/0    00:00:00 java
17955 pts/0    00:00:01 java


# /usr/sbin/lsof -i :8081
COMMAND   PID USER   FD   TYPE DEVICE SIZE NODE NAME
java    17955 root   33u  IPv6 262880       TCP *:tproxy (LISTEN)


# netstat -nlp | grep ::8081
tcp        0      0 :::8081         :::*      LISTEN      17955/java
However, when I go to http://mysite_ipaddress:8081 in Firefox it churns for a bit then displays a
'Failed To connect' Error: “Though the site seems valid, the browser was unable to establish a connection.”

In Opera it gives: 'Error! Connection closed by remote server'

Being so new to this whole thing... I also tried a few more things to no avail:
----------
A more specific URL (from the instructions I have read I *think* this should at least do something) but got the same result.
http://mysite_ipaddress:8081/eclipse/plugins/org.eclipse.help.webapp_3.3.100.v20080528/index.jsp

To try to rule out incompatibility (the IBM package download recommends Linux 32 not 64), I installed a different java runtime for this system
(jre-6u12-linux-i586.bin) and ran the InfoCenter using that java instead of the IBM-included jre with the 'InfoCenter download." Same results (as expected).

My linux cloud hosted 'server' does work-- it displays the apache default page if I go to http:// mysite_ipaddress (no port reference) or if I specify port 80. It's just that most other port specifications display the 'Fail to Connect Error'
-----------
Thanks for any suggestions you can provide
 
Old 03-23-2009, 05:16 PM   #2
GwenE
LQ Newbie
 
Registered: Mar 2009
Posts: 6

Original Poster
Rep: Reputation: 0
Smile Needed to Edit "iptables" to permit Connection

Hi there. I got it to work. Little did I understand the Linux Firewall issues.... but I'm getting there.

Simply edit the /etc/sysconfig/iptables file, and add in the following line somewhere before the line that says "COMMIT."

Code:
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 8081 -j ACCEPT
After saving the edited file, close it and restart the firewall:

# /etc/init.d/iptables restart


This is explained well at http://www.cyberciti.biz/faq/linux-o...ll-port-22-23/

The thing that confused me as a newbie was the title of the above page:
"How to: Allow telnet and ssh through iptables under Linux"

I knew I didn't need a new telnet or ssh connection, but they all fall under tcp connections I suppose. So it's all done similarly... so my connection problem is resolved and the IBM version of the Eclipse standalone Information Center looks great! To link to it on your system after you install it: http://yoursite_ipnumber/help/index.jsp
 
  


Reply

Tags
eclipse, firewall


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
Perl/Php codes for deploying apps in remote web server pudhiyavan Programming 0 07-11-2007 06:31 AM
MNF2 : unable to connect to Web Interface MandrakeSecurity + X server install error syxys Mandriva 3 12-30-2004 12:03 PM
deploying a web app poeta_boy Programming 5 12-09-2004 09:50 AM
Web Based Message center COMPROMISED by Linux???!? KaptinKABOOM Linux - Software 4 07-17-2004 08:20 PM
from a gui-based s/w to a web-based app h/w Programming 0 04-13-2004 02:07 PM


All times are GMT -5. The time now is 05:15 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration