본문 바로가기

Eclipse/WTP

WTP에서 Run On Server 마법사 중에서...

(이미지 출처: http://www.okjsp.pe.kr/seq/65492)

Run As > Run On Server를 실행하면 마지막에 이런 페이지가 나옵니다.
말 그대로 해석하자면, 체크박스를 체크하게 되면, scheduler 웹 모듈에 대해서 context root를 업데이트 하겠다.

정확히 어떤 부분을 업데이트를 한다는 의미일까요? 아래의 링크를 따라가면 약간의 설명이 있긴 합니다.


For now, I've found the following workaround, should you decide it is worth the trouble to have a default webapp:

1. Leaving the context-root setting in the project as is (i.e. don't try to set it to "/"), deploy the project to the Tomcat server.

2. Double-click on the Tomcat server in the Servers view to open the configuration editor.

3. Switch to the Modules page of the editor and select the web module for the project.

4. Click the "Edit..." button, clear the Path field, and click OK.

5. Save the Tomcat configuration and close the editor.

6. Right-click on the project in a navigator or a resource in the web module and select Run As -> Run on Server.

7. Select the server to which the project was previously added and click Next.

8. Click Next again. Uncheck the "Update context root for Web module..." checkbox and click Finish. This will add a setting that prevents the change made in step 4 from being overwritten by the project's context-root setting. The browser should appear with the correct default webapp appropriate URL.

8번의 내용을 해석하면, 체크를 해제하면 4번 과정에서 context root 설정을 한 것이 덮어 써지지 않도록 한답니다.

그럼, 만약 체크를 하면 어떤 내용이 어떻게 덮어 써질지 궁금하네요.