98..Etc/Resin
** resin 설치법 **
1010
2009. 5. 18. 18:20
반응형
** resin 설치법 ** 1. www.caucho.com ->download (http://www.caucho.com/download/index.xtp) 다운받은 뒤 압축 풀어서 c:\resin 갖다놓기! 2. jar파일 옮겨놓기! jsdk23.jar파일을 복사 (경로) c:\program files\java\jdk1.5\jre\lib\ext에서 jsdk23.jar복사-> c:\resin\lib 붙여넣기 ** resin.conf파일설정 ** 1. 커넥션풀 설정하기(ctrl+F:찾기기능 이용)//데이터베이스 연결 <resource-ref> <res-ref-name>jdbc/oracle</res-ref-name> <res-type>javax.sql.DataSource</res-type> <init-param driver-name="oracle.jdbc.driver.OracleDriver"/> <init-param url="jdbc:oracle:thin:@127.0.0.1:1521:orcl"/> <init-param user="system"/> <init-param password="admin"/> <init-param max-connections="20"/> <init-param max-idle-time="30"/> </resource-ref> 2. port 설정하기 <!-- the http port --> <http port='80'/> : port='8080'충돌날 경우 다른 포트로 수정 : port='80'의 경우 http://localhost/경로명 3. 기준폴더 변경 <doc-dir>c:\dada</doc-dir> dada폴더 밑에 WEB-INF\classes 폴더 생성 3.1 servlet폴더,jsp폴더 각각주기 <web-app id='myservlet'/> dada\myservlet\WEB-INF\classes 폴더생성 <web-app id='jsp'/> ※ 주소창 > http://localhost/myservlet/servlet/HelloServlet 기본적으로 doc바로 아래에 .http .jsp .txt 그림파일 등등 놓는다. doc\WEB-INF\classes .java 파일을 놓는다. ->폴더안에 폴더를 만들 경우 패키지를 추가해야된다. ** tip! ** c:\program files\editplus\template.jsp 만들기 editplus 프로그램 실행 후, 도구-사용자도구구성-jsp추가 템플릿안에, <%@page contentType="text/html;charset=KSC5601"%> 저장! ** war압축 ** 프로그램 실행 할 때 필요한 폴더를 생성한 후 .jsp넣고 WEB-INF\classes 폴더안에 .java 그림파일은 ..\images폴더 생성후 그림파일 넣어서 실행>cmd c:\생성한 폴더> jar -cvf(압축풀기:-xvf) 이름.war (엔터) 압축한 폴더는 c:\resin\webapps 안에 넣어주고 http://localhost/폴더명/첫실행파일명(index.jsp로 저장하지 않은경우)