IBM WebSphere Liberty Profile(WLP)์ ๋ก์ปฌ ๊ฐ๋ฐ ํ๊ฒฝ์ธ Eclipse์ ์ฐ๋ํ์ฌ ์ ํ๋ฆฌ์ผ์ด์ ๊ฐ๋ฐ, ๋ฐฐํฌ, ๋๋ฒ๊น ํ๊ฒฝ์ ๊ตฌ์ถํ๋ ์ ์ฐจ๋ฅผ ์ ๋ฆฌํฉ๋๋ค. IBM WebSphere Developer Tools(WDT) ํ๋ฌ๊ทธ์ธ ์ค์น ๋ฐ ์๋ฒ ๋ฐํ์ ๊ตฌ์ฑ ๊ณผ์ ์ ํฌํจํฉ๋๋ค.
Test Environment
- OS: Windows 10
- IDE: Eclipse IDE for Enterprise Java Developers (2020-06 ์ด์ ๊ถ์ฅ)
- Middleware: WebSphere Liberty Profile (Kernel or Core)
1. ์ฌ์ ์ค๋น (Prerequisites)
Liberty ๊ฐ๋ฐ ํ๊ฒฝ์ ๊ตฌ์ถํ๊ธฐ ์ํด์๋ Java SDK์ Eclipse๊ฐ ๋ฏธ๋ฆฌ ์ค์น๋์ด ์์ด์ผ ํฉ๋๋ค.
- JDK: 1.8 ์ด์ ์ค์น ๋ฐ ํ๊ฒฝ ๋ณ์(JAVA_HOME) ์ค์ .
- Eclipse: 'Eclipse IDE for Enterprise Java and Web Developers' ํจํค์ง ์ฌ์ฉ ๊ถ์ฅ.
2. WebSphere Developer Tools (WDT) ํ๋ฌ๊ทธ์ธ ์ค์น
Eclipse์์ Liberty ์๋ฒ๋ฅผ ์ ์ดํ๊ธฐ ์ํด์๋ ์ ์ฉ ํ๋ฌ๊ทธ์ธ์ ์ค์นํด์ผ ํฉ๋๋ค.
์ค์น ์ ์ฐจ
- Eclipse ๋ฉ๋ด์์ Help > Eclipse Marketplace...๋ฅผ ์ ํํฉ๋๋ค.
- ๊ฒ์์ฐฝ์
IBM Liberty๋๋WebSphere Developer Tools๋ฅผ ์ ๋ ฅํฉ๋๋ค. - "IBM Liberty Developer Tools" ํญ๋ชฉ์ ์ฐพ์ Install ๋ฒํผ์ ํด๋ฆญํฉ๋๋ค.
- ๋ผ์ด์ ์ค ๋์ ํ ์ค์น๋ฅผ ์งํํ๋ฉฐ, ์๋ฃ ํ Eclipse๋ฅผ ์ฌ์์ํฉ๋๋ค.
3. Liberty ๋ฐํ์(Runtime) ๋ฑ๋ก
์ด๋ฏธ ์ค์น๋ Liberty Core๋ฅผ Eclipse์ ๋ฑ๋กํ๊ฑฐ๋, Eclipse๋ฅผ ํตํด ์๋ก ๋ค์ด๋ก๋ํ ์ ์์ต๋๋ค.
์๋ฒ ๋ฑ๋ก ๊ณผ์
- Servers ๋ทฐ์์ ์ฐํด๋ฆญ > New > Server ์ ํ.
- ์๋ฒ ํ์ ์์ IBM > WebSphere Liberty ์ ํ.
- Server's host name์
localhost, Server name์ ์๋ณ ๊ฐ๋ฅํ ์ด๋ฆ ์ ๋ ฅ. - Runtime Environment ์ค์ ๋จ๊ณ:
- ๊ธฐ์กด ์ค์น๋ ๊ฒฝ์ฐ: 'Choose an existing installation' ์ ํ ํ Liberty ์ค์น ๊ฒฝ๋ก(
wlpํด๋) ์ง์ . - ์๋ก ์ค์นํ ๊ฒฝ์ฐ: 'Install from an archive or a repository' ์ ํ ํ ์ํ๋ ๋ฒ์ ๋ค์ด๋ก๋.
- ๊ธฐ์กด ์ค์น๋ ๊ฒฝ์ฐ: 'Choose an existing installation' ์ ํ ํ Liberty ์ค์น ๊ฒฝ๋ก(
- Finish๋ฅผ ํด๋ฆญํ์ฌ ์ค์ ์ ์๋ฃํฉ๋๋ค.
4. ์๋ฒ ๊ตฌ๋ ๋ฐ ์ ํ๋ฆฌ์ผ์ด์ ๋ฐฐํฌ
์ค์ ์ด ์๋ฃ๋๋ฉด Eclipse ๋ด์์ ์๋ฒ๋ฅผ ์ ์ดํ ์ ์์ต๋๋ค.
์๋ฒ ์ ์ด
- Start: Servers ๋ทฐ์์ ์๋ฒ ์ฐํด๋ฆญ > Start (๋๋ Debug).
- Console ํ์ธ:
CWWKF0011I: The server defaultServer is ready to run a smarter planet.๋ฉ์์ง๊ฐ ๋จ๋ฉด ์ ์ ๊ตฌ๋๋ ๊ฒ์ ๋๋ค.
ํ๋ก์ ํธ ๋ฐฐํฌ
- Dynamic Web Project ์์ฑ.
- ํ๋ก์ ํธ ์ฐํด๋ฆญ > Run As > Run on Server.
- ๋ฑ๋กํ Liberty ์๋ฒ๋ฅผ ์ ํํ๊ณ Finish.
server.xml์ ์ ํ๋ฆฌ์ผ์ด์ ๊ตฌ์ฑ์ด ์๋์ผ๋ก ์ถ๊ฐ๋๋ฉฐ ๋ฐฐํฌ๊ฐ ์งํ๋ฉ๋๋ค.
5. ์ฐธ๊ณ ์์ (Reference Video)
์ค์ ์ค์น ๋ฐ ๊ตฌ๋ ๊ณผ์ ์ ๋ํ ๋ฐ๋ชจ ์์์ ๋๋ค.
Next Step:
๊ฐ๋ฐ ํ๊ฒฝ ๊ตฌ์ถ์ด ์๋ฃ๋์๋ค๋ฉด, server.xml ํ์ผ์ <featureManager> ์น์
์ ์์ ํ์ฌ ํ์ํ ๊ธฐ๋ฅ(JSP, Servlet, JDBC ๋ฑ)์ ํ์ฑํํ๋ ๋ฐฉ๋ฒ์ ํ์ตํด ๋ณด์ญ์์ค.