2007년 05월 03일
[Netbeans] 넷빈즈 너 이자식!!! 시키지도 않은 짓을!!!
작성자 : 김민석 ( lemonfish at gmail dot com )
요즘은 웹 개발하면서 넷빈즈라는 녀석과 친하게 지내는데, 보통 번들로 들어있는 톰캣은 잘 안쓰다가 다른 버전 받아서 등록하기가 귀찮아 써보게 됐다. 처음에 컨텍스트를 보기 위해서 넷빈즈의 Runtime Window 에서 해당 노드를 클릭했더니 manager 역할의 사용자명과 비번을 요구한다. 녀석 ㅋㅋ 바리 netbeans 설치 경로의 enterprise 디렉토리를 찾아가서 설치된 톰캣의 conf 밑의 tomcat-users.xml 을 수정해 줬다. root 라는 사용자명으로 manager, admin, 등등의 권한을 It would not be safe to ship application servers and web servers with default settings that allowed anyone on the Internet to execute them on your server. Therefore, servers are shipped with the requirement that anyone who attempts to use them must authenticate themselves, using a username and password with the appropriate role associated with them. For example, the Tomcat Web Server uses the Tomcat Manager to run web applications. To authenticate yourself when you run your web application, JSP file, or servlet, you need a username and password for a user with the "manager" role. This username and password are defined in the tomcat-users.xml file that is in your user directory.
모두 부여한뒤. tomcat 을 리스타트~ 하하핫. 잘되겠지 라는 확신을 가지고 톰캣 노드를 클릭했더니. 또 권한인증을 요구한다. 그러기를 몇차례~ 이자식이 미친건가? 라는 짜증이 슬슬나면서 버근가? 하는 생각까지 들기시작했다. 한 10여분을 삽질한 끝에 인증 대화상자의 HELP 버튼을 무심코 클릭했더니 이런 문구가 뜬다."Authenticating the Server
You can only use the usernames and passwords that are defined in the IDE user directory's tomcat-users.xml file, and not those that are in the IDE installation directory's tomcat-users.xml file.
During installation, the IDE generates a user called ide for use with the bundled Tomcat Web Server. This user is assigned the "manager" role and is created in your user directory's tomcat-users.xml file.
To set the username and password for the Tomcat Manager:
- In your system, go to Tomcat's base directory and then to its \conf subfolder.
If you don't know where Tomcat's base directory is, right-click the Tomcat Web Server instance node in the Runtime window and select Properties. In the Properties dialog box, the Base Directory property points to the base directory. - Open the tomcat-users.xml file and make a note of the password that is defined for the ide username.
- Right-click the Tomcat Web Server instance node in the Runtime window and select Properties. In the Properties dialog box, type the username and password.
| If the username and password have not been specified, a dialog box appears when you run a web application, JSP file, or servlet. If you specify the username and password in this dialog box, they are not saved. The username and password are only saved if you define them in the Tomcat Web Server instance's Properties dialog box. " |
무슨 말인고 하니. catalina base 라는 환경변수로 지정된 위치의 /conf 밑의 tomcat-users.xml 을 수정하라는 말인데.
새롭게 권한을 부여하거나 사용자를 추가하는건 안되고, 미리 ide 라는 이름으로 admin, manager 권한을 부여해 놓았으니, 패스워트만 추가하라는 말이다. 혹시나 해서 다른 사용자등록을 해봤더니 번들 톰캣을 켤때마다 tomcat-users.xml 파일이 새로 만들어져서 추가가 안된다.
ㅡ_ㅡ;; 이자식 시키지도 않은 짓을 하는구나. 미워잉~~~
이 글과 관련있는 글을 자동검색한 결과입니다 [?]
- JSP 개발환경 구축 이클립스 3.2 + WTP 1.5 + 톰캣 5.5.17 by -A2-
- TOMCAT의 포트 바꾸기 by 제갈장비
- tomcat policy by 眞紅
- RedHat 7.2에서 TOMCAT 설치하기 by 제갈장비
- 톰켓(tomcat) 디렉토리 보기 설정 by Tenny
# by | 2007/05/03 21:34 | 삽질 | 트랙백 | 덧글(1)





☞ 내 이글루에 이 글과 관련된 글 쓰기 (트랙백 보내기) [도움말]
그동안 맘고생만 했네요;;