JEUS5 Context Setting
path : C:\JEUS5.0\config\home
추가(기존의 example는 삭제)
<application>
<name>test</name>
<path>C:\JEUS5.0\webhome\home_container1\Test</path>
<deployment-target>
<target>
<engine-container-name>home_container1</engine-container-name>
<web-context-group>
<name>MyGroup</name>
</web-context-group>
</target>
</deployment-target>
<deployment-type>EAR</deployment-type>
</application>
jeus-web-dd.xml
path : C:\JEUS5.0\webhome\home_container1\Test\WEB-INF
<?xml version="1.0" encoding="UTF-8"?>
<jeus-web-dd xmlns="http://www.tmaxsoft.com/xml/ns/jeus">
<context-path>/</context-path>
<enable-jsp>true</enable-jsp>
<auto-reload>
<enable-reload>true</enable-reload>
<check-on-demand>true</check-on-demand>
</auto-reload>
<max-instance-pool-size>-1</max-instance-pool-size>
<url-rewriting>false</url-rewriting>
<enable-default-login>false</enable-default-login>
<webinf-first>false</webinf-first>
</jeus-web-dd>
web.xml
path : C:\JEUS5.0\webhome\home_container1\Test\WEB-INF
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee">
<display-name> Welcome </display-name>
<welcome-file-list>
<welcome-file>jsp/index.jsp</welcome-file>
</welcome-file-list>
<session-config>
<session-timeout>30</session-timeout>
</session-config>
</web-app>
[출처] http://blog.naver.com/caesar0342?Redirect=Log&logNo=20052563174
=============================================================================================
====================== jeus5.x - 수동으로 context추가 =========================================
=============================================================================================
1.JEUSMain.xml 파일 수정 : <application> 태그 추가
<application>
<name>test</name>
<path>/tmax/jeus5/webhome/app_home/test</path>
<deployment-target>
<target>
<engine-container-name>kkam_container1</engine-container-name>
<web-context-group>
<name>MyGroup</name>
</web-context-group>
</target>
</deployment-target>
<deployment-type>COMPONENT</deployment-type>
<classloading>ISOLATED</classloading>
<web-component/>
</application>
2. JEUS_HOME/webhome/app_home/<context directory>의 디렉토리 생성
3. 생성한 디렉토리 안에 WEB-INF 디렉토리 생성
4. WEB-INF 안에 jeus-web-dd.xml 파일 생성
- <context-path>가 접속 url뒤에 붙을 주소임
- <docbase>가 실제 문서들이 있는 디렉토리
<?xml version="1.0" encoding="UTF-8"?>
<jeus-web-dd xmlns="http://www.tmaxsoft.com/xml/ns/jeus">
<context-path>/test</context-path>
<docbase>test</docbase>
<auto-reload>
<enable-reload>true</enable-reload>
<check-on-demand>true</check-on-demand>
</auto-reload>
</jeus-web-dd>
5. WEB-INF 안에 web.xml 파일이 없다면 default web.xml 파일이 적용됨
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee">
<display-name>TestContext</display-name>
<welcome-file-list>
<welcome-file>hello.jsp</welcome-file>
</welcome-file-list>
<session-config>
<session-timeout>30</session-timeout>
</session-config>
</web-app>
6. container 재부팅
7. WebtoB config 파일에 필요하다면 url추가
uri3 uri = "/test/", SvrType = "JSV“
8. test 페이지 만들어서 테스트