用tomcat登陆系统时被否认的问题,能解决决对是高手!!!
我在用正确的用户名与密码登陆系统后页面报出的如下语句:
Access to the specified resource (Access is denied.) has been forbidden
这是怎么回事?
在tomcate的tomcat-user.xml中是这样配置的:
<?xml version= '1.0 ' encoding= 'utf-8 '?>
<tomcat-users>
<role rolename= "tomcat "/>
<role rolename= "role1 "/>
<role rolename= "manager "/>
<role rolename= "admin "/>
<user username= "tomcat " password= "tomcat " roles= "tomcat "/>
<user username= "role1 " password= "tomcat " roles= "role1 "/>
<user username= "both " password= "tomcat " roles= "tomcat,role1 "/>
<user username= "admin " password= " " roles= "admin,manager "/>
</tomcat-users>
应该没什么问题的吧?那问题出在哪呢?
------解决方案--------------------用的哪个用户名和密码,roles是什么?
------解决方案--------------------你用的是哪个版本?不行重装
------解决方案--------------------估计是版本问题吧,看一下eclipse和tomcat的版本是否符合servlet规范