development.conf
2.94 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
<!--
- 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>