When you start Tomcat, you are prompted to use 8080 ports, and then find the following findings:
A 8080 port-occupied error occurs when you install Oracle with Tomcat, JBoss, and other 8080-port-consuming servers on a single machine
First, check the use of port 8080
[Root@olivenan root]# lsof-i: 8080-n
COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME
Tnslsnr 1031 Oracle 12u IPV4 2013 TCP *:webcache (LISTEN)
[Root@olivenan root]# lsof-i Tcp:8080-n
COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME
Tnslsnr 1031 Oracle 12u IPV4 2013 TCP *:webcache (LISTEN)
8080 ports were found to be used by Oracle, noting the use of lsof command parameters.
[Root@olivenan root]# lsof-i Udp:8080-n
[Root@olivenan root]# lsof-i|grep 8080
[Root@olivenan root]# netstat-tln|grep 8080
TCP 0 0 0.0.0.0:8080 0.0.0.0:* LISTEN
[Root@olivenan root]#
Second, the search for solutions
Workaround One,
Will *.dispatchers= ' (protocol=tcp) (SERVICE=ORCLXDB) '
Modified to #*.dispatchers= ' (protocol=tcp) (SERVICE=ORCLXDB) '
[Oracle@olivenan dbs]$ sqlplus "/as sysdba"
Sql*plus:release 9.2.0.4.0-production on Fri June 6 10:37:32 2007
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
Connected to:
Oracle9i Enterprise Edition Release 9.2.0.4.0-production
With the partitioning, OLAP and Oracle Data Mining options
Jserver Release 9.2.0.4.0-production
sql> shutdown Immediate
Database closed.
Database dismounted.
ORACLE instance shut down.
Sql> create SPFile from Pfile;
File created.
Sql> Startup
ORACLE instance started.
Total System Global area 236000356 bytes
Fixed Size 451684 bytes
Variable Size 201326592 bytes
Database buffers 33554432 bytes
Redo buffers 667648 bytes
Database mounted.
Database opened.
Sql> exit
[Root@olivenan root]# lsof-i: 8080-n
[Root@olivenan Root]
Result port 8080 stopped being occupied