* Trying 127.0.0.1... * Connected to www.test.co.kr (127.0.0.1) port 80 (#0) > GET /test.html HTTP/1.1 > User-Agent: curl/7.29.0 > Host: www.test.co.kr > Accept: */* > Accept-Encoding: gzip > < HTTP/1.1 302 Found < Date: Wed, 21 Sep 2022 08:20:31 GMT < Connection: close < Location: https://www.test.com/test.html < Content-Type: text/html < Content-Length: 140 < Warning: Binary output can mess up your terminal. Use "--output -" to tell Warning: curl to output it to your terminal anyway, or consider "--output Warning: <FILE>" to save to a file. * Failure writing output to destination * Closing connection 0
WEBTOB5.0.0.4
% Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* About to connect() to www.test.co.kr port 80 (#0) * Trying 127.0.0.1... * Connected to www.test.co.kr (127.0.0.1) port 80 (#0) > GET /test.html HTTP/1.1 > User-Agent: curl/7.29.0 > Host: www.test.co.kr > Accept: */* > Accept-Encoding: gzip > < HTTP/1.1 302 Found < Date: Wed, 21 Sep 2022 08:20:31 GMT < Connection: close < Location: https://www.test.com/test.html < Content-Type: text/html < Content-Length: 140 < { [data not shown] 100 140 100 140 0 0 9133 0 --:--:-- --:--:-- --:--:-- 10000 * Closing connection 0
- 특이사항 WebtoB4 compression은 브라우저에서 제공되는 것이기 때문에, curl에서는 압축을 풀수 없음. 위 Warning 메시지 표출됨. 다만, 아래와 같이 -o test.gz 설정을 추가하여 압축 파일로 형태로 내려 받을 수 있음.
curl -vk http://www.test.co.kr/test.html -H "Accept-Encoding: gzip" -o test.gz % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* Trying 127.0.0.1:80... * Connected to www.test.co.kr (127.0.0.1) port 80 (#0) > GET /test.html HTTP/1.1 > Host: www.test.co.kr > User-Agent: curl/7.79.1 > Accept: */* > Accept-Encoding: gzip > * Mark bundle as not supporting multiuse < HTTP/1.1 200 OK < Date: Tue, 20 Sep 2022 06:59:36 GMT < ETag: "0-1218-5aadf2dc" < Last-Modified: Sun, 18 Mar 2018 05:02:20 GMT < Accept-Ranges: bytes < Content-Type: text/html < Content-Encoding: gzip < Content-Length: 546
Connection reset이슈는 전송 서버쪽이 아니라, 연결을 시도하는 서버 쪽 이슈 상대방에서 연결을 끊는경우 java.net.SocketException reset by peer 에러가 발생
#ClosedChannelException 클로즈 한 채널에 대한 입출력 조작을 실시하려고 했을 때, 또는 실행하려고 한 입출력 조작에 대해서 그 채널이 클로즈 되고 있는 경우에 throw 되는 예외 체크
#Connection refused
<<__Exception__>> java.net.ConnectException: Connection refused: connect at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158) at java.net.Socket.connect(Socket.java:434) at java.net.Socket.connect(Socket.java:384) at java.net.Socket.<init>(Socket.java:291) at java.net.Socket.<init>(Socket.java:119) at jeus.servlet.net.WinIPCSocket.<init>(WinIPCSocket.java:28)
목차 0. 설치환경 1. JDK Version 2. 계정 생성 및 환경변수 설정 2.1 계정 생성 2.2 환경변수 설정 3. JEUS21 설치 3.1 Install File 및 설치 준비 3.2 domain-config-template.properties 설정 3.3 권한 변경 4. JEUS21 실행 4.1 ant install 4.2 DAS admin 확인 - Console Admin 4.2 DAS admin 확인 - WebAdmin
초기 설치시에 DAS만 포함된 도메인이 생성되고 WebAdmin이나 jeusadmin을 사용해 MS를 추가하여 원하는 도메인을 구성할 수 있다.
추가한 MS를 원하는 머신에서 시작하면 해당 머신에 필요한 도메인 정보가 DAS를 통해 전달된다.
Ant Task에서 설정의 기본값은 JEUS_HOME/setup/domain-config-template.properties에 정의되어 있다.
Ant Task와 jeusadmin 명령에 사용할 속성들은 공통적으로 다음과 같은 기본값을 갖는다.
속성
기본값
Listen IP 주소
0.0.0.0
Listen Port
9736
사용자 이름
administrator
Multicast IP 주소
230.30.1.1
Multicast Port 번호
12488
domain-config-template.properties 내용을 설치 시 설정한 속성으로 수정한다.
cd $JEUS_HOME
cd setup
vi domain-config-template.properties
domain-config-teplate.properties 수정 전
1. domain= : 사용하려는 domain 명으로 수정. 2. DAS 권장 설정 값으로 변경. 3. domain.admin.server.jeus.port= : webadmin 접근 포트 수정. (Default: 9736) 4. jeus.password= : jeusadmin 접근할 계정의 PW 입력 5. jeus.username= : jeusadmin 접근할 계정의 ID 입력
domain-config-teplate.properties 수정 후
#============================================================================= # [Default configuration template] # This template will be used when generating default domain-configurations via admin # tool(e.g. create-domain). # # System admin can modify this to change the default template if needed. # Do not modify option name. #=============================================================================
# Default option values. You can input your options. domain=jeus_domain productionmode=true domain.admin.server.name=adminServer cloud.server.name=server domain.admin.server.jvm.config=-Xms1024m -Xmx1024m -XX:MetaspaceSize=128m -XX:MaxMetaspaceSize=512m domain.admin.server.jeus.port=10000 domain.admin.server.http.port=8088 transport.type=HYBRID transport.address=230.30.1.1 transport.port=12488 # password's plain text is jeus. # If you want to set encrypted password, change it by set-password command with algorithm option in jeusadmin jeus.password=jeusadmin1! jeus.username=wasadmin # Node configuration nodename=node1 # Other configuration jeus.lang=ko jvm.vendor=Sun
# If you want to set native library folder manually, define "source" to name of folder in JEUS_HOME/setup/lib_native #source=sunos_64
# target xsd file for config (default: jeus-domain.xsd,security-domains.xsd,jeus-nodes.xsd,jeus-po-service-model.xsd) source.schemas=jeus-domain.xsd,security-domains.xsd,jeus-nodes.xsd,jeus-po-service-model.xsd
3.3 권한 변경
$SUPERFRAME_HOME/lib/etc/ant/bin 하위에 파일 권한을 700으로 변경한다.
install-bin: [mkdir] Created dir: /home/jeus21/bin [copy] Copying 28 files to /home/jeus21/bin
install-nativelib: [echo] os.name=Linux, os.version=3.10.0-1160.el7.x86_64, os.arch=amd64 [echo] Found OS type = linux_x86_64 [copy] Copying 7 files to /home/jeus21/lib/system
create-domain: [mkdir] Created dir: /home/jeus21/domains/jeus_domain [mkdir] Created dir: /home/jeus21/domains/jeus_domain/.applications [mkdir] Created dir: /home/jeus21/domains/jeus_domain/.deploymentplans [mkdir] Created dir: /home/jeus21/domains/jeus_domain/bin [mkdir] Created dir: /home/jeus21/domains/jeus_domain/config [mkdir] Created dir: /home/jeus21/domains/jeus_domain/lib [mkdir] Created dir: /home/jeus21/domains/jeus_domain/lib/application [mkdir] Created dir: /home/jeus21/domains/jeus_domain/servers [copy] Copying 4 files to /home/jeus21/domains/jeus_domain/bin [mkdir] Created dir: /home/jeus21/domains/jeus_domain/servers/adminServer [mkdir] Created dir: /home/jeus21/domains/jeus_domain/servers/adminServer/bin [mkdir] Created dir: /home/jeus21/domains/jeus_domain/servers/adminServer/.workspace [mkdir] Created dir: /home/jeus21/domains/jeus_domain/servers/adminServer/.workspace/deployed [mkdir] Created dir: /home/jeus21/domains/jeus_domain/servers/adminServer/.workspace/deployed/deploymentplans [mkdir] Created dir: /home/jeus21/domains/jeus_domain/servers/adminServer/logs [mkdir] Created dir: /home/jeus21/domains/jeus_domain/servers/adminServer/lib [mkdir] Created dir: /home/jeus21/domains/jeus_domain/servers/adminServer/lib/application [echo] setup jeus directory: jeus.home = /home/jeus21
create-init-config: [echo] Creating a domain configuration: [echo] domaindir=/home/jeus21/domains/jeus_domain [echo] domain=jeus_domain [echo] password=jeusadmin1! [echo] admin server name=adminServer [echo] admin server base port=10000 [echo] admin server base listen address=${jeus.address} [echo] [mkdir] Created dir: /home/jeus21/domains/jeus_domain/config/servlet [mkdir] Created dir: /home/jeus21/domains/jeus_domain/config/security [copy] Copying 3 files to /home/jeus21/domains/jeus_domain/config [copy] Copying 1 file to /home/jeus21/domains/jeus_domain/config/servlet [copy] Copying 2 files to /home/jeus21/domains/jeus_domain/config/security [copy] Copied 1 empty directory to 1 empty directory under /home/jeus21/domains/jeus_domain/config/security [copy] Copying 4 files to /home/jeus21/domains/jeus_domain/config/security [echo] setup jeus directory: jeus.home = /home/jeus21
create-init-xmls: [echo] productionmode = true [java] JVM args ignored when same JVM is used.
BUILD SUCCESSFUL Total time: 3 seconds
ant install 후 $SUPERFRAME_HOME에 bin 과 domains 디렉토리가 생겼음을 확인할 수 있다.
$SUPERFRAME_HOME
본 예제에서는 jeusadmin의 접근할 ID/PW를 wasadmin/jeusadmin1! 으로 했고 Default는 jeus/jeus 이다.