Access localhost:8080 hint: server localhost at XDB requires user name and password (reference)

Source: Internet
Author: User
Tags tomcat server

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.