WebtoB + Jeus
1. webtob 설치 와 jues 설치는 되어 있고, 인증키가 적용되어 있는것으로 간주한다.
- 어렵지않게 설치할수 있다.
- 단 jeus 설치시 libstdc..... 에러가 날경우. jdk가 설치되어 있는지 확인한후
- 설치가 되어 있다면,
- #jeus설치화일 LAX_VM jdk경로/bin/java
- 위의 옵션을 적용해 설치한다.
2. 환경변수 설정
- webtob 환경변수
WEBTOBDIR=/AAA/webtob #webtob 설치경로
export WEBTOBDIR
PATH="${WEBTOBDIR}/bin:${PATH}"
export PATH
LIBPATH="${WEBTOBDIR}/lib:${LIBPATH}"
export LIBPATH
- jues 환경변수
JEUS_HOME=/AAA/jeus #jeus 설치경로
export JEUS_HOME
PATH="${JEUS_HOME}/bin:${JEUS_HOME}/webserver/bin:${JEUS_HOME}/lib/system:${PATH}:/#JDK설치경로"
export PATH
JEUS_BASEPORT=9736
export JEUS_BASEPORT
JEUS_LIBPATH="${JEUS_HOME}/lib/system"
export JEUS_LIBPATH
3. webtob 환경설정
config 디렉토리내 http.m 혹은 XXXX.m 화일.
그룹명을 Vgroup으로 하였다.
*DOMAIN
jeuservice
*NODE
localhost
WEBTOBDIR = "/XXX/XXX/webtob", #webtob 설치경로
SHMKEY = 54000,
DOCROOT = "/XXX/XXX/webtob/docs", #기본 경로...
PORT = "8090",
LOGGING = "log1",
ERRORLOG = "log2",
JSVPORT = 9900,
HTH = 1
*SVRGROUP
htmlg NODENAME = "localhost", SVRTYPE = HTML
cgig NODENAME = "localhost", SVRTYPE = CGI
ssig NODENAME = "localhost", SVRTYPE = SSI
jsvg NODENAME = "localhost", SVRTYPE = JSV
vjsvg NODENAME = "localhost", SVRTYPE = JSV, VHOSTNAME = vhost1
*SERVER
html SVGNAME = htmlg, MinProc = 1, MaxProc = 2, ASQCount = 1
cgi SVGNAME = cgig, MinProc = 1, MaxProc = 2
ssi SVGNAME = ssig, MinProc = 1, MaxProc = 2
MyGroup SVGNAME = jsvg, MinProc = 1, MaxProc = 5
Vgroup SVGNAME = vjsvg, MinProc = 1, MaxProc = 5
*URI
uri1 Uri = "/cgi-bin/", Svrtype = CGI
uri2 Uri = "/examples", Svrtype = JSV
uri3 Uri = "/exploded", Svrtype = JSV
uri4 Uri = "/", Svrtype = JSV
*ALIAS
alias1 URI = "/cgi-bin/", RealPath = "/XXX/XXX/webtob/cgi-bin/"
*LOGGING
log1 Format = "DEFAULT", FileName = "/XXX/XXX/webtob/log/access.log", Option = "sync"
log2 Format = "ERROR", FileName = "/XXX/XXX/webtob/log/error.log", Option = "sync"
*EXT
htm MimeType = "text/html", SvrType = HTML
jsp Mimetype ="application/jsp", Svrtype=JSV
*VHOST
vhost1 DOCROOT = "/AAA/BBB", #홈페이지 저장경로
NODENAME = "localhost",
HOSTNAME = "도메인명", #도메인명
PORT = "8090"
4. jues 환경설정
1). config/localhost 디렉토리에서
localhost_servlet_engine2 디렉토리 내에 JEUSMain.xml 파일을 수정한다.
빨간색이 추가된부분이다.
<?xml version="1.0" encoding="utf-8"?>
<jeus-system xmlns="http://www.tmaxsoft.com/xml/ns/jeus" version="6.0">
<node>
<name>frody-ubuntu</name>
<class-ftp>true</class-ftp>
<sequential-start>true</sequential-start>
<enable-webadmin>true</enable-webadmin>
<engine-container>
<name>container1</name>
<command-option>-Xms256m -Xmx512m -XX:MaxPermSize=128m</command-option>
<sequential-start>true</sequential-start>
<engine-command>
<type>ws</type>
<name>engine1</name>
</engine-command>
<engine-command>
<type>jms</type>
<name>engine1</name>
</engine-command>
<engine-command>
<type>ejb</type>
<name>engine1</name>
</engine-command>
<engine-command>
<type>servlet</type>
<name>engine1</name>
</engine-command>
</engine-container>
<engine-container>
<name>container2</name>
<command-option>-Xms256m -Xmx512m -XX:MaxPermSize=128m</command-option>
<sequential-start>true</sequential-start>
<engine-command>
<type>servlet</type>
<name>engine2</name>
</engine-command>
</engine-container>
</node>
<application>
<name>examples</name>
<path>examples.ear</path>
<deployment-target>
<target>
<engine-container-name>frody-ubuntu_container1</engine-container-name>
<web-context-group>
<name>MyGroup</name>
</web-context-group>
</target>
</deployment-target>
<deployment-type>EAR</deployment-type>
</application>
<application>
<name>exploded</name>
<path>exploded</path>
<deployment-type>COMPONENT</deployment-type>
<web-component/>
<deployment-target>
<target>
<engine-container-name>frody-ubuntu_container1</engine-container-name>
</target>
</deployment-target>
</application>
<application>
<name>/</name>
<path>/AAA/BBB</path> <!-- 홈페이지 저장 경로 -->
<deployment-type>COMPONENT</deployment-type>
<deployment-target>
<target>
<engine-container-name>frody-ubuntu_container2</engine-container-name>
<web-context-group>
<name>Vgroup</name>
</web-context-group>
</target>
</deployment-target>
<web-component/>
</application>
</jeus-system>
2). localhost_servlet_engine1 디렉토리를 통째로 localhost_servlet_engine2 로 복사한다
- WEBMain.xml 을 수정한다.
<?xml version="1.0"?>
<web-container xmlns="http://www.tmaxsoft.com/xml/ns/jeus" version="6.0">
<context-group>
<group-name>Vgroup</group-name>
<webserver-connection>
<!-- 제거
<http-listener>
<listener-id>http1</listener-id>
<port>8098</port>
<thread-pool>
<min>10</min>
<max>20</max>
<step>1</step>
</thread-pool>
</http-listener>
-->
<webtob-listener>
<listener-id>webtob1</listener-id>
<port>9900</port>
<output-buffer-size>8192</output-buffer-size>
<thread-pool>
<min>1</min>
<max>5</max>
<step>1</step>
<max-idle-time>30000</max-idle-time>
</thread-pool>
<webtob-address>localhost</webtob-address> <!-- socket으로 연결할경우 경로를 입력한다. -->
<registration-id>Vgroup</registration-id>
</webtob-listener>
</webserver-connection>
<logging>
<access-log>
<handler>
<file-handler>
<name>handler1</name>
<valid-day>1</valid-day>
</file-handler>
</handler>
</access-log>
</logging>
</context-group>
</web-container>
5. webtob, jeus의 기동/종료
- webtob
bin 디렉토리에서 wsboot/wsdown 명령으로 동작시킨다.
- jeus
bin 디렉토리에서
기동 : ./jeus -xml -Uadministrator -P암호
종료 : ./jeusadmin localhost -Uadministrator -P암호 입력후
down/boot, jeusexit -> 완전종료
6. 추가
- 오라클 연동시 제우스홈디렉토리/lib/datasource 디렉토리내에 ojdbc1X.jar 파일을 넣어둔다.
-
- 오라클 접속이 자주끊기며 ORA-12519 오류가 발생하면
SQL> SHOW PRARAMETER PROCESSES ->로 확인후
SQL> ALTER system SET processes=100 scope=spfile;
해준다.