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>
|
201 |
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>
|
201 |
brianR |
86 |
-->
|
94 |
brianR |
87 |
<servlet>
|
|
|
88 |
<servlet-name>CacheServlet</servlet-name>
|
|
|
89 |
<servlet-class>net.brutex.xservices.util.cache.CacheServlet</servlet-class>
|
|
|
90 |
<load-on-startup>3</load-on-startup>
|
|
|
91 |
</servlet>
|
101 |
brianR |
92 |
<servlet>
|
|
|
93 |
<servlet-name>FindingsCacheServlet</servlet-name>
|
|
|
94 |
<servlet-class>net.brutex.xservices.util.cache.FindingsCacheServlet</servlet-class>
|
|
|
95 |
<load-on-startup>3</load-on-startup>
|
|
|
96 |
</servlet>
|
94 |
brianR |
97 |
|
|
|
98 |
<servlet-mapping>
|
|
|
99 |
<servlet-name>XServices</servlet-name>
|
|
|
100 |
<url-pattern>/*</url-pattern>
|
|
|
101 |
</servlet-mapping>
|
185 |
brianR |
102 |
|
94 |
brianR |
103 |
<session-config>
|
|
|
104 |
<session-timeout>30</session-timeout>
|
|
|
105 |
</session-config>
|
|
|
106 |
<welcome-file-list>
|
|
|
107 |
<welcome-file>index.html</welcome-file>
|
|
|
108 |
</welcome-file-list>
|
146 |
brianR |
109 |
|
|
|
110 |
<!-- Shiro -->
|
|
|
111 |
<listener>
|
|
|
112 |
<listener-class>org.apache.shiro.web.env.EnvironmentLoaderListener</listener-class>
|
|
|
113 |
</listener>
|
|
|
114 |
|
|
|
115 |
<filter>
|
|
|
116 |
<filter-name>ShiroFilter</filter-name>
|
|
|
117 |
<filter-class>org.apache.shiro.web.servlet.ShiroFilter</filter-class>
|
|
|
118 |
</filter>
|
|
|
119 |
|
|
|
120 |
<filter-mapping>
|
|
|
121 |
<filter-name>ShiroFilter</filter-name>
|
|
|
122 |
<url-pattern>/*</url-pattern>
|
|
|
123 |
<dispatcher>REQUEST</dispatcher>
|
|
|
124 |
<dispatcher>FORWARD</dispatcher>
|
|
|
125 |
<dispatcher>INCLUDE</dispatcher>
|
|
|
126 |
<dispatcher>ERROR</dispatcher>
|
|
|
127 |
</filter-mapping>
|
|
|
128 |
<!-- Shiro -->
|
199 |
brianR |
129 |
|
|
|
130 |
|
|
|
131 |
<servlet>
|
|
|
132 |
<servlet-name>H2Console</servlet-name>
|
|
|
133 |
<servlet-class>org.h2.server.web.WebServlet</servlet-class>
|
|
|
134 |
<!--
|
|
|
135 |
<init-param>
|
|
|
136 |
<param-name>webAllowOthers</param-name>
|
|
|
137 |
<param-value></param-value>
|
|
|
138 |
</init-param>
|
|
|
139 |
<init-param>
|
|
|
140 |
<param-name>trace</param-name>
|
|
|
141 |
<param-value></param-value>
|
|
|
142 |
</init-param>
|
|
|
143 |
-->
|
|
|
144 |
<load-on-startup>1</load-on-startup>
|
|
|
145 |
</servlet>
|
|
|
146 |
<servlet-mapping>
|
|
|
147 |
<servlet-name>H2Console</servlet-name>
|
|
|
148 |
<url-pattern>/console/*</url-pattern>
|
|
|
149 |
</servlet-mapping>
|
|
|
150 |
<!--
|
|
|
151 |
<security-role>
|
|
|
152 |
<role-name>admin</role-name>
|
|
|
153 |
</security-role>
|
|
|
154 |
<security-constraint>
|
|
|
155 |
<web-resource-collection>
|
|
|
156 |
<web-resource-name>H2 Console</web-resource-name>
|
|
|
157 |
<url-pattern>/console/*</url-pattern>
|
|
|
158 |
</web-resource-collection>
|
|
|
159 |
<auth-constraint>
|
|
|
160 |
<role-name>admin</role-name>
|
|
|
161 |
</auth-constraint>
|
|
|
162 |
</security-constraint>
|
|
|
163 |
-->
|
|
|
164 |
|
55 |
brianR |
165 |
</web-app>
|