---
title: "Tomcat中不能登入Administration和Manager问题"
author: "HJXia"
date: "2007-11-29T22:25:51Z"
tags: []
categories: ["企业架构"]
slug: "tomcat-administration-manager"
draft: false
lastmod: "2007-11-29T22:25:51Z"
id: 144945
url: "https://hjxia.iteye.com/blog/144945"
---

今天刚下了一个Tomcat5.5.25,登入Tomcat时报Access to the requested resource has been denied这个问题。原来需要在/conf/tomcat-users.xml中添加
<role rolename="admin"/>
<role rolename="manager"/>
<user username="admin" password="" roles="admin,manager"/>
再重启下tomcat用这个帐号登入就可以了。可是为什么要原来的配置中的username进不去呢？