- Arawn's Dev Blog
- Outsider's Dev Story
- Toby's Epril
- Benelog
- NHN 개발자 블로그
- SK 플래닛 기술 블로그
- OLC CENTER
- 소프트웨어 경영/공학 블로그
- 모바일 컨버전스
- KOSR - Korea Operating System …
- 넥스트리 블로그
- 리버스코어 ReverseCore
- SLiPP
- 개발자를 위하여... (Nextree 임병인 수석)
- "트위터 부트스트랩: 디자이너도 놀라워할 매끈하고 직관…
- Learning English - The English…
- real-english.com
- 'DataScience/Deep Learning' 카테…
- Deep Learning Summer School, M…
- Deep Learning Courses
민서네집
[이클립스] Server - 실행 시 다른 프로젝트 참조하는 법 본문
Technical details of serve modules without publishing in Eclipse WTP and Tomcat?
[발췌]
The idea is to serve a web application directly from the scattered directory structure of the development workspace, without packaging modules into JARs which then end up in WEB-INF/lib
in a WAR.
The main benefits are:
- You don't need to build archives.
- When you change a resource in your workspace, the change is reflected in the running webapp without redeploying the webapp or restarting the server.
With Servlet 3.0, web resources may also be bundled in library JARs in META-INF/resources
, so classes and resources may come from multiple workspace directories.
Tomcat 7.0 supports a VirtualWebappLoader
and a VirtualDirContext
to configure a web application based on a collection of scattered resource and class directories.
To serve your web app directly from your Eclipse workspace, WTP generates a suitable Tomcat configuration matching your project structure in $WORKSPACE/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/conf/server.xml
For some reason, WTP does not directly use the Tomcat loader and context implementations but has its own WtpDirContext
and WtpWebappLoader
which are slightly different but similar. (I believe this approach is older than the current solution in Tomcat. There is some special logic for TLD scanning - I'm not sure if this is still required with the latest Tomcat versions.) These helper classesare contained in the org.eclipse.jst.server.tomcat.runtime.70.loader.jar
you noticed.
Without Serve modules without publishing, when you change a web resource in META-INF/resources
in a library module, this change will not be directly visible in the running application after reloading the current page in the browser.
'Java' 카테고리의 다른 글
[웹] 로그아웃 후 뒤로 가기 방지 (0) | 2017.10.22 |
---|---|
이클립스 추천 플러그인 (0) | 2017.09.20 |
[이클립스] Server - publishing 없이 서버 구동하기 (0) | 2017.08.25 |
eclipse에서 git으로 관리되는 새 프로젝트 생성 / eclipse 와 github 연동 (0) | 2016.08.17 |
[eclipse tip] static import 쉽게 하기 (0) | 2016.04.15 |