Subversion Repositories XServices

Rev

Rev 198 | Rev 201 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
55 brianR 1
<?xml version="1.0" encoding="UTF-8"?>
94 brianR 2
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3
	xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
4
	xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
5
	version="2.5">
185 brianR 6
 
94 brianR 7
	<context-param>
185 brianR 8
        <param-name>log4jConfiguration</param-name>
9
        <param-value>/WEB-INF/log4j2.xml</param-value>
10
    </context-param>
11
    <context-param>
12
    	<param-name>shiroConfigLocations</param-name>
13
    	<param-value>/WEB-INF/shiro.ini</param-value>
94 brianR 14
	</context-param>
15
	<context-param>
16
		<param-name>quartz:config-file</param-name>
17
		<param-value>quartz.properties</param-value>
18
	</context-param>
19
	<context-param>
20
		<param-name>quartz:shutdown-on-unload</param-name>
21
		<param-value>true</param-value>
22
	</context-param>
23
	<context-param>
24
		<param-name>quartz:wait-on-shutdown</param-name>
25
		<param-value>false</param-value>
26
	</context-param>
27
	<context-param>
28
		<param-name>quartz:start-scheduler-on-load</param-name>
29
		<param-value>true</param-value>
30
	</context-param>
31
	<context-param>
32
		<param-name>cache:thread-count</param-name>
33
		<param-value>3</param-value>
34
	</context-param>
101 brianR 35
 
146 brianR 36
	<!-- <context-param> <param-name>cvs-config-02</param-name> <param-value>c:/temp/test2.txt</param-value>
37
		</context-param> <context-param> <param-name>cvs-config-01</param-name> <param-value>c:/temp/test.txt</param-value>
38
		</context-param> <context-param> <param-name>cvs-config-03</param-name> <param-value>c:/temp/test3.txt</param-value>
39
		</context-param> -->
40
 
41
	<!-- Caching interval in minutes for CVS cache -->
94 brianR 42
	<context-param>
43
		<param-name>cvs-cache-interval</param-name>
101 brianR 44
		<param-value>3</param-value>
94 brianR 45
	</context-param>
46
 
146 brianR 47
	<!-- CVS content search cache -->
48
	<!-- <context-param> <param-name>cvs-findings-configuration</param-name>
49
		<param-value>c:/temp/cvs-findings.txt</param-value> </context-param> -->
50
 
94 brianR 51
	<listener>
185 brianR 52
    	<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
53
  	</listener>
94 brianR 54
	<listener>
55
		<listener-class>org.quartz.ee.servlet.QuartzInitializerListener</listener-class>
56
	</listener>
57
	<listener>
58
		<listener-class>net.brutex.xservices.util.cache.CacheExecutorService</listener-class>
59
	</listener>
60
 
61
 
62
	<servlet>
63
		<servlet-name>XServices</servlet-name>
64
		<servlet-class>org.apache.cxf.transport.servlet.CXFServlet</servlet-class>
185 brianR 65
		<!-- <init-param>
66
			<param-name>config-location</param-name>
67
			<param-value>/WEB-INF/cxf-servlet.xml</param-value>
68
		</init-param>
69
		-->
70
		<init-param>
71
        	<param-name>hide-service-list-page</param-name>
72
        	<param-value>false</param-value>
73
    </init-param>
94 brianR 74
		<load-on-startup>1</load-on-startup>
75
	</servlet>
185 brianR 76
 
94 brianR 77
	<servlet>
78
		<servlet-name>QuartzInitializer</servlet-name>
79
		<servlet-class>org.quartz.ee.servlet.QuartzInitializerServlet</servlet-class>
80
		<init-param>
81
			<param-name>shutdown-on-unload</param-name>
82
			<param-value>true</param-value>
83
		</init-param>
84
		<load-on-startup>2</load-on-startup>
85
	</servlet>
86
	<servlet>
87
		<servlet-name>CacheServlet</servlet-name>
88
		<servlet-class>net.brutex.xservices.util.cache.CacheServlet</servlet-class>
89
		<load-on-startup>3</load-on-startup>
90
	</servlet>
101 brianR 91
	<servlet>
92
		<servlet-name>FindingsCacheServlet</servlet-name>
93
		<servlet-class>net.brutex.xservices.util.cache.FindingsCacheServlet</servlet-class>
94
		<load-on-startup>3</load-on-startup>
95
	</servlet>
94 brianR 96
 
97
	<servlet-mapping>
98
		<servlet-name>XServices</servlet-name>
99
		<url-pattern>/*</url-pattern>
100
	</servlet-mapping>
185 brianR 101
 
94 brianR 102
	<session-config>
103
		<session-timeout>30</session-timeout>
104
	</session-config>
105
	<welcome-file-list>
106
		<welcome-file>index.html</welcome-file>
107
	</welcome-file-list>
146 brianR 108
 
109
	<!-- Shiro -->
110
	<listener>
111
		<listener-class>org.apache.shiro.web.env.EnvironmentLoaderListener</listener-class>
112
	</listener>
113
 
114
	<filter>
115
		<filter-name>ShiroFilter</filter-name>
116
		<filter-class>org.apache.shiro.web.servlet.ShiroFilter</filter-class>
117
	</filter>
118
 
119
	<filter-mapping>
120
		<filter-name>ShiroFilter</filter-name>
121
		<url-pattern>/*</url-pattern>
122
		<dispatcher>REQUEST</dispatcher>
123
		<dispatcher>FORWARD</dispatcher>
124
		<dispatcher>INCLUDE</dispatcher>
125
		<dispatcher>ERROR</dispatcher>
126
	</filter-mapping>
127
	<!-- Shiro -->
199 brianR 128
 
129
 
130
	<servlet>
131
		<servlet-name>H2Console</servlet-name>
132
		<servlet-class>org.h2.server.web.WebServlet</servlet-class>
133
		<!--
134
        <init-param>
135
            <param-name>webAllowOthers</param-name>
136
            <param-value></param-value>
137
        </init-param>
138
        <init-param>
139
            <param-name>trace</param-name>
140
            <param-value></param-value>
141
        </init-param>
142
        -->
143
		<load-on-startup>1</load-on-startup>
144
	</servlet>
145
	<servlet-mapping>
146
		<servlet-name>H2Console</servlet-name>
147
		<url-pattern>/console/*</url-pattern>
148
	</servlet-mapping>
149
	<!--
150
    <security-role>
151
        <role-name>admin</role-name>
152
    </security-role>
153
    <security-constraint>
154
        <web-resource-collection>
155
            <web-resource-name>H2 Console</web-resource-name>
156
            <url-pattern>/console/*</url-pattern>
157
        </web-resource-collection>
158
        <auth-constraint>
159
            <role-name>admin</role-name>
160
        </auth-constraint>
161
    </security-constraint>
162
    -->
163
 
55 brianR 164
</web-app>