• 카테고리

    질문 & 답변
  • 세부 분야

    개발 도구

  • 해결 여부

    미해결

tomcat manager 로그인이 안됩니다.ㅠㅠ

21.06.29 13:59 작성 조회수 975

0

안녕하세요!강의 너무 잘 봤습니다!! 쉽게 설명해주셔서 실습도 무난하게 잘 따라했는데
마지막 실습에서 막히는데 바쁘시겠지만 한 번 봐주시면 너무 감사할것같습니다!
1. 실습을 하던중 톰캣 매니저에서 롤을 생성
2. cmd 에서 톰캣 서버 다시 시작
3. manager 접속해서 아이디와 비번을 치면 다시 로그인창이 뜹니다.
아이디와 비번 스펠링을 틀리게 입력한것도 아닌데ㅠㅠㅠ왜 안되는지 의문입니다.
<?xml version='1.0' encoding='cp949'?>
<!--
  Licensed to the Apache Software Foundation (ASF) under one or more
  contributor license agreements.  See the NOTICE file distributed with
  this work for additional information regarding copyright ownership.
  The ASF licenses this file to You under the Apache License, Version 2.0
  (the "License"); you may not use this file except in compliance with
  the License.  You may obtain a copy of the License at

      http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
-->
<tomcat-users xmlns="http://tomcat.apache.org/xml"
              xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
              xsi:schemaLocation="http://tomcat.apache.org/xml tomcat-users.xsd"
              version="1.0">

  <role rolename="manager"/>
  <role rolename="manager-gui"/>
  <role rolename="manager-script"/>
  <role rolename="manager-jmx"/>
  <role rolename="manager-status"/>
  <role rolename="admin"/>
  
  <user username="admin" password="tomcat" roles="manager,manager-gui,manager-script,manager-jmx,manager-status,admin"/>

</tomcat-users>

답변 1

답변을 작성해보세요.

0

안녕하세요, 이도원입니다.

올려주신 tomcat-users.xml 파일의 내용은 이상없어 보입니다. 파일 그대로 제 환경에 복사하여 실행했을 시에도 문제없이 잘 로그인 되었습니다. 

제가 사용했던 환경은 apache-tomcat-9.0.33이고, 올려주신 파일외에 제가 가지고 있던 파일도 공유해 드리겠습니다. 

<?xml version="1.0" encoding="UTF-8"?>
<tomcat-users xmlns="http://tomcat.apache.org/xml"
              xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
              xsi:schemaLocation="http://tomcat.apache.org/xml tomcat-users.xsd"
              version="1.0">

  <role rolename="manager"/>
  <role rolename="manager-gui"/>
  <role rolename="manager-script"/>
  <role rolename="manager-jmx"/>
  <role rolename="manager-status"/>
  <role rolename="admin"/>

  <user username="admin" password="tomcat" roles="manager,manager-gui,manager-script,manager-jmx,manager-status,admin"/>

</tomcat-users>

감사합니다.