웹로직 아파치 연동, weblogic 11g, apache 2.2 install log
웹로직 설치, 아파치 설치, 도메인 생성, 어플리케이션 구조 설정, 아파치 연동, 테스트
1. weblogic 11g
Oracle WebLogic > User Projects > 생성된도메인 (전 localhost로 했습니다) > Start Admin Server for Weblogic Server Domain
2. apache version 2.2 Win32 Binary including OpenSSL 0.9.8i (MSI Installer)
3. 모듈 파일 복사
C:\Oracle\Middleware\wlserver_10.3\server\plugin\win\32\mod_wl_22.so >
C:\Program Files\Apache Software Foundation\Apache2.2\modules\mod_wl_22.so
4. apache 설정
C:\Program Files\Apache Software Foundation\Apache2.2\conf\httpd.conf 편집
4-1.
LoadModule weblogic_module modules/mod_wl_22.so
추가 (약 127줄, LoadModule들 아래쪽에)
4-2.
<Location /weblogic>
SetHandler weblogic-handler
PathTrim /weblogic
</Location>
SetHandler weblogic-handler
PathTrim /weblogic
</Location>
4-3.
<IfModule mod_weblogic.c>
WebLogicHost localhost
WebLogicPort 7001
#WebLogicCluster 127.0.0.1:7001,127.0.0.2:7001
ConnectTimeoutSecs 20
ConnectRetrySecs 5
MatchExpression *.jsp
MatchExpression *.do
MatchExpression *Servlet
</IfModule>
WebLogicHost localhost
WebLogicPort 7001
#WebLogicCluster 127.0.0.1:7001,127.0.0.2:7001
ConnectTimeoutSecs 20
ConnectRetrySecs 5
MatchExpression *.jsp
MatchExpression *.do
MatchExpression *Servlet
</IfModule>
5. 어플리케이션 설정
루트디렉토리/WEB-INF/classes 디렉토리 생성
루트디렉토리/WEB-INF/lib 디렉토리 생성
루트디렉토리/WEB-INF/src 디렉토리 생성
루트디렉토리/WEB-INF/weblogic.xml 생성
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE weblogic-web-app
PUBLIC "-//BEA Systems, Inc.//DTD Web Application 7.0//EN"
"http://www.bea.com/servers/wls700/dtd/weblogic700-web-jar.dtd" >
<weblogic-web-app>
<context-root>/</context-root>
</weblogic-web-app>
<!DOCTYPE weblogic-web-app
PUBLIC "-//BEA Systems, Inc.//DTD Web Application 7.0//EN"
"http://www.bea.com/servers/wls700/dtd/weblogic700-web-jar.dtd" >
<weblogic-web-app>
<context-root>/</context-root>
</weblogic-web-app>
루트디렉토리/WEB-INF/web.xml 생성
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE web-app PUBLIC
"-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd" >
<web-app>
</web-app>
<!DOCTYPE web-app PUBLIC
"-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd" >
<web-app>
</web-app>
루트디렉토리/index.jsp 생성 (테스트파일)
<%
out.println("안두봉");
%>
out.println("안두봉");
%>
5. 배포 (Deployments)
5-1. http://localhost:7001/console 에 접속 > 로그인 (변경안했다면 아이디는 weblogic)
5-2. Deployments > Install
5-3. 루트디렉토리 선택 > Next > Next ... > Finish
6. weblogic 시작, apache 서비스 시작
7. http://localhost/index.jsp 접속