LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 11-12-2010, 03:01 AM   #1
albertwt
Member
 
Registered: Aug 2010
Posts: 50

Rep: Reputation: 1
Question Tomcat6 is inaccessible after the install ?


Hi Everyone,

Any idea why i can't access the Tomcat6 default website after i do the install ?

Code:
ERROR
The requested URL could not be retrieved
While trying to retrieve the URL: http://10.2.3.189/

The following error was encountered:
Connection to 10.2.3.189 Failed
The system returned:
    (111) Connection refused
Code:
Setting up authbind (1.2.0build3) ...

root@SSV:~# /etc/init.d/tomcat6 restart
 * Stopping Tomcat servlet engine tomcat6                           [ OK ]
 * Starting Tomcat servlet engine tomcat6       Using CATALINA_BASE:   /var/lib/tomcat6
Using CATALINA_HOME:   /usr/share/tomcat6
Using CATALINA_TMPDIR: /tmp/tomcat6-tmp
Using JRE_HOME:        /usr/lib/jvm/java-6-sun
Using CLASSPATH:       /usr/share/tomcat6/bin/bootstrap.jar
                                                                    [ OK ]
root@SSV:~# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:50:56:89:1b:30
          inet addr:10.2.3.189  Bcast:10.2.3.255  Mask:255.255.254.0
          inet6 addr: fe80::250:56ff:fe89:1b30/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:9034478 errors:0 dropped:0 overruns:0 frame:0
          TX packets:137770 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:262700983 (262.7 MB)  TX bytes:11947055 (11.9 MB)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:20 errors:0 dropped:0 overruns:0 frame:0
          TX packets:20 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:1344 (1.3 KB)  TX bytes:1344 (1.3 KB)

root@SSV:~# netstat -tulpn
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      966/sshd
tcp6       0      0 :::8080                 :::*                    LISTEN      8231/java
tcp6       0      0 :::22                   :::*                    LISTEN      966/sshd
tcp6       0      0 127.0.0.1:8005          :::*                    LISTEN      8231/java
udp        0      0 0.0.0.0:5353            0.0.0.0:*                           7210/avahi-daemon:
udp        0      0 0.0.0.0:59756           0.0.0.0:*                           7210/avahi-daemon:
udp        0      0 0.0.0.0:68              0.0.0.0:*                           949/dhclient3

root@SSV:~#
any kind of help would be greatly appreciated.

Thanks,

Albert

Last edited by albertwt; 11-12-2010 at 03:02 AM.
 
Old 11-12-2010, 03:15 AM   #2
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,937

Rep: Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330
Quote:
While trying to retrieve the URL: http://10.2.3.189/
Are you sure tomcat is listening on port 80 and not on the default 8080?
Try: http://10.2.3.189:8080 and see if it works

Regards
 
1 members found this post helpful.
Old 11-12-2010, 03:16 AM   #3
albertwt
Member
 
Registered: Aug 2010
Posts: 50

Original Poster
Rep: Reputation: 1
thanks man, port 8080 is fine i can see the It works! message.
but how to make it run on port 80 ?
 
Old 11-12-2010, 03:27 AM   #4
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,937

Rep: Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330
You should open server.xml, after making a backup first, look for "Connector port="8080" protocol="HTTP/1.1" and change it to be
Code:
Connector port="80" protocol="HTTP/1.1"
Then restart tomcat.

Are you sure you're running tomcat? Because the "It Works" message is the default page for apache, while the tomcat default shows much more info.
 
1 members found this post helpful.
Old 11-12-2010, 03:42 AM   #5
albertwt
Member
 
Registered: Aug 2010
Posts: 50

Original Poster
Rep: Reputation: 1
thanks man that is just what i need it :-)

here's what I can see:

Quote:
It works !

If you're seeing this page via a web browser, it means you've setup Tomcat successfully. Congratulations!

This is the default Tomcat home page. It can be found on the local filesystem at: /var/lib/tomcat6/webapps/ROOT/index.html

Tomcat6 veterans might be pleased to learn that this system instance of Tomcat is installed with CATALINA_HOME in /usr/share/tomcat6 and CATALINA_BASE in /var/lib/tomcat6, following the rules from /usr/share/doc/tomcat6-common/RUNNING.txt.gz.

You might consider installing the following packages, if you haven't already done so:

tomcat6-docs: This package installs a web application that allows to browse the Tomcat 6 documentation locally. Once installed, you can access it by clicking here.

tomcat6-examples: This package installs a web application that allows to access the Tomcat 6 Servlet and JSP examples. Once installed, you can access it by clicking here.

tomcat6-admin: This package installs two web applications that can help managing this Tomcat instance. Once installed, you can access the manager webapp and the host-manager webapp.

NOTE: For security reasons, using the manager webapp is restricted to users with role "manager". The host-manager webapp is restricted to users with role "admin". Users are defined in /etc/tomcat6/tomcat-users.xml.
 
Old 11-12-2010, 03:45 AM   #6
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,937

Rep: Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330
Cool!!

You can mark the thread "Solved" using the "Thread Tools" on top of the page.

Regards
 
  


Reply

Tags
apt-get, tomcat, ubuntu


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
Apache2 - Tomcat6 digitolx Linux - Server 2 06-01-2010 08:22 AM
Tomcat6 error srinivasmiriyalu Solaris / OpenSolaris 4 08-07-2009 05:23 AM
tomcat6 install access to web manager and web admin problem speedsrfr Linux - Server 7 06-24-2009 08:13 AM
Install tomcat6.0.18 JAVA_HOME/JRE_HOME problem gogoabc Linux - Software 2 11-13-2008 02:32 PM
Apache2.24-Tomcat6.0.1- JK 1.2.21 how to ?? Idrisk Linux - Software 1 03-08-2007 02:04 AM


All times are GMT -5. The time now is 05:26 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration