我在学习《轻量级J2EE企业应用实战》的时候遇到个问题,为什么我无法登陆tomcat的控制台啊,我的tomcat版本为7.0,我的配置文件如下:
  <role rolename="manager-gui"/>
  <role rolename="admin-gui"/>
  <user username="tomcat" password="tomcat" roles="manager-gui"/>
  <user username="tomcat" password="tomcat" roles="admin-gui"/>
求大神帮忙啊

解决方案 »

  1.   

    是否能够打开http://localhost:8080
    如果能,用tomcat用户应该可以访问了.如果打不开http://localhost:8080,那看下tomcat是否正确启动;或者端口是否改成了其它值
      

  2.   


      <role rolename="manager-gui"/>
      <role rolename="admin-gui"/>
      <user username="tomcat" password="tomcat" roles="manager-gui,admin-gui"/>试试这样,你登录不上去,提示你什么东西