development.conf 2.94 KB
<!--
   - Alternative to resin.conf, suited for development.
   -
   - Start Resin with:
   -
   - java -jar lib/resin.jar -server-root /path/webapp -conf/development.conf 
   -
   - Command Line Options:
   -
   -   -server-root path           Path to web application, required
   -
   -   -J-Dlog_level=fine          Logging level, 'info' 'fine' 'finest' etc,
   -                               default 'fine'
   - 
   - File layout of web application /path/to/webapp/... is:
   -
   - index.html                Corresponds to http://localhost:8080/index.html
   -                                       or http://localhost:8080/
   -
   - index.jsp                 Corresponds to http://localhost:8080/index.jsp
   -                                       or http://localhost:8080/
   -
   - WEB-INF/                  Directory for configuration, hidden from browser.
   -
   - WEB-INF/resin-web.xml     Web application specific configuration
   -
   - WEB-INF/web.xml           Standard J2EE web application specific
   -                           configuration for portability to other
   -                           servlet/jsp containers.
   -
   - WEB-INF/classes/...       Directory for .java files.
   -                           Resin automatically compiles these when 
   -                           they change.
   -
   -   For example:
   -       WEB-INF/clasess/example/HelloWorldServlet.java
   -        => WEB-INF/clasess/example/HelloWorldServlet.class
   -
  -->
<resin xmlns="http://caucho.com/ns/resin"
       xmlns:resin="http://caucho.com/ns/resin/core">

  <resin:set var="log_level" default="info"/>

  <log name="" level="${log_level}" path="stdout:"/>

  <dependency-check-interval>2s</dependency-check-interval>

  <javac compiler="internal" args=""/>

  <resin:import path="${resin.home}/conf/app-default.xml"/>

  <cluster id="app-tier">
    <class-loader>
      <tree-loader path="${resin.home}/lib"/>
      <tree-loader path="${server.root}/lib"/>
    </class-loader>

    <server-default>
      <jvm-arg>-Xdebug</jvm-arg>
      <jvm-arg>-ea</jvm-arg>
      <jvm-arg>-Dcom.sun.management.jmxremote</jvm-arg>

      <http address="*" port="8080"/>
    </server-default>

    <server id="" address="127.0.0.1" port="6800"/>

    <resin:if test="${resin.isProfessional()}">
      <cache path="WEB-INF/work/cache" memory-size="8M"/>
    </resin:if>

    <web-app-default>
      <allow-servlet-el/>

      <!--
         - Enable PHP
        -->
      <servlet servlet-name="resin-php"
               servlet-class="com.caucho.quercus.servlet.QuercusServlet">
        <init compile="lazy" script-encoding="ISO8859_1">
        </init>
      </servlet>

        <servlet-mapping url-pattern="*.php" servlet-name="resin-php"/>
    </web-app-default>

    <host id="">
      <web-app id="/" document-directory="${server.root}">
        <session-config>
          <file-store>WEB-INF/work/sessions</file-store>
        </session-config>
      </web-app>
    </host>
  </cluster>
</resin>