ittechlab
asked on
Tomcat issue
I am trying to access tomcat and i don't see any page shows up
http://192.168.2.18:8080
i also did check the firewall and i did rule the firewall issue.
Redhat 7
[root@web01 ~]# netstat -pant
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:8009 0.0.0.0:* LISTEN 1614/java
tcp 0 0 192.168.2.18:8080 0.0.0.0:* LISTEN 1614/java
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 938/sshd
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 1197/master
tcp 0 0 127.0.0.1:8005 0.0.0.0:* LISTEN 1614/java
tcp 0 0 127.0.0.1:8009 127.0.0.1:33358 TIME_WAIT -
tcp 0 64 192.168.2.18:22 192.168.2.10:62364 ESTABLISHED 1297/sshd: root@pts
tcp 0 0 127.0.0.1:8080 127.0.0.1:59988 TIME_WAIT -
tcp 0 0 192.168.2.18:22 192.168.2.10:62356 ESTABLISHED 1251/sshd: root@not
http://192.168.2.18:8080
i also did check the firewall and i did rule the firewall issue.
Redhat 7
[root@web01 ~]# netstat -pant
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:8009 0.0.0.0:* LISTEN 1614/java
tcp 0 0 192.168.2.18:8080 0.0.0.0:* LISTEN 1614/java
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 938/sshd
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 1197/master
tcp 0 0 127.0.0.1:8005 0.0.0.0:* LISTEN 1614/java
tcp 0 0 127.0.0.1:8009 127.0.0.1:33358 TIME_WAIT -
tcp 0 64 192.168.2.18:22 192.168.2.10:62364 ESTABLISHED 1297/sshd: root@pts
tcp 0 0 127.0.0.1:8080 127.0.0.1:59988 TIME_WAIT -
tcp 0 0 192.168.2.18:22 192.168.2.10:62356 ESTABLISHED 1251/sshd: root@not
ASKER
same issue
Might be useful to attach 'conn.log' after
wget -d -O - http://192.168.2.18:8080/manager/html 2>&1 | tee conn.log
ASKER
[root@web01 ~]# wget -d -O - http://192.168.2.18:8080/manager/html 2>&1 | tee conn.log
Setting --output-document (outputdocument) to -
DEBUG output created by Wget 1.14 on linux-gnu.
URI encoding = ‘UTF-8’
Converted file name 'html' (UTF-8) -> 'html' (UTF-8)
--2018-04-07 11:36:12-- http://192.168.2.18:8080/manager/html
Connecting to 192.168.2.18:8080... connected.
Created socket 3.
Releasing 0x0000000000968880 (new refcount 0).
Deleting unused 0x0000000000968880.
---request begin---
GET /manager/html HTTP/1.1
User-Agent: Wget/1.14 (linux-gnu)
Accept: */*
Host: 192.168.2.18:8080
Connection: Keep-Alive
---request end---
HTTP request sent, awaiting response...
---response begin---
HTTP/1.1 404 Not Found
Server: Apache-Coyote/1.1
Content-Length: 0
Date: Sat, 07 Apr 2018 15:36:12 GMT
---response end---
404 Not Found
Registered socket 3 for persistent reuse.
] done.
2018-04-07 11:36:12 ERROR 404: Not Found.
Setting --output-document (outputdocument) to -
DEBUG output created by Wget 1.14 on linux-gnu.
URI encoding = ‘UTF-8’
Converted file name 'html' (UTF-8) -> 'html' (UTF-8)
--2018-04-07 11:36:12-- http://192.168.2.18:8080/manager/html
Connecting to 192.168.2.18:8080... connected.
Created socket 3.
Releasing 0x0000000000968880 (new refcount 0).
Deleting unused 0x0000000000968880.
---request begin---
GET /manager/html HTTP/1.1
User-Agent: Wget/1.14 (linux-gnu)
Accept: */*
Host: 192.168.2.18:8080
Connection: Keep-Alive
---request end---
HTTP request sent, awaiting response...
---response begin---
HTTP/1.1 404 Not Found
Server: Apache-Coyote/1.1
Content-Length: 0
Date: Sat, 07 Apr 2018 15:36:12 GMT
---response end---
404 Not Found
Registered socket 3 for persistent reuse.
] done.
2018-04-07 11:36:12 ERROR 404: Not Found.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Hi,
May i know from which machine you accessing tomcat server,
The netstat result shows the port 8080 is opened only for 192.168.2.18, which is the server itself.
try to change the bind address to 0.0.0.0/0 . The it will work.
For further verification just telnet 192.168.2.18 on port 8080
telnet 192.168.2.18 8080
the reult will be connection refused. In order to make it work as explained before change bind address in tomcat configuration.
Hope this will help you to solve the issue
0 192.168.2.18:8080 0.0.0.0:* LISTEN 1614/java
May i know from which machine you accessing tomcat server,
The netstat result shows the port 8080 is opened only for 192.168.2.18, which is the server itself.
try to change the bind address to 0.0.0.0/0 . The it will work.
For further verification just telnet 192.168.2.18 on port 8080
telnet 192.168.2.18 8080
the reult will be connection refused. In order to make it work as explained before change bind address in tomcat configuration.
Hope this will help you to solve the issue
0 192.168.2.18:8080 0.0.0.0:* LISTEN 1614/java
ASKER
I had to reinstall.
ASKER
I had to reinstall.
http://192.168.2.18:8080/manager/html
for access to the management interface