1 |
<?xml version="1.0" encoding="UTF-8"?> |
2 |
<!-- |
3 |
|
4 |
Copyright (C) 2011 Hippo B.V. |
5 |
|
6 |
Licensed under the Apache License, Version 2.0 (the "License"); |
7 |
you may not use this file except in compliance with the License. |
8 |
You may obtain a copy of the License at |
9 |
|
10 |
http://www.apache.org/licenses/LICENSE-2.0 |
11 |
|
12 |
Unless required by applicable law or agreed to in writing, software |
13 |
distributed under the License is distributed on an "AS IS" BASIS, |
14 |
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
15 |
See the License for the specific language governing permissions and |
16 |
limitations under the License. |
17 |
|
18 |
--> |
19 |
<web-app id="jcr-console" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
20 |
version="2.5" |
21 |
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_5.xsd"> |
22 |
|
23 |
<display-name>JCR Console</display-name> |
24 |
<description>JCR Console</description> |
25 |
|
26 |
<context-param> |
27 |
<param-name>contextConfigLocation</param-name> |
28 |
<param-value> |
29 |
/WEB-INF/applicationContext.xml |
30 |
/WEB-INF/applicationContext-security.xml |
31 |
</param-value> |
32 |
</context-param> |
33 |
|
34 |
<filter> |
35 |
<filter-name>repositoryServiceFilter</filter-name> |
36 |
<filter-class>org.onehippo.jcr.RepositoryServiceFilter</filter-class> |
37 |
</filter> |
38 |
|
39 |
<filter> |
40 |
<filter-name>springSecurityFilterChain</filter-name> |
41 |
<filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class> |
42 |
</filter> |
43 |
|
44 |
<!--Remap resources as anti-cache--> |
45 |
<filter> |
46 |
<filter-name>ResourceAntiCache</filter-name> |
47 |
<filter-class>org.onehippo.jcr.console.engine.ResourceRewriteFilter</filter-class> |
48 |
<!-- enable this parameter to fix the prefix used to cache resources --> |
49 |
<!-- init-param> |
50 |
<param-name>prefix</param-name> |
51 |
<param-value>nocache</param-value> |
52 |
</init-param --> |
53 |
</filter> |
54 |
|
55 |
<!--Builtin console--> |
56 |
<filter> |
57 |
<filter-name>Console</filter-name> |
58 |
<filter-class>org.apache.wicket.protocol.http.WicketFilter</filter-class> |
59 |
<init-param> |
60 |
<param-name>applicationClassName</param-name> |
61 |
<param-value>org.onehippo.jcr.console.engine.Main</param-value> |
62 |
</init-param> |
63 |
<init-param> |
64 |
<param-name>config</param-name> |
65 |
<param-value>console</param-value> |
66 |
</init-param> |
67 |
<init-param> |
68 |
<param-name>configuration</param-name> |
69 |
<param-value>deployment</param-value> |
70 |
</init-param> |
71 |
</filter> |
72 |
|
73 |
<filter-mapping> |
74 |
<filter-name>repositoryServiceFilter</filter-name> |
75 |
<url-pattern>/*</url-pattern> |
76 |
</filter-mapping> |
77 |
|
78 |
<filter-mapping> |
79 |
<filter-name>springSecurityFilterChain</filter-name> |
80 |
<url-pattern>/*</url-pattern> |
81 |
</filter-mapping> |
82 |
|
83 |
<filter-mapping> |
84 |
<filter-name>ResourceAntiCache</filter-name> |
85 |
<url-pattern>/*</url-pattern> |
86 |
</filter-mapping> |
87 |
|
88 |
<filter-mapping> |
89 |
<filter-name>Console</filter-name> |
90 |
<url-pattern>/nav/*</url-pattern> |
91 |
</filter-mapping> |
92 |
|
93 |
<listener> |
94 |
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class> |
95 |
</listener> |
96 |
|
97 |
<listener> |
98 |
<listener-class>org.springframework.security.web.session.HttpSessionEventPublisher</listener-class> |
99 |
</listener> |
100 |
|
101 |
<servlet> |
102 |
<servlet-name>login</servlet-name> |
103 |
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class> |
104 |
<load-on-startup>1</load-on-startup> |
105 |
</servlet> |
106 |
|
107 |
<servlet-mapping> |
108 |
<servlet-name>login</servlet-name> |
109 |
<url-pattern>/login/*</url-pattern> |
110 |
</servlet-mapping> |
111 |
|
112 |
<servlet> |
113 |
<servlet-name>ConsoleSkinResourceServlet</servlet-name> |
114 |
<servlet-class>org.onehippo.jcr.console.servlet.ResourceServlet</servlet-class> |
115 |
<init-param> |
116 |
<param-name>jarPathPrefix</param-name> |
117 |
<param-value>/META-INF/console/skin</param-value> |
118 |
</init-param> |
119 |
</servlet> |
120 |
|
121 |
<servlet> |
122 |
<servlet-name>ConsoleCKEditorResourceServlet</servlet-name> |
123 |
<servlet-class>org.onehippo.jcr.console.servlet.ResourceServlet</servlet-class> |
124 |
<init-param> |
125 |
<param-name>jarPathPrefix</param-name> |
126 |
<param-value>/META-INF/console/ckeditor</param-value> |
127 |
</init-param> |
128 |
</servlet> |
129 |
|
130 |
<servlet-mapping> |
131 |
<servlet-name>ConsoleSkinResourceServlet</servlet-name> |
132 |
<url-pattern>/skin/*</url-pattern> |
133 |
</servlet-mapping> |
134 |
|
135 |
<servlet-mapping> |
136 |
<servlet-name>ConsoleCKEditorResourceServlet</servlet-name> |
137 |
<url-pattern>/javascript/ckeditor/*</url-pattern> |
138 |
</servlet-mapping> |
139 |
|
140 |
<!-- Timeout in minutes --> |
141 |
<session-config> |
142 |
<session-timeout>60</session-timeout> |
143 |
</session-config> |
144 |
|
145 |
<welcome-file-list> |
146 |
<welcome-file>index.jsp</welcome-file> |
147 |
</welcome-file-list> |
148 |
|
149 |
</web-app> |