TOMCAT 403 Error!!!

Source: Internet
Author: User

I've never noticed this before. I've been using Eclipse to do the web today. MyEclipse haha actually makes me tangle for half a day

After configuring MyEclipse and Tomcat I used the (MyEclipse9.0 and Tomcat7.02) to prepare to run the project to deploy Tomcat and thought in the browser input http://localhost:8080 And then it's easy to go all the way ext. It was 430 when I entered the cute panda page and drove to Manager page.

But it's a little sudden, but it's a bit of a surprise. This makes me a little overwhelmed, read the English because I am not very good English is also a rookie level so know the level is not enough, to new configuration Tomcat conf directory next tomcat-users.xml file, But I do not know how to do it after all did not configure Oh so to find Google Baidu wow a lot of ah, the original encounter wrong is just me. It makes me feel very relieved ... Ha ha

Find a lot of configuration changed a lot but nothing ...

Finally ended the problem with this: I tomcat-users.xml the initial value

<user name= "main" password= "Admain" roles= "Main,manager"/>

Replaced by:

<user name= "Manager-gui" password= "Admain" roles= "Manager-gui,manager"/> <--! notice the Manager-gui here. Is the username that you entered when you started to install Tomcat this must and Tomcat under the webapps/manager/web-inf/web.xml inside the user name corresponding to because I did not understand before there is no corresponding to the cause of these errors-->

I don't know what the previous Tomcat version was like, but I used the 7.0 I did the following summary:

After installing MyEclipse and Tomcat: There's a lot of information that's automatically configured inside. Of course, I'm on my version, and I don't know what else to say.

At this time you only need to modify the above corresponding user name, if necessary you can also modify the password.

Through all kinds of mistakes, I suddenly feel that don't say Java this macro concept even the web is so broad and profound it seems to learn the whole life is not finished.

It's a 403 mistake. I found a lot of solutions on the Internet, but there are different mistakes, so you know how great it is.

Want to encounter this kind of mistake friend if the other way to solve the 403 also hope to leave a pen also let me learn to learn. Grateful ...

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.