http://xiehx163.blog.163.com/blog/static/6146679620096792135505/
Web development started with Oracle a few days ago. The machine is loaded with tomcat6.0 and oracle10g.
After the project is developed, when I start the Tomcat server and start the oracle10g corresponding service (because it is used orcle10g for data storage, it is necessary to open oracle10g corresponding service before use to start successfully), Access Htt://localhost : When the 8080/blog, strange phenomenon appeared.
A dialog box pops up:
Error message when browsing Web page 401 unauthorized indicates that you must have a correct user name and password to get access to the other page (unauthorized site), for example, when browsing some paid pages. I think I did not use the oralce10g when everything is normal, and now start the oracle10g, this situation, it should be that Oracle occupies the corresponding port caused.
Cause: Port 8080 is occupied by other services
This is a problem with systems that typically have Oracle installed, with the Oracle,oracle HTTP server taking up 8080 ports, causing conflicts between Oracle and Tomcat ports, or changing the Tomcat port or HTTP Server is stopped.
Solution:
1, change the port of Tomcat, this is relatively simple. The method is as follows:
(1), in the Tomcat installation root directory under the Word folder conf found file Server.xml
(2), open it with Notepad program, find this text:
<!--Define a non-ssl http/1.1 Connector on port 8080-
<connector port= "8080" protocol= "http/1.1"
connectiontimeout= "20000"
redirectport= "8443"/>
change the code in the connector port= "8080" in 8080 to 8088, restart Tomcat, use Http://localhost:8088/blog again access, everything is OK.
2. Disable Oracle Services. We found the ORACLESERVICEORCL in the "services" in "Computer Management", and it was OK to stop. This is not a perfect approach, however, because there are a lot of times when we need to use both Tomcat and Oracle two services.
Of course, the preferred option is to modify the Tomcat port number, because Oracle will not start up after the Oracle service is stopped.