본문 바로가기

Programming!

Resin + Eclipse 3.5 연동


Resin 사용하기.

현재 SO, BO 등이 Resin으로 전환됨에 따라 Local 환경을 Resin으로 사용하는 것도 좋을 듯 해서 작성합니다.

Resin Install

Resin resin-3.1.9.zip 을 받습니다. 압축을 푼후 "C:\ROOT\Servers" 또는 "D:\Root\Servers" 에 Copy

지정된 디렉토리가 Resin Home 입 됩니다.

Eclipse + Resin


1. Eclipse 실행 후, Help - Install New Software... 를 실행 합니다. - 

Name : Caucho Resin
Location : http://caucho.com/eclipse

2. Download 를 받은 후, Restart


3. Window - Preferences 에서 Server를 보시면 Resin 이 추가된걸 확인 할 수 있습니다.
4. Resin Home등을 설정한후 Finish

5. Servers View 에서 New Server 를 실행 후, Resin 3.1 을 선택


6. Resin Home 변경 / 포트 변경 8080->80 / 프로젝트 등록.

7. 서버 스타트.

8. Run Configurations 에서

-XX:PermSize=128m -XX:MaxPermSize=128m

를 추가합니다.

프로젝트 설정.

 

<host id="" root-directory=".">
      <web-app id='/'>
        <root-directory>webapps/프로젝트명</root-directory>
      </web-app>
    </host>

    <!-- configures the default host, matching any host name -->
    <!--
    <host id="" root-directory=".">
      <!--
         - configures an explicit root web-app matching the
         - webapp's ROOT
        -->
      <web-app id="/" root-directory="webapps/ROOT"/>

      <web-app id="/resin-admin" root-directory="${resin.home}/php/admin">
        <!--
           - Administration application /resin-admin
          -->
        <prologue>
          <resin:set var="resin_admin_external" value="false"/>
          <resin:set var="resin_admin_insecure" value="true"/>
        </prologue>
      </web-app>
    </host>
    -->

resin.conf 파일을 open 한 후, "webapps\프로젝트명" 부분을 "webapps/95.APIProject"와 같이 해당 프로젝트 명을 지정합니다.
이제 Start 를 하면 종료!