Hello resin-interest,

I would like to set up virtual host with specified work- and temp-dir

Resin Pro 3.1.0 (with trial license)
SuSE Linux linux 2.6.13-15-default
java version "1.5.0_06"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05)
Java HotSpot(TM) Client VM (build 1.5.0_06-b05, mixed mode)

Here is my resin.conf

<resin xmlns="http://caucho.com/ns/resin";
       xmlns:resin="http://caucho.com/ns/resin/core";>

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

  <log name="" path="stdout:" timestamp="[%H:%M:%S.%s] "/>
  <logger name="com.caucho.java" level="config"/>
  <logger name="com.caucho.loader" level="config"/>
  <log name='/' path='${resin.home}/log/debug.log' timestamp='[%Y-%m-%d 
%H:%M:%S.%s]'/>
  <dependency-check-interval>600s</dependency-check-interval>

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

  <cluster id="cluster-1">
    <root-directory>/www</root-directory>
    <server-header>Java-Hoster's Company Server/1.0</server-header>
    <server-default>
      <thread-max>512</thread-max>
      <jvm-arg>-Xmx64m</jvm-arg>
      <jvm-arg>-Xss1m</jvm-arg>
      <jvm-arg>-Dcom.sun.management.jmxremote</jvm-arg>
      <jvm-arg>-Dcom.sun.management.jmxremote.port=9999</jvm-arg>
      <jvm-arg>-Dcom.sun.management.jmxremote.ssl=false</jvm-arg>
      <jvm-arg>-Dcom.sun.management.jmxremote.authenticate=false</jvm-arg>

    </server-default>

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

    <!-- sets the content root for the cluster, relative to server.root -->
    <server id="00" address="127.0.0.2" port="6800">
        <http port="9090"/>
        <watchdog-port>6600</watchdog-port>
    </server>

    <server id="01" address="127.0.0.2" port="6801">
        <http port="9091"/>
        <watchdog-port>6601</watchdog-port>
    </server>

    <host-default>
        <access-log path='${server.root}/logs/access.log'
                format='%h %l %u %t "%r" %s %b %D "%{Referer}i" 
"%{User-Agent}i"'
                rollover-period='1W'/>
    </host-default>

    <host id="domain.name">
        <host-alias>domain.name</host-alias>
        <root-directory>domain.name/htdocs</root-directory>
        <web-app id="/" root-directory="ROOT"/>
        <work-dir>domain.name/work</work-dir>
        <temp-dir>domain.name/temp</temp-dir>
    </host>

 </cluster>
</resin>

After start I get in logs:
[02:04:15.751] conf/resin.conf:63: '#text' is an unknown property of 
'com.caucho.java.TempDir'.

and app is unavailable through http, because did not start

If I comment the string         <temp-dir>domain.name/temp</temp-dir>
Resin start normally and host is available through http, but Resin
created work-dir in default place (WEB-INF/work) and temp-dir in
WEB-INF/tmp

Here is my dirs
/www
    /domain.name
             /htdocs
                 /ROOT
             /logs
             /temp
             /work

What is my wrong?
Thx





_______________________________________________
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest

Reply via email to